/* ─── Barby Flores - Transformando Vidas ─── */

:root {
  --verde: #458a5e;
  --verde-oscuro: #3a7550;
  --verde-claro: #5a9a70;
  --verde-bg: #e2f0e6;
  --verde-card: #ecf5ef;
  --morado: #7c3aed;
  --morado-hover: #6d28d9;
  --morado-light: #f3edff;
  --texto: #3a3a3a;
  --texto-claro: #6b6b6b;
  --blanco: #ffffff;
  --sombra: 0 10px 40px rgba(69, 138, 94, 0.12);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--texto);
  background: var(--verde-bg);
  min-height: 100vh;
}

/* ─── Header verde con logo como fondo ─── */
.hero-header {
  background: linear-gradient(160deg, #3a7550 0%, #458a5e 100%);
  padding: 50px 20px 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Logo como fondo del header */
.hero-header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 420px;
  background-image: url('../img/logo_blanco.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  mix-blend-mode: screen;
  border-radius: 20px;
  pointer-events: none;
}

.hero-header h1 {
  font-family: 'Playfair Display', serif;
  color: var(--blanco);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.hero-header p.hero-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 700;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

/* ─── Contenedor principal ─── */
.main-wrapper {
  max-width: 720px;
  margin: -30px auto 40px;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

/* ─── Card de contenido ─── */
.card-body-text {
  background: var(--verde-card);
  border-radius: 20px;
  padding: 28px 28px;
  box-shadow: var(--sombra);
  margin-bottom: 16px;
}

.card-body-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--texto-claro);
  margin-bottom: 10px;
}

.card-body-text p:last-child {
  margin-bottom: 0;
}

.emoji-lista {
  padding: 6px 0 6px 20px;
  color: var(--texto-claro);
  font-size: 14.5px;
  line-height: 2.1;
}

.regalo-box {
  background: var(--morado-light);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 14px;
  border-left: 4px solid var(--morado);
}

.regalo-box p {
  font-size: 14px;
  margin: 0;
  color: var(--texto);
}

/* ─── Card de formulario ─── */
.card-form {
  background: var(--verde-card);
  border-radius: 20px;
  padding: 28px 28px;
  box-shadow: var(--sombra);
}

.card-form h2 {
  font-family: 'Playfair Display', serif;
  color: var(--verde);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 22px;
}

/* ─── Layout 2 columnas en desktop ─── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .campo-full {
  grid-column: 1 / -1;
}

/* ─── Campos del formulario ─── */
.campo {
  margin-bottom: 0;
}

.campo label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--texto-claro);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.campo input[type="text"],
.campo input[type="email"],
.campo input[type="tel"] {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #d6e4d6;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--texto);
  background: var(--blanco);
  transition: all 0.25s ease;
  outline: none;
}

.campo input:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 4px rgba(90, 143, 92, 0.1);
}

.campo input::placeholder {
  color: #bbb;
}

/* ─── Fila teléfono ─── */
.telefono-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  grid-column: 1 / -1;
}

.telefono-row .campo-lada {
  width: 135px;
  min-width: 135px;
}

.telefono-row .campo-tel {
  flex: 1;
}

.lada-select {
  width: 100%;
  padding: 13px 8px;
  border: 2px solid #d6e4d6;
  border-radius: 12px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  background: var(--blanco);
  color: var(--texto);
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.lada-select:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 4px rgba(90, 143, 92, 0.1);
}

/* ─── Botón principal ─── */
.btn-wrapper {
  grid-column: 1 / -1;
  margin-top: 6px;
}

.btn-registrar {
  width: 100%;
  padding: 15px 24px;
  font-size: 17px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  color: var(--blanco);
  background: linear-gradient(135deg, var(--morado) 0%, var(--morado-hover) 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.btn-registrar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4);
}

.btn-registrar:active {
  transform: translateY(0);
}

/* ─── Aviso privacidad ─── */
.aviso-privacidad {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin-top: 18px;
  line-height: 1.6;
  grid-column: 1 / -1;
}

/* ─── Página En Construcción ─── */
.construccion-wrapper {
  text-align: center;
  padding: 60px 20px;
}

.construccion-wrapper img {
  width: 360px;
  max-width: 80%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.construccion-wrapper h1 {
  font-family: 'Playfair Display', serif;
  color: var(--blanco);
  font-size: 32px;
}

.construccion-wrapper p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  margin-top: 10px;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .hero-header {
    padding: 28px 16px 45px;
  }

  .hero-header::before {
    width: 220px;
    height: 220px;
  }

  .hero-header h1 {
    font-size: 22px;
  }

  .main-wrapper {
    margin-top: -25px;
    padding: 0 10px;
  }

  .card-body-text,
  .card-form {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .telefono-row .campo-lada {
    width: 120px;
    min-width: 120px;
  }

  .btn-registrar {
    font-size: 15px;
    padding: 14px 20px;
  }

  .construccion-wrapper img {
    width: 280px;
  }
}

@media (min-width: 768px) {
  .hero-header {
    padding: 45px 20px 60px;
  }

  .hero-header::before {
    width: 400px;
    height: 400px;
  }

  .hero-header h1 {
    font-size: 32px;
  }

  .card-body-text,
  .card-form {
    padding: 32px 36px;
  }
}
