/* =========================================================
   VARIABLES GLOBALES
========================================================= */
:root {
  --color-bg: #f8f6f1;
  --color-surface: #ffffff;
  --color-surface-soft: #eef6f4;
  --color-primary: #6a9c91;
  --color-primary-dark: #4f7d73;
  --color-secondary: #cfc5e9;
  --color-accent: #dfece7;
  --color-text: #2f3b3a;
  --color-text-soft: #61706d;
  --color-border: #dce6e1;
  --color-shadow: 0 18px 40px rgba(74, 100, 93, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --transition: 0.3s ease;
}

/* =========================================================
   RESET BÁSICO
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #fbfaf7 0%, #f7fbfa 100%);
  color: var(--color-text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* =========================================================
   UTILIDADES
========================================================= */
.container {
  width: min(92%, var(--container));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.center {
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: rgba(106, 156, 145, 0.12);
  padding: 8px 14px;
  border-radius: 999px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-heading h2,
.about-content h2,
.contact-info h2,
.cta-box h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
  margin-bottom: 18px;
}

.section-heading p,
.about-content p,
.contact-info p,
.cta-box p {
  color: var(--color-text-soft);
  font-size: 1.02rem;
}

.cards-grid {
  display: grid;
  gap: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(106, 156, 145, 0.25);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--color-primary-dark);
  border: 1px solid var(--color-border);
}

.btn-light {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-full {
  width: 100%;
}

.text-link {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(12px);
  background: rgba(248, 246, 241, 0.88);
  border-bottom: 1px solid rgba(220, 230, 225, 0.7);
}

.nav-container {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  font-weight: 700;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand small {
  color: var(--color-text-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--color-primary-dark);
}

.menu-toggle {
  display: none;
  font-size: 1.6rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-text);
}

/* =========================================================
   HERO
========================================================= */
.hero {
  padding-top: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-text {
  max-width: 620px;
  font-size: 1.08rem;
  color: var(--color-text-soft);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  min-width: 220px;
  box-shadow: var(--color-shadow);
}

.highlight-card strong {
  display: block;
  margin-bottom: 6px;
}

.highlight-card span {
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.hero-image-card {
  position: relative;
  background: #fff;
  padding: 14px;
  border-radius: 30px;
  box-shadow: var(--color-shadow);
}

.hero-image-card img {
  min-height: 520px;
  object-fit: cover;
  width: 100%;
  border-radius: 24px;
}

.image-badge {
  position: absolute;
  left: 26px;
  bottom: 26px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 12px 28px rgba(50, 65, 61, 0.12);
}

.image-badge strong {
  display: block;
  margin-bottom: 4px;
}

.image-badge span {
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

/* =========================================================
   ABOUT
========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.about-image img {
  width: 100%;
  min-height: 620px;
  object-fit: cover;
  box-shadow: var(--color-shadow);
}

.about-content > p {
  margin-bottom: 16px;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0;
}

.detail-box {
  padding: 22px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--color-shadow);
}

.detail-box h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.detail-box p {
  color: var(--color-text-soft);
  font-size: 0.96rem;
}

.about-quote {
  margin-top: 8px;
  padding: 22px 24px;
  border-left: 4px solid var(--color-primary);
  background: rgba(106, 156, 145, 0.08);
  border-radius: 0 16px 16px 0;
  font-style: italic;
  color: var(--color-primary-dark);
}

/* =========================================================
   SERVICES
========================================================= */
.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-border);
  box-shadow: var(--color-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(74, 100, 93, 0.16);
}

.service-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef6f4, #f3eefb);
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
}

.service-card p {
  color: var(--color-text-soft);
  margin-bottom: 16px;
}

/* =========================================================
   BENEFITS
========================================================= */
.benefits-grid {
  grid-template-columns: repeat(4, 1fr);
}

.benefit-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf9 100%);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--color-shadow);
}

.benefit-card h3 {
  margin-bottom: 12px;
  font-size: 1.16rem;
}

.benefit-card p {
  color: var(--color-text-soft);
}

/* =========================================================
   TESTIMONIALS
========================================================= */
.testimonials-grid {
  grid-template-columns: repeat(4, 1fr);
}

.testimonial-card {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--color-shadow);
  border: 1px solid var(--color-border);
  position: relative;
}

.testimonial-card::before {
  content: "“";
  font-size: 4rem;
  line-height: 1;
  color: rgba(106, 156, 145, 0.18);
  position: absolute;
  top: 10px;
  right: 18px;
}

.testimonial-card p {
  color: var(--color-text-soft);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.testimonial-card strong {
  font-size: 0.95rem;
  color: var(--color-primary-dark);
}

/* =========================================================
   BLOG
========================================================= */
.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--color-shadow);
}

.blog-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 0;
}

.blog-body {
  padding: 24px;
}

.blog-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(207, 197, 233, 0.25);
  color: #6b5f8e;
}

.blog-body h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.blog-body p {
  color: var(--color-text-soft);
  margin-bottom: 14px;
}

/* =========================================================
   CTA
========================================================= */
.cta-box {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: 32px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  color: #fff;
  box-shadow: var(--color-shadow);
}

.cta-box .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.88);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* =========================================================
   CONTACTO
========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.contact-card {
  background: #fff;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--color-shadow);
}

.contact-card strong {
  display: block;
  margin-bottom: 4px;
}

.contact-card span {
  color: var(--color-text-soft);
}

.contact-form-wrap {
  background: #fff;
  border-radius: 28px;
  padding: 30px;
  border: 1px solid var(--color-border);
  box-shadow: var(--color-shadow);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-weight: 700;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: #fcfdfd;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(106, 156, 145, 0.14);
}

.error-text {
  color: #c54f4f;
  font-size: 0.88rem;
  min-height: 18px;
}

.form-note {
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.form-success {
  color: var(--color-primary-dark);
  font-weight: 700;
  min-height: 20px;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background: #263331;
  color: rgba(255, 255, 255, 0.9);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 32px;
}

.site-footer h3,
.site-footer h4 {
  margin-bottom: 14px;
  color: #fff;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul {
  display: grid;
  gap: 10px;
}

.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.95rem;
}

/* =========================================================
   BOTÓN FLOTANTE DE WHATSAPP
========================================================= */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.35);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 18px 34px rgba(37, 211, 102, 0.42);
}

/* =========================================================
   ANIMACIONES DE ENTRADA
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1100px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .blog-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid,
  .about-details,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 76px 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: rgba(248, 246, 241, 0.98);
    border-bottom: 1px solid var(--color-border);
    display: none;
    flex-direction: column;
    padding: 18px 24px 26px;
  }

  .nav.open {
    display: flex;
  }

  .hero-highlights,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .services-grid,
  .benefits-grid,
  .blog-grid,
  .testimonials-grid,
  .about-details,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-card img,
  .about-image img {
    min-height: auto;
  }

  .contact-form-wrap,
  .cta-box {
    padding: 26px;
  }
}

@media (max-width: 540px) {
  .hero-content h1 {
    font-size: 2.3rem;
  }

  .section-heading h2,
  .about-content h2,
  .contact-info h2,
  .cta-box h2 {
    font-size: 2rem;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
  }
}