/* =========================================================
   La Riñonerita by OAZISS — estilos de la web
   Móvil primero. Colores y tipografías de la web original.
   ========================================================= */

/* ---------- Tipografías (alojadas en el propio hosting, sin Google) ---------- */
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Variables de marca ---------- */
:root {
  --amarillo: #FFC426;
  --amarillo-hover: #F0B000;
  --negro: #111518;
  --texto: #4D5D6D;
  --crema: #FFFDDC;
  --arena: #F7F2E6;
  --borde: #E0DED7;
  --borde-suave: #ECECEA;
  --gris-oscuro: #272727;
  --borde-oscuro: #3F3F3F;
  --pie: #ECECEA;
  --pie-bajo: #E0DED7;
  --blanco: #FFFFFF;
  --radio-boton: 50px;
  --radio-tarjeta: 16px;
  --sombra: 0 10px 30px rgba(0, 0, 0, 0.06);
  --ancho: 1200px;
  --fuente: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --fuente-menu: "Poppins", var(--fuente);
  --espaciado-titulos: -1px;   /* espaciado entre letras de los titulares */
  --espaciado-letra: 0;        /* espaciado entre letras del resto de la web */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fuente); font-size: 16px; line-height: 1.65; font-weight: 400; letter-spacing: var(--espaciado-letra); color: var(--texto); background: var(--blanco); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--fuente); color: var(--negro); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: var(--espaciado-titulos); }
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; font-weight: 400; }
input, textarea, button { letter-spacing: inherit; }
[id] { scroll-margin-top: 90px; }
:focus-visible { outline: 3px solid var(--negro); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saltar { position: absolute; left: 1rem; top: -60px; z-index: 100; background: var(--negro); color: var(--blanco); padding: .6rem 1rem; border-radius: 8px; text-decoration: none; }
.saltar:focus { top: 1rem; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }
.seccion { padding: 64px 0; }
.centro { text-align: center; }
.fondo-crema { background: var(--crema); }
.fondo-arena { background: var(--arena); }
.fondo-oscuro { background: var(--negro); color: rgba(255, 255, 255, .85); }
.fondo-oscuro h2 { color: var(--blanco); }

/* ---------- Botones ---------- */
.boton { letter-spacing: var(--espaciado-letra); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .8rem 1.6rem; border-radius: var(--radio-boton); font-family: var(--fuente); font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.boton svg { width: 1.1em; height: 1.1em; flex: none; }
.boton-amarillo { background: var(--amarillo); color: var(--negro); }
.boton-amarillo:hover { background: var(--amarillo-hover); }
.boton-borde { background: transparent; color: var(--negro); border-color: var(--negro); }
.boton-borde:hover { background: var(--negro); color: var(--blanco); }
.boton-negro { background: var(--negro); color: var(--blanco); }
.boton-negro:hover { background: #2b3137; }
.boton-ancho { width: 100%; }

/* ---------- Etiquetas (chips) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 1.4rem; list-style: none; }
.chip { font-weight: 400; display: inline-block; padding: 6px 15px; border-radius: 50px; font-size: .9rem; background: var(--arena); border: 1px solid var(--borde); color: var(--texto); }
.chip-blanco { background: var(--blanco); border-color: var(--borde-suave); }
.chip-oscuro { background: var(--gris-oscuro); border-color: var(--borde-oscuro); color: var(--blanco); }
.chips-centro { justify-content: center; }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 50; background: var(--blanco); border-bottom: 1px solid transparent; transition: background-color .2s, border-color .2s; }
.cabecera.con-borde { border-bottom-color: var(--borde); }
.cabecera-interior { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo img { width: 170px; height: auto; }
.menu { display: none; }
.menu ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.menu a { font-family: var(--fuente-menu); font-weight: 500; font-size: 15px; color: var(--texto); text-decoration: none; }
.menu a:hover { color: var(--negro); }
.cabecera-acciones { display: flex; align-items: center; gap: .5rem; }
.cabecera .boton { gap: 0; min-height: 44px; padding: .6rem 1.1rem; font-size: .95rem; }
.boton-menu { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--borde); border-radius: 50%; background: var(--blanco); color: var(--negro); cursor: pointer; -webkit-appearance: none; appearance: none; }
.boton-menu svg { width: 20px; height: 20px; }
.menu-movil { display: none; background: var(--amarillo); }
.menu-movil.abierto { display: block; }
.menu-movil ul { list-style: none; margin: 0; padding: .5rem 20px 1rem; }
.menu-movil a { display: block; padding: .9rem 0; font-family: var(--fuente-menu); font-weight: 500; color: var(--negro); text-decoration: none; border-bottom: 1px solid rgba(17, 21, 24, .15); }
.menu-movil li:last-child a { border-bottom: 0; }
.cabecera .boton-texto-largo { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--crema); padding: 24px 0 56px; }
.hero-rejilla { display: grid; gap: 32px; align-items: center; }
.hero-imagen img { width: 100%; border-radius: var(--radio-tarjeta); aspect-ratio: 1000 / 1341; object-fit: cover; max-height: 560px; }
.hero-texto p.lead { font-size: 1.1rem; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Características ---------- */
.tarjetas { display: grid; gap: 16px; margin-top: 2rem; }
.tarjeta { background: var(--blanco); border: 1px solid var(--borde-suave); border-radius: var(--radio-tarjeta); box-shadow: var(--sombra); overflow: hidden; display: flex; flex-direction: column; }
.tarjeta img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--blanco); }
.tarjeta-texto { padding: 18px 20px 24px; }
.tarjeta-icono { font-size: 1.8rem; line-height: 1; display: block; margin-bottom: .5rem; }
.tarjeta h3 { margin-bottom: .3rem; }
.tarjeta p { margin: 0; }
.solo-escritorio { display: none; }

/* ---------- Vídeo ---------- */
.video { position: relative; max-width: 1000px; margin: 1.5rem auto 1.5rem; border-radius: var(--radio-tarjeta); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }

/* ---------- Vídeos verticales ---------- */
.reels { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 20px; margin: 2rem auto; max-width: 1100px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.reel-caja { position: relative; border-radius: var(--radio-tarjeta); overflow: hidden; background: #000; aspect-ratio: 9 / 16; scroll-snap-align: start; }
.reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.reel-play[hidden] { display: none; }
.reel-play .play { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(17, 21, 24, .35); border: 2px solid rgba(255, 255, 255, .7); display: flex; align-items: center; justify-content: center; transition: transform .2s, background-color .2s; }
.reel-play:hover .play, .reel-play:focus-visible .play { background: rgba(17, 21, 24, .5); transform: translateX(-50%) scale(1.06); }
.reel-play .play svg { width: 26px; height: 26px; margin-left: 4px; fill: #fff; opacity: .9; }

.boton-sonido { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 50px; background: rgba(17, 21, 24, .75); color: #fff; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.boton-sonido:hover { background: rgba(17, 21, 24, .9); }
.boton-sonido[hidden] { display: none; }
.boton-sonido svg { width: 18px; height: 18px; }

/* ---------- Nuestra historia ---------- */
.historia-rejilla { display: grid; gap: 32px; align-items: center; }
.historia-imagen img { width: 100%; border-radius: var(--radio-tarjeta); box-shadow: var(--sombra); aspect-ratio: 1000 / 1192; object-fit: cover; }
.historia-texto .destacado { color: var(--negro); font-size: 1.1rem; }

/* ---------- Opciones de compra ---------- */
#comprar { padding-top: 40px; }
.opciones { display: grid; gap: 24px; margin-top: 2rem; }
.opcion { text-align: left; position: relative; background: var(--blanco); border: 1px solid var(--borde-suave); border-radius: var(--radio-tarjeta); padding: 20px; display: flex; flex-direction: column; }
.opcion-destacada { border: 2px solid var(--amarillo); }
.opcion-etiqueta { position: absolute; top: -14px; left: 16px; background: var(--amarillo); color: var(--negro); font-size: .9rem; font-weight: 500; padding: 4px 14px; border-radius: 50px; }
.opcion img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; margin-bottom: 1rem; }
.opcion h3 { margin-bottom: .2rem; }
.opcion p { margin-bottom: 1rem; }
.opcion .boton { margin-top: auto; }

/* ---------- Opiniones ---------- */
.estrellas { letter-spacing: 2px; }
.opiniones { display: grid; gap: 16px; margin: 2rem 0; text-align: left; }
.opinion { background: var(--blanco); border: 1px solid var(--borde-suave); border-radius: var(--radio-tarjeta); padding: 20px; margin: 0; }
.opinion blockquote { margin: .5rem 0 0; }
.opinion strong { color: var(--negro); }

/* ---------- Empresas + formulario ---------- */
.formulario { max-width: 760px; margin: 2rem auto 0; background: var(--gris-oscuro); border: 1px solid var(--borde-oscuro); border-radius: var(--radio-tarjeta); padding: 24px; text-align: left; }
.campos { display: grid; gap: 14px; }
.campos-2 { display: grid; gap: 14px; }
.campo label { display: block; font-size: .9rem; color: var(--blanco); margin-bottom: 4px; }
.campo input, .campo textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--negro); background: var(--blanco); border: 1px solid #D9D9D9; border-radius: 8px; padding: 12px 14px; }
.campo textarea { min-height: 110px; resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: 3px solid var(--amarillo); outline-offset: 0; }
.campo-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consentimiento { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: rgba(255, 255, 255, .85); margin-top: 4px; }
.consentimiento input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--amarillo); }
.consentimiento a { color: var(--blanco); }
.formulario .boton { margin: 18px auto 0; display: flex; min-width: 200px; }
.form-error { margin: 0 0 1rem; padding: 10px 14px; border-radius: 8px; background: #FFE3E3; border: 1px solid #F5B5B5; color: #7A1010; font-size: .95rem; }
.form-error[hidden] { display: none; }
.form-nota { font-size: .8rem; color: rgba(255, 255, 255, .6); margin: 12px 0 0; text-align: center; }

/* ---------- Preguntas frecuentes ---------- */
.faq { max-width: 800px; margin: 2rem auto 0; }
.faq details { border-bottom: 1px solid #CDC8BC; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 4px; position: relative; color: var(--negro); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: #D4C094; line-height: 1; }
.faq details[open] summary::after { content: "−"; color: var(--negro); }
.faq .respuesta { padding: 0 4px 18px; }
.faq .respuesta p { margin: 0; }
.faq a { color: var(--negro); }

/* ---------- Llamada final ---------- */
.cta-final p { margin-bottom: 1.5rem; }
.cta-final strong { color: var(--blanco); }

/* ---------- Pie ---------- */
.pie { background: var(--pie); padding: 28px 0; }
.pie-interior { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.pie .logo img { width: 160px; }
.pie-enlaces { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; list-style: none; margin: 0; padding: 0; }
.pie-enlaces li { display: flex; align-items: center; }
.pie-enlaces { flex-direction: column; align-items: flex-start; gap: 10px; }
.pie-salto { display: none; }
.pie-instagram { display: inline-flex; align-items: center; gap: 6px; }
.pie-instagram svg { width: 1em; height: 1em; }
.pie-enlaces a { color: var(--texto); text-decoration: none; }
.pie-enlaces a:hover { color: var(--negro); text-decoration: underline; }
.pie-bajo { background: var(--pie-bajo); padding: 16px 0; font-size: .85rem; }
.pie-bajo p { margin: 0; }
.pie-bajo a { color: var(--negro); }

/* ---------- Páginas interiores (legal, gracias, 404) ---------- */
.pagina { padding: 48px 0 72px; background: var(--arena); min-height: 60vh; }
.pagina .contenedor { max-width: 820px; }
.pagina h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.pagina h2 { font-size: 1.4rem; margin-top: 2rem; }
.pagina a { color: var(--negro); }
.pagina ul { padding-left: 1.2rem; }
.pendiente { background: #FFF1C2; border-radius: 4px; padding: 0 4px; color: #6A4B00; font-weight: 600; }

/* ---------- Móvil y tablet: botón de cabecera blanco (el menú desplegable es amarillo) ---------- */
@media (max-width: 959px) {
  /* Arriba del todo: fondo amarillo claro; botón "Comprar" amarillo en todos los estados */
  .cabecera { background: var(--crema); }
  /* Al hacer scroll: fondo blanco */
  .cabecera.con-borde { background: var(--blanco); }
  /* Menú abierto: todo amarillo fuerte y botón blanco sin borde */
  .cabecera.menu-abierto, .cabecera.menu-abierto.con-borde { background: var(--amarillo); border-bottom-color: transparent; }
  .cabecera.menu-abierto .boton-amarillo, .cabecera.menu-abierto .boton-amarillo:hover { background: var(--blanco); color: var(--negro); border-color: transparent; }
}

/* ---------- Solo móvil y tablet pequeña (hasta 639px) ---------- */
@media (max-width: 639px) {
  h1, h2 { font-size: 37px; line-height: 1.2; }
  .pagina h1 { font-size: 37px; line-height: 1.2; }
  main .boton { width: 100%; }
  .botones { flex-direction: column; }
  .izq-movil { text-align: left; }
  .izq-movil .chips { justify-content: flex-start; }
  .chips-rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .chips-rejilla .chip { padding: 12px 18px; font-size: 1rem; }
  .formulario .boton { width: 100%; min-width: 0; }
  .reels { grid-template-columns: 1fr; overflow: visible; }
  .una-linea-movil { font-size: clamp(24px, 7.6vw, 37px); white-space: nowrap; }
  .hero { padding-top: 12px; }
  .hero-imagen img { aspect-ratio: 4 / 5; max-height: 440px; object-position: center 40%; }
  .tarjeta-recortar img { aspect-ratio: 16 / 10; object-fit: cover; }
  .tarjeta-recortar-suave img { aspect-ratio: 4 / 3; }
  .pie-interior { align-items: center; text-align: center; }
  .pie .logo img { width: 200px; }
  .pie-enlaces { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 0; font-size: 13.5px; }
  .pie-enlaces li + li::before { content: "|"; margin: 0 6px; color: #A9A9A4; }
  .pie-enlaces .pie-salto { display: block; flex-basis: 100%; height: 0; }
  .pie-enlaces .pie-salto::before, .pie-enlaces .pie-salto + li::before { content: none; }
  .pie-bajo { text-align: center; }
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .tarjetas { grid-template-columns: repeat(2, 1fr); }
  .opiniones { grid-template-columns: repeat(3, 1fr); }
  .campos-2 { grid-template-columns: 1fr 1fr; }
  .pie-interior { flex-direction: row; justify-content: space-between; align-items: center; }
  .pie-enlaces { flex-direction: row; align-items: center; gap: 6px 0; }
  .pie-enlaces li + li::before { content: "|"; margin: 0 10px; color: #A9A9A4; }
  .cabecera .boton-texto-largo { display: inline; }
}

/* ---------- Escritorio ---------- */
@media (min-width: 960px) {
  .seccion { padding: 96px 0; }
  .menu { display: block; }
  .boton-menu, .menu-movil, .menu-movil.abierto { display: none; }
  .logo img { width: 185px; }
  .solo-escritorio { display: inline; }
  .tarjeta-texto { padding: 18px 16px 22px; }
  .tarjeta p { font-size: 15px; min-height: calc(2em * 1.65); }
  .hero { padding: 48px 0 96px; }
  .hero-rejilla { grid-template-columns: 5fr 6fr; gap: 56px; }
  .hero-imagen img { max-height: 620px; }
  .tarjetas { grid-template-columns: repeat(4, 1fr); }
  .historia-rejilla { grid-template-columns: 1fr 1fr; gap: 64px; }
  .opciones { grid-template-columns: 1fr 1fr; }
  #comprar { padding-top: 48px; }
  .formulario { padding: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
