@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700&family=Merriweather:wght@400;700&display=swap');

:root {
  --verde-oscuro: #2e6b4f;
  --verde-suave: #55a679;
  --arena: #e7d3b0;
  --terracota: #c76b4f;
  --gris-urbano: #4a4a4a;
  --gris-claro: #f4f1ea;
  --blanco: #ffffff;
  --negro: #1a1a1a;
  --sombra: 0 18px 35px rgba(46, 107, 79, 0.18);
  --radio: 16px;
  --transicion: all 0.3s ease-in-out;
  --max-width: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Urbanist', sans-serif;
  background-color: var(--gris-claro);
  color: var(--gris-urbano);
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  font-family: 'Merriweather', serif;
  color: var(--negro);
  margin-top: 0;
  line-height: 1.2;
}

p {
  margin-top: 0;
  margin-bottom: 16px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transicion);
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radio);
  object-fit: cover;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(244, 241, 234, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 14px rgba(46, 107, 79, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--verde-oscuro);
}

.logo-icon {
  font-size: 28px;
}

.nav-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-menu a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--gris-urbano);
}

.nav-menu a:hover,
.nav-menu a.activo {
  background: linear-gradient(135deg, var(--verde-oscuro), var(--verde-suave));
  color: var(--blanco);
  box-shadow: var(--sombra);
}

.nav-menu .btn-sm {
  color: var(--blanco);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--negro);
  border-radius: 999px;
  transition: var(--transicion);
}

.hero,
.page-hero {
  padding: 96px 0 64px;
  background: linear-gradient(135deg, rgba(46, 107, 79, 0.08), rgba(199, 107, 79, 0.18));
}

.hero-grid,
.hero-content,
.hero-visual {
  display: grid;
}

.hero-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--terracota);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 18px;
  color: var(--gris-urbano);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--verde-oscuro);
}

.hero-visual {
  position: relative;
  gap: 24px;
}

.hero-card {
  background: var(--blanco);
  box-shadow: var(--sombra);
  border-radius: calc(var(--radio) * 1.2);
  overflow: hidden;
  animation: float 6s ease-in-out infinite alternate;
}

.hero-card.stacked {
  animation: float 8s ease-in-out infinite alternate;
}

.hero-card-content {
  padding: 24px;
  background: var(--blanco);
}

.hero-card-content span {
  font-size: 14px;
  color: var(--gris-urbano);
}

.pulse-card {
  position: absolute;
  right: 0;
  bottom: -24px;
  background: var(--blanco);
  padding: 20px 24px;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  max-width: 280px;
}

.pulse-bar {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.pulse-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--arena);
  position: relative;
}

.pulse-dot.activo {
  background: var(--verde-oscuro);
  animation: pulse 1.8s infinite;
}

.section {
  padding: 72px 0;
}

.section-muted {
  background: var(--blanco);
}

.section-gradient {
  background: linear-gradient(120deg, rgba(46, 107, 79, 0.25), rgba(231, 211, 176, 0.35));
}

.section-lead {
  max-width: 620px;
  margin-bottom: 40px;
  font-size: 18px;
}

.grid-2 {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--blanco);
  padding: 32px;
  border-radius: calc(var(--radio) * 1.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: var(--transicion);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(46, 107, 79, 0.16);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(46, 107, 79, 0.15), rgba(199, 107, 79, 0.15));
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--verde-oscuro), var(--terracota));
  color: var(--blanco);
  box-shadow: var(--sombra);
  transition: var(--transicion);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 40px rgba(46, 107, 79, 0.25);
}

.btn:focus-visible {
  outline: 3px solid rgba(199, 107, 79, 0.6);
  outline-offset: 3px;
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(46, 107, 79, 0.35);
  color: var(--verde-oscuro);
  box-shadow: none;
}

.btn.ghost:hover {
  border-color: var(--verde-oscuro);
  color: var(--blanco);
  background: var(--verde-oscuro);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 18px;
}

.two-column {
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.two-column.reverse {
  direction: rtl;
}

.two-column.reverse > * {
  direction: ltr;
}

.media-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radio) * 1.2);
  box-shadow: var(--sombra);
}

.media-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--verde-oscuro);
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.benefits-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 500;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.pill {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(46, 107, 79, 0.12);
  color: var(--verde-oscuro);
  font-weight: 600;
}

