﻿/* ===== Reset y base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --verde: #10b981;
  --verde-oscuro: #059669;
  --verde-claro: #d1fae5;
  --texto: #111827;
  --texto-suave: #6b7280;
  --fondo: #ffffff;
  --fondo-gris: #f9fafb;
  --borde: #e5e7eb;
  --radio: 12px;
  --sombra: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --sombra-grande: 0 10px 25px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.contenedor { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.contenedor--estrecho { max-width: 720px; }

.boton {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  min-height: 40px;
  line-height: 1.4;
}
.boton--primario { background: var(--verde); color: white; }
.boton--primario:hover { background: var(--verde-oscuro); }
.boton--secundario { background: transparent; color: var(--texto); }
.boton--secundario:hover { background: var(--fondo-gris); }
.boton--grande { padding: 14px 28px; font-size: 16px; min-height: 48px; }

.cabecera {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
  z-index: 100;
}
.cabecera__interior {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 12px;
}
.logo { font-size: 22px; font-weight: 800; color: var(--texto); letter-spacing: -0.5px; }
.logo span { color: var(--verde); }

.menu { display: flex; align-items: center; gap: 20px; }
.menu a:not(.boton) { color: var(--texto-suave); font-size: 15px; font-weight: 500; }
.menu a:not(.boton):hover { color: var(--texto); }

.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--fondo-gris) 0%, var(--fondo) 100%);
}
.hero__titulo {
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero__titulo span { color: var(--verde); display: block; }
.hero__subtitulo {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--texto-suave);
  max-width: 620px;
  margin: 0 auto 36px;
  padding: 0 8px;
}
.hero__botones {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 20px; padding: 0 16px;
}
.hero__nota { font-size: 14px; color: var(--texto-suave); padding: 0 16px; }

.seccion { padding: 80px 0; }
.seccion--gris { background: var(--fondo-gris); }
.seccion__titulo {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800; letter-spacing: -1px; text-align: center;
  margin-bottom: 12px; padding: 0 16px;
}
.seccion__intro {
  text-align: center; color: var(--texto-suave); font-size: 17px;
  max-width: 620px; margin: 0 auto 56px; padding: 0 16px;
}

.tarjetas {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.tarjeta {
  background: var(--fondo); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 32px 28px; box-shadow: var(--sombra); transition: all 0.2s ease;
}
.tarjeta:hover { transform: translateY(-4px); box-shadow: var(--sombra-grande); }
.tarjeta__icono { font-size: 40px; margin-bottom: 16px; }
.tarjeta h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.tarjeta p { color: var(--texto-suave); }

.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.paso { text-align: center; }
.paso__numero {
  width: 56px; height: 56px; border-radius: 50%; background: var(--verde); color: white;
  font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.paso h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.paso p { color: var(--texto-suave); }

.faq__item {
  background: var(--fondo); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 20px 24px; margin-bottom: 12px;
}
.faq__item summary {
  font-weight: 600; font-size: 17px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq__item summary::after { content: "+"; font-size: 24px; color: var(--verde); font-weight: 400; flex-shrink: 0; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin-top: 12px; color: var(--texto-suave); }

.cta-final { padding: 100px 0; text-align: center; background: var(--verde); color: white; }
.cta-final h2 {
  font-size: clamp(26px, 4vw, 40px); font-weight: 800;
  letter-spacing: -1px; margin-bottom: 12px; padding: 0 16px;
}
.cta-final p { font-size: 17px; opacity: 0.9; margin-bottom: 32px; padding: 0 16px; }
.cta-final .boton--primario { background: white; color: var(--verde-oscuro); }
.cta-final .boton--primario:hover { background: var(--verde-claro); }

.pie { padding: 48px 0 24px; border-top: 1px solid var(--borde); background: var(--fondo); }
.pie__interior {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px; margin-bottom: 32px;
}
.pie__marca p { font-size: 14px; color: var(--texto-suave); margin-top: 6px; }
.pie__enlaces { display: flex; gap: 20px; flex-wrap: wrap; }
.pie__enlaces a { color: var(--texto-suave); font-size: 14px; }
.pie__enlaces a:hover { color: var(--texto); }
.pie__copy { border-top: 1px solid var(--borde); padding-top: 20px; text-align: center; }
.pie__copy p { font-size: 13px; color: var(--texto-suave); }

/* ===== MÓVIL ===== */
@media (max-width: 720px) {
  .contenedor { padding: 0 16px; }
  .cabecera__interior { padding-top: 12px; padding-bottom: 12px; gap: 8px; }

  /* Enlaces de texto ocultos */
  .menu a:not(.boton) { display: none; }

  /* Botones compactos */
  .menu .boton { padding: 8px 12px; font-size: 13px; }
  .menu .boton--primario { padding: 8px 14px; }

  /* El selector de idioma SE QUEDA VISIBLE */
  .menu .idioma-selector-wrap { display: inline-flex; }

  .hero { padding: 60px 0 50px; }
  .hero__titulo { font-size: 36px; letter-spacing: -1px; }
  .hero__subtitulo { font-size: 16px; margin-bottom: 28px; }
  .hero__botones { flex-direction: column; padding: 0 24px; }
  .hero__botones .boton { width: 100%; text-align: center; }
  .hero__nota { font-size: 13px; }

  .seccion { padding: 56px 0; }
  .seccion__titulo { font-size: 26px; }
  .seccion__intro { font-size: 15px; margin-bottom: 36px; }

  .tarjetas { gap: 16px; }
  .tarjeta { padding: 24px 22px; }
  .tarjeta:hover { transform: none; }
  .tarjeta__icono { font-size: 34px; margin-bottom: 12px; }
  .tarjeta h3 { font-size: 18px; }

  .pasos { gap: 28px; }
  .paso__numero { width: 50px; height: 50px; font-size: 22px; }
  .paso h3 { font-size: 18px; }

  .faq__item { padding: 16px 18px; }
  .faq__item summary { font-size: 15px; }

  .cta-final { padding: 60px 0; }
  .cta-final h2 { font-size: 26px; }
  .cta-final p { font-size: 15px; }
  .cta-final .boton { width: calc(100% - 32px); max-width: 320px; }

  .pie { padding: 32px 0 20px; }
  .pie__interior { flex-direction: column; text-align: center; gap: 20px; margin-bottom: 24px; }
  .pie__enlaces { justify-content: center; gap: 16px; }
}

