/* =========================================================================
   Portada pública de arias.cl — el sitio de la familia.
   Hoja propia, independiente de estilos.css (login) para no pisarse.
   Paleta tomada del logo: verdes botánicos (bosque -> oliva/lima) sobre
   papel crema, con hojas. Cálido y familiar. Mobile-first. Sin scripts.
   ========================================================================= */

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

:root {
  /* --- Paleta de la marca (extraída del logo) --- */
  --lienzo:       #f4f5ee;   /* papel crema, el fondo del logo */
  --papel:        #ebeee0;   /* crema un punto más saturado, para bloques */
  --tinta:        #24331c;   /* verde casi negro, texto principal */
  --tinta-suave:  #5f6d53;   /* verde grisáceo, texto secundario */

  --bosque-hondo: #21421f;   /* verde más oscuro de la "arias" */
  --bosque:       #2f5a34;   /* verde bosque, color principal */
  --hoja:         #4e8248;   /* verde hoja medio */
  --oliva:        #7ca24c;   /* oliva/lima cálido, el acento del degradado */
  --lima:         #9cc25a;   /* lima claro, hojas nuevas */

  --linea:        #dde3d0;   /* bordes suaves */

  --sombra-suave: 0 10px 28px rgba(33, 66, 31, 0.10);
  --sombra-fuerte: 0 22px 46px rgba(33, 66, 31, 0.18);

  --radio: 22px;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--tinta);
  background: var(--lienzo);
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =======================  HÉROE  ======================= */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 2rem;
  color: var(--tinta);
  background:
    radial-gradient(130% 80% at 12% -5%, rgba(156, 194, 90, 0.30) 0%, rgba(156, 194, 90, 0) 55%),
    radial-gradient(120% 90% at 100% 8%, rgba(124, 162, 76, 0.28) 0%, rgba(124, 162, 76, 0) 50%),
    linear-gradient(170deg, #f7f8f2 0%, var(--lienzo) 55%, #e9eddc 100%);
}

/* Manchas verdes desenfocadas: el follaje "hecho a mano". */
.hero-adornos {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  filter: blur(46px);
  opacity: 0.5;
  animation: flotar 15s ease-in-out infinite;
}

.blob-1 {
  width: 280px;
  height: 280px;
  top: -70px;
  right: -50px;
  background: var(--oliva);
}

.blob-2 {
  width: 230px;
  height: 230px;
  bottom: 6%;
  left: -80px;
  background: var(--lima);
  animation-delay: -5s;
}

.blob-3 {
  width: 190px;
  height: 190px;
  bottom: 26%;
  right: -40px;
  background: var(--hoja);
  animation-delay: -9s;
  opacity: 0.38;
}

@keyframes flotar {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(0, -24px) scale(1.07); }
}

.hero-barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.marca {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  color: var(--bosque);
}

.marca-punto {
  color: var(--oliva);
}

.btn-entrar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--bosque);
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(33, 66, 31, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-entrar:hover,
.btn-entrar:focus-visible {
  background: var(--bosque-hondo);
  transform: translateY(-1px);
  outline: none;
}

.btn-entrar-icono {
  font-size: 0.9em;
}

.hero-centro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.1rem;
  padding: 2rem 0;
}

.hero-logo {
  width: min(78vw, 360px);
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(33, 66, 31, 0.16));
}

.hero-lema {
  max-width: 24ch;
  font-size: clamp(1.05rem, 4.5vw, 1.35rem);
  font-weight: 500;
  color: var(--tinta-suave);
}

.hero-flecha {
  align-self: center;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  color: var(--bosque);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--linea);
  border-radius: 50%;
  box-shadow: var(--sombra-suave);
  animation: rebote 2.4s ease-in-out infinite;
}

@keyframes rebote {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* =======================  SECCIONES  ======================= */

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.25rem 1rem;
}

.seccion {
  margin-bottom: 3rem;
}

.seccion-titulo {
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bosque);
}

.seccion-bajada {
  margin-top: 0.35rem;
  color: var(--tinta-suave);
  font-size: 1.05rem;
}

/* =======================  TARJETAS PÚBLICAS  ======================= */

.tarjetas {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.1rem;
}

.tarjeta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.3rem;
  border-radius: var(--radio);
  color: #fff;
  box-shadow: var(--sombra-suave);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tarjeta::after {
  /* brillo decorativo en la esquina */
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 160%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.30), transparent);
  pointer-events: none;
}

.tarjeta:hover,
.tarjeta:focus-visible {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: var(--sombra-fuerte);
  outline: none;
}

.tarjeta-apuestas {
  background: linear-gradient(135deg, var(--bosque) 0%, var(--hoja) 100%);
}

.tarjeta-cumples {
  background: linear-gradient(135deg, var(--hoja) 0%, var(--oliva) 100%);
}

.tarjeta-emoji {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.tarjeta-cuerpo {
  flex: 1;
  min-width: 0;
}

.tarjeta-titulo {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tarjeta-texto {
  display: block;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.92);
}

.tarjeta-flecha {
  flex: 0 0 auto;
  font-size: 1.5rem;
  opacity: 0.85;
  transition: transform 0.22s ease;
}

.tarjeta:hover .tarjeta-flecha,
.tarjeta:focus-visible .tarjeta-flecha {
  transform: translateX(4px);
}

/* =======================  BLOQUE PRIVADO  ======================= */

.privado {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem;
  border-radius: var(--radio);
  background: #fff;
  border: 1px solid var(--linea);
  box-shadow: var(--sombra-suave);
}

.privado::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 190px;
  height: 190px;
  background: radial-gradient(closest-side, rgba(124, 162, 76, 0.18), transparent);
}

.privado-emoji {
  font-size: 2rem;
}

.privado-titulo {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bosque);
}

.privado-bajada {
  margin-top: 0.4rem;
  max-width: 42ch;
  color: var(--tinta-suave);
}

.privado-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0 1.4rem;
}

.privado-chips li {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bosque);
  padding: 0.35rem 0.8rem;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: 999px;
}

.btn-privado {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.8rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--bosque) 0%, var(--hoja) 100%);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(33, 66, 31, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-privado:hover,
.btn-privado:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(33, 66, 31, 0.38);
  outline: none;
}

/* =======================  PIE  ======================= */

.pie {
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
  color: var(--tinta-suave);
  background: var(--papel);
  border-top: 1px solid var(--linea);
}

.pie-marca {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--bosque), var(--hoja), var(--oliva));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pie-contacto {
  margin-top: 0.6rem;
  font-size: 0.98rem;
}

.pie-contacto a {
  color: var(--bosque);
  font-weight: 600;
}

.pie-contacto a:hover {
  text-decoration: underline;
}

.pie-copia {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* =======================  ESCRITORIO  ======================= */

@media (min-width: 640px) {
  .tarjetas {
    grid-template-columns: 1fr 1fr;
  }

  .tarjeta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.8rem 1.6rem;
    min-height: 220px;
  }

  .tarjeta-flecha {
    position: absolute;
    top: 1.6rem;
    right: 1.5rem;
  }

  .tarjeta-titulo {
    font-size: 1.6rem;
  }
}

/* Respeta a quien pidió menos movimiento. */
@media (prefers-reduced-motion: reduce) {
  .blob,
  .hero-flecha {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
