:root {
  --primary-color: #2f4547;
  --secondary-color: #2f4547;
  --background-color: #2f4547;
  --header-color: #e6e5d8;
  --footer-color: #e6e5d8;
  --text-color: #2f4547;
  --rounded: 14px;
  --servicios-card-color: #ffffff;
  --paragraph-color: #2f4547;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background-color: rgba(230, 229, 216, 0.96);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(58, 70, 54, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  letter-spacing: 0.05em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  transition: background-color 0.3s, transform 0.2s;
}

nav a:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
}

main {
  padding: 2rem 1.25rem 4rem;
  flex: 1;
}

section {
  max-width: 1100px;
  margin: 0 auto 2rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--rounded);
  padding: 2.2rem;
  box-shadow: 0 10px 30px rgba(58, 70, 54, 0.08);
  scroll-margin-top: 90px;
}

h1,
h2,
h3 {
  margin-bottom: 1rem;
  font-family: 'Montserrat', 'Poppins', sans-serif;
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: 0.03em;
}

p,
li {
  font-size: 1.05rem;
  color: var(--paragraph-color);
}

.hero-section {
  min-height: calc(100vh - 110px);
  padding: 1rem 2.5rem 1.5rem;
  background: transparent;
  box-shadow: none;
  max-width: 100%;
  margin: 0 auto;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  justify-items: center;
  min-height: calc(100vh - 140px);
}

.hero-content-simple {
  text-align: center;
}

.hero-logo {
  width: min(100%, 760px);
  max-width: 760px;
  height: auto;
  display: block;
  border-radius: 20px;
}

.hero-intro-text {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #fffef1;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.25rem;
}

.button,
.button-secondary {
  display: inline-block;
  background: transparent;
  color: #f7f3e8;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  border: 2px solid #f7f3e8;
  transition: all 0.2s ease;
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-2px);
  background-color: #fffef1;
  color: #2f4547;
  border-color: #fffef1;
}

.hero-panel {
  background: var(--servicios-card-color);
  border-radius: var(--rounded);
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(58, 70, 54, 0.08);
}

.hero-panel img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

.hero-panel-list {
  padding: 0 0.25rem;
}

.hero-panel-list ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

.section-head {
  margin-bottom: 1.25rem;
}

.section-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background-color: var(--header-color);
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.servicio-card {
  background: var(--servicios-card-color);
  border-radius: var(--rounded);
  box-shadow: 0 4px 16px rgba(58, 70, 54, 0.08);
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.servicio-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 8px 32px rgba(58, 70, 54, 0.15);
}

.servicio-card img {
  width: 100%;
  max-width: 320px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--rounded);
  margin-bottom: 1rem;
}

.servicio-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-card {
  background: var(--servicios-card-color);
  border-radius: var(--rounded);
  box-shadow: 0 4px 16px rgba(58, 70, 54, 0.08);
  padding: 1.25rem;
  margin-top: 1rem;
}

.contact-card p {
  margin-bottom: 0.75rem;
}

.contact-card a {
  color: var(--primary-color);
  font-weight: 600;
}

footer {
  margin-top: auto;
  padding: 1.5rem;
  background-color: var(--footer-color);
  text-align: center;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  border-radius: 0;
}

.social-links {
  margin-bottom: 0.8rem;
}

.social-links a {
  color: #25d366;
  margin: 0 0.5rem;
}

.social-links a:last-child {
  color: #e1306c;
}

#contacto i {
  font-size: 1.2rem;
  margin-right: 0.4rem;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  main {
    padding: 1rem 0.8rem 2.5rem;
  }

  section {
    padding: 1.5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: left;
  }
}