/* ===== Logo con imagen ===== */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.auth-logo .logo-img {
  height: 60px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .logo-img { height: 30px; }
  .auth-logo .logo-img { height: 48px; }
}

/* ===== Modal de confirmación propio ===== */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.confirm-caja {
  background: white;
  border-radius: 14px;
  padding: 28px 26px 22px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.confirm-titulo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #111827;
  margin-bottom: 10px;
}

.confirm-texto {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 20px;
}

.confirm-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 18px;
  box-sizing: border-box;
}

.confirm-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}

.confirm-acciones {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.confirm-btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  min-height: 42px;
}

.confirm-btn--cancelar {
  background: transparent;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.confirm-btn--cancelar:hover {
  background: #f9fafb;
  color: #111827;
}

.confirm-btn--primario {
  background: #10b981;
  color: white;
}
.confirm-btn--primario:hover {
  background: #059669;
}

.confirm-btn--peligro {
  background: #ef4444;
  color: white;
}
.confirm-btn--peligro:hover {
  background: #dc2626;
}

@media (max-width: 480px) {
  .confirm-caja {
    padding: 22px 20px 18px;
  }
  .confirm-titulo { font-size: 18px; }
  .confirm-acciones { flex-direction: column-reverse; }
  .confirm-btn { width: 100%; }
}
