/* === VARIABLES Y CONFIGURACIÓN GENERAL === */
:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-light: #ccfbf1;
  --accent: #d97706;
  --accent-hover: #b45309;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --border: #e2e8f0;
  --border-focus: #0f766e;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--accent);
  color: var(--text-light);
  padding: 12px 20px;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === CONTENEDOR === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === HEADER Y NAVEGACIÓN === */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
}

.brand-logo img {
  width: 40px;
  height: 40px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 0;
  position: relative;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--primary);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: var(--text-light);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-light);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
}

/* === HERO SECTION === */
.hero {
  padding: 70px 0;
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.18rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

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

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* === STATS SECTION === */
.stats-bar {
  background: var(--bg-card);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-item p {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

/* === SECCIONES COMUNES === */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 54px;
}

.section-subtitle {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* === PASOS / CÓMO FUNCIONA === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-number {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-light);
  font-family: var(--font-heading);
}

.step-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.step-card h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* === TARJETAS DE SERVICIOS === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-content h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.service-content p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* === CARACTERÍSTICAS / ASIMÉTRICO === */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.features-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.features-list {
  list-style: none;
  margin-top: 24px;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.features-list i {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 4px;
}

.features-list h5 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.features-list p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* === TARIFAS Y PLANES === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent);
  color: var(--text-light);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-header h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 18px 0;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin: 24px 0 32px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-features li i {
  color: var(--primary);
}

/* === FORMULARIO DE CONTACTO / LEAD CAPTURE === */
.lead-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--text-light);
  padding: 80px 0;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.lead-info h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--text-light);
  margin-bottom: 18px;
}

.lead-info p {
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.lead-perks {
  list-style: none;
}

.lead-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #f1f5f9;
}

.lead-perks i {
  color: #38bdf8;
}

.form-box {
  background: #ffffff;
  color: var(--text-main);
  padding: 38px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-box h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.form-box p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--border-focus);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-checkbox input {
  margin-top: 3px;
}

/* === PREGUNTAS FRECUENTES (FAQ) === */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question i {
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  display: none;
  font-size: 0.98rem;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* === TRUST LAYER (CAPA DE TRANSPARENCIA) === */
.trust-layer {
  background-color: #f1f5f9;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.trust-layer-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}

.trust-layer h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.trust-layer a {
  text-decoration: underline;
}

/* === FOOTER === */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 60px 0 30px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #94a3b8;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* === COOKIE BANNER (CONSENT MODE V2) === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 2px solid var(--primary);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  padding: 20px 0;
  z-index: 9999;
  display: none;
}

.cookie-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-text p {
  font-size: 0.88rem;
  color: var(--text-main);
  margin: 0;
}

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

.btn-cookie-accept {
  background-color: var(--primary);
  color: #ffffff;
  padding: 10px 18px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.btn-cookie-reject {
  background-color: #f1f5f9;
  color: var(--text-main);
  padding: 10px 18px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-weight: 600;
  cursor: pointer;
}

/* === PÁGINAS LEGALES / GENÉRICAS === */
.legal-header {
  padding: 50px 0 30px;
  background: var(--primary-light);
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  color: var(--text-main);
}

.legal-content {
  padding: 50px 0;
  background: #ffffff;
}

.legal-box {
  max-width: 860px;
  margin: 0 auto;
}

.legal-box h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  margin: 32px 0 12px;
  color: var(--text-main);
}

.legal-box p, .legal-box ul {
  margin-bottom: 16px;
  color: #334155;
  font-size: 0.98rem;
}

.legal-box ul {
  padding-left: 24px;
}

.legal-box li {
  margin-bottom: 8px;
}

/* === MEDIA QUERIES === */
@media (max-width: 992px) {
  .hero-grid, .features-grid, .lead-grid, .trust-layer-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .services-grid, .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pricing-card.featured {
    transform: none;
  }
  .steps-grid, .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .main-nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 20px;
    display: none;
  }
  .main-nav.active {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .services-grid, .pricing-grid, .steps-grid, .stats-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .cookie-grid {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}