.timeline {
  display: grid;
  gap: 24px;
}

.timeline-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 24px;
  border-radius: var(--radio);
  display: grid;
  gap: 16px;
  box-shadow: var(--sombra);
  border-left: 4px solid var(--terracota);
}

.timeline-time {
  font-weight: 700;
  color: var(--terracota);
}

.testimonial-card {
  padding: 28px;
}

.testimonial-name {
  display: block;
  margin-top: 16px;
  font-weight: 600;
  color: var(--verde-oscuro);
}

.cta-box {
  background: rgba(255, 255, 255, 0.85);
  padding: 48px;
  border-radius: calc(var(--radio) * 1.4);
  box-shadow: var(--sombra);
  display: grid;
  gap: 32px;
  align-items: center;
}

.centered {
  text-align: center;
  margin-top: 48px;
}

.resource-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.resource-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: calc(var(--radio) * 1.1);
  overflow: hidden;
  box-shadow: var(--sombra);
}

.resource-info {
  padding: 24px;
}

.blog-card {
  overflow: hidden;
  padding: 0;
}

.blog-card img {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.blog-content {
  padding: 24px;
}

.tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(46, 107, 79, 0.14);
  color: var(--verde-oscuro);
  font-weight: 600;
  margin-bottom: 12px;
}

.tag.terracota {
  background: rgba(199, 107, 79, 0.18);
  color: var(--terracota);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(46, 107, 79, 0.25);
  font-size: 16px;
  transition: var(--transicion);
}

.newsletter-form input:focus-visible {
  outline: 3px solid rgba(46, 107, 79, 0.3);
}

.contact-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(46, 107, 79, 0.28);
  background: rgba(255, 255, 255, 0.95);
  transition: var(--transicion);
  font-size: 15px;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid rgba(199, 107, 79, 0.3);
}

.form-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
}

.support-info {
  display: grid;
  gap: 24px;
}

.faq-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.accordion details {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 18px 22px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border-left: 3px solid rgba(46, 107, 79, 0.4);
}

.accordion summary {
  cursor: pointer;
  font-weight: 600;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion details[open] {
  border-left-color: var(--terracota);
}

.table-responsive {
  overflow-x: auto;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--blanco);
}

th, td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid rgba(46, 107, 79, 0.12);
}

th {
  background: rgba(46, 107, 79, 0.12);
  font-weight: 700;
}

.site-footer {
  background: var(--negro);
  color: rgba(255, 255, 255, 0.86);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-footer a {
  color: inherit;
}

.footer-brand p {
  margin-top: 16px;
}

.site-footer h4 {
  margin-bottom: 16px;
  color: var(--blanco);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.socials {
  display: flex;
  gap: 16px;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 1px;
}

.socials a:hover {
  background: var(--terracota);
}

.footer-bottom {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 340px;
  background: var(--blanco);
  padding: 24px;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  z-index: 1000;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  display: grid;
  gap: 16px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.error-section {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 0;
}

.error-code {
  font-size: 120px;
  font-weight: 700;
  color: var(--terracota);
}

.legal-text {
  background: var(--blanco);
  padding: 40px;
  border-radius: calc(var(--radio) * 1.1);
  box-shadow: var(--sombra);
  display: grid;
  gap: 24px;
}

.legal-text ul {
  padding-left: 18px;
}

@keyframes float {
  to {
    transform: translateY(-16px);
  }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: 16px;
    background: var(--blanco);
    flex-direction: column;
    gap: 0;
    box-shadow: var(--sombra);
    padding: 16px;
    border-radius: calc(var(--radio) * 1.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: var(--transicion);
    min-width: 220px;
  }

  .nav-menu a {
    display: block;
    padding: 12px 18px;
  }

  .nav-menu.activo {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle.abierto span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .nav-toggle.abierto span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.abierto span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .pulse-card {
    position: static;
    margin-top: 24px;
  }
}

@media (max-width: 600px) {
  .hero,
  .page-hero {
    padding: 72px 0 48px;
  }

  .section {
    padding: 56px 0;
  }

  .cta-box {
    padding: 32px;
  }

  .legal-text {
    padding: 28px;
  }

  .cookie-banner {
    right: 50%;
    transform: translateX(50%);
    bottom: 16px;
    width: calc(100% - 32px);
    max-width: 100%;
  }
}