/* ==========================================================================
	ARCANDINA - app.css (OPTIMIZADO)
	- Ordenado por secciones
	- Sin duplicados ni reglas que se pisan
	- HERO mobile: se deja UNA sola estrategia final (zoom + encuadre)
========================================================================== */

/* =========================
	VARIABLES
========================= */
:root{
	--arc-what-bg: #0B2B54;     /* fondo “qué es” y ola del hero */
	--water-bg:    #073C9A;     /* fondo sólido de planes en agua */
	--blue:        #1e5fd8;
	--orange:      #ff8c2b;
	--arc-patrocinadores: #0B2B54;

	--txt:         #111;
	--shadow-deep: inset 0 -65px 198.8px 0 rgba(0,0,0,.77), 0 -5px 5px -3px rgba(0,0,0,.8);
}

/* =========================
	RESET / BASE
========================= */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{ font-family:'Segoe UI', system-ui, sans-serif; }

.container{
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 18px;
}

.w-100{ width:100%; }

/* Tipografía utilitaria */
.kicker{
	margin: 0 0 10px;
	font-weight: 900;
	letter-spacing: .6px;
	text-transform: uppercase;
	font-size: 12px;
	color: rgba(0,0,0,.55);
}

/* =========================
	BOTONES
========================= */
.btn{
	padding: 8px 14px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-blue{ background: var(--blue); color:#fff; }
.btn-orange{ background: var(--orange); color:#fff; }

/* ==========================================================================
	HEADER / NAVBAR
========================================================================== */
.site-header{
	position: absolute;
	top: 20px;
	width: 100%;
	z-index: 50;
}

.nav-container{
	max-width: 980px;
	margin: 0 auto;
	
	/* background: rgba(255,255,255,0.94); */
	/* background: rgba(255,255,255,0.80); */
	background: hsla(45,29%,97%,.95);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);

	

	border-radius: 18px;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	/* box-shadow:
		0 14px 40px rgba(0,0,0,0.16),
		0 2px 0 rgba(255,255,255,0.65) inset; */
	box-shadow: 0 4px 7.6px 4px rgba(0,0,0,.25);
	backdrop-filter: blur(10px);
}

.nav-logo img{ height: 44px; }

.nav-left{
	display:flex;
	align-items:center;
	gap: 18px;
}

.nav-links{
	display:flex;
	gap: 18px;
}

/* .nav-links a{
	text-decoration:none;
	font-weight:700;
	color:#1a1a1a;
} */

.nav-links a {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;              /* 🔽 más pequeño */
  font-weight: 600;
  color: #0b1b2e;               /* azul oscuro base */
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  transition: 
    color 0.2s ease,
    background-color 0.2s ease;
}

/* Hover: naranja ARCANDINA */
.nav-links a:hover {
  color: #ff8a1f;               /* 🟠 mismo naranja del botón Contáctanos */
  background-color: rgba(255, 138, 31, 0.08);
}

/* Estado activo (opcional, por si luego lo usas) */
.nav-links a.active {
  color: #ff8a1f;
}

.nav-actions{
	display: flex;
	align-items: center;
	gap: 10px;
}

.lang-switch{
	display: flex;
	gap: 6px;
	font-size: 18px;
	cursor: pointer;
}

.nav-toggle{
	display: none;
	font-size: 22px;
	background: none;
	border: none;
	cursor: pointer;
}




/* ==========================================================================
	HERO
========================================================================== */
.hero{
	position: relative;
	height: 100vh;
	overflow: hidden;
}

.hero-bg{
	position: absolute;
	inset: 0;
	background: url('../img/banner-image.jpg') center bottom / cover no-repeat;
}

/* Overlay para legibilidad */
.hero-bg::after{
	content:"";
	position:absolute;
	inset:0;
	background:
		linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.25) 100%),
		radial-gradient(60% 45% at 50% 30%, rgba(255,255,255,.14), transparent 65%),
		radial-gradient(70% 60% at 50% 100%, rgba(0,0,0,.20), transparent 60%);
	pointer-events:none;
}

/* Texto del hero (versión final “Nuestra misión es / Cuidar el Agua”) */
.hero-content{
	position: relative;
	z-index: 3;
	text-align: center;
	color: #fff;
	padding-top: 22vh;
}

.hero-eyebrow{
	font-family: 'Brush Script MT', 'Pacifico', cursive;
	font-size: clamp(22px, 3vw, 32px);
	font-style: italic;
	margin: 0 0 6px;
	text-shadow: 0 6px 18px rgba(0,0,0,.45);
	opacity: .95;
	display: inline-block;
	transform: rotate(-3deg);
}

.hero-content h1{
	/* font-size: clamp(38px, 5vw, 64px); */
	font-size: clamp(26px, 3vw, 46px);
	font-weight: 800;
	margin: 6px 0 0;
	letter-spacing: -0.5px;
	text-shadow:
		0 10px 28px rgba(0,0,0,.45),
		0 0 18px rgba(255,255,255,.08);
}

/* Personajes */
/* .hero-characters{
	position: absolute;
	bottom: 30px;
	width: 100%;
	display: flex;
	justify-content: center;
	z-index: 2;
	pointer-events: none;
} */

.hero-characters img{
	width: min(600px, 125vw);
	height: auto;
	animation: floaty 6s ease-in-out infinite;
	filter: drop-shadow(0 18px 30px rgba(0,0,0,.35));
}

/* Flotación suave */
@keyframes floaty {
	0%   { transform: translateY(0); }
	50%  { transform: translateY(-10px); }
	100% { transform: translateY(0); }
}

/* Ola separadora del hero */
.hero-wave{
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 120px;
	z-index: 4;
	pointer-events: none;
	filter: none;
	transform: translateY(1px);
	overflow: hidden;
}

.hero-wave svg{ width: 100%; height: 100%; display:block; }

.hero-wave path{
	fill: var(--arc-what-bg);
	opacity: 1;
	shape-rendering: geometricPrecision;
}

@media (max-width: 600px){
	.hero-wave{ height: 90px; }
}

/* Animación de entrada del texto */
.hero-anim{
	opacity: 0;
	transform: translateY(14px);
	animation: heroFadeUp .85s ease-out forwards;
}
.hero-anim-delay{ animation-delay: .12s; }

@keyframes heroFadeUp{
	to{ opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce){
	.hero-anim{ opacity:1; transform:none; animation:none; }
	.hero-characters img{ animation:none; }
}

/* ==========================================================================
	HERO / NAV RESPONSIVE (único bloque, sin pisarse)
========================================================================== */

/* --- 4. PANTALLAS MUY GRANDES (Más de 1441px) --- */
@media (min-width: 1441px) {

	/* HERO: layout móvil limpio */
	.hero{
		height: 90svh;     /* viewport real */
		min-height: 90svh;
	}

	/* Texto */
	.hero-content{ padding-top: 25vh; }

	.hero-content h1 {
    font-size: clamp(28px, 2.6vw, 42px);
  }

	/* Personajes */
	.hero-characters{
	position: absolute;
	bottom: 30px;
	width: 100%;
	display: flex;
	justify-content: center;
	z-index: 2;
	pointer-events: none;
}

	.hero-characters img{
		/* width: min(740px, 96vw);
		animation-duration: 7.5s; */
		width: min(1000px, 125vw);
	height: auto;
	animation: floaty 6s ease-in-out infinite;
	filter: drop-shadow(0 18px 30px rgba(0,0,0,.35));
	}

	/* Fondo: estrategia FINAL (zoom + encuadre) */
	.hero-bg{
		background-size: 100% !important;          /* más recorte aún */
		background-position: center 94% !important;/* aún más agua */
	}

	.section-what {
		/* En pantallas gigantes, '100% auto' evita que la imagen 
			 se haga gigante y pierda calidad, pero mantiene el tope fijo */
		background-size: 100% auto !important;
		background-position: center top !important;
	}
}

/* --- 3. LAPTOPS Y PC MEDIANAS (1025px a 1440px) --- */
@media (min-width: 1025px) and (max-width: 1440px) {

	.hero{
		height: 90svh;     /* viewport real */
		min-height: 90svh;
	}

	.hero-bg{
		background-size: 110% !important;          /* más recorte aún */
		background-position: center 94% !important;/* aún más agua */
	}
	
	.hero-content{ padding-top: 20vh; }

	.hero-characters{
	position: absolute;
	bottom: 20px;
	width: 100%;
	display: flex;
	justify-content: center;
	z-index: 2;
	pointer-events: none;
}
	
	.hero-characters img{
		width: min(1000px, 100vw);
	}

	.section-what {
		background-position: center top !important;
		background-size: cover !important;
		padding-bottom: 100px; /* Más espacio para que luzca el fondo */
	}
}

/* --- 2. TABLETS (768px a 1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) {

	.hero{
		height: 60svh;     /* viewport real */
		min-height: 60svh;
	}

	.hero-bg{
		background-size: 120% !important;          /* más recorte aún */
		background-position: center 94% !important;/* aún más agua */
	}
	
	.hero-content{ padding-top: 14vh; }

	.hero-characters{
	position: absolute;
	bottom: 20px;
	width: 100%;
	display: flex;
	justify-content: center;
	z-index: 2;
	pointer-events: none;
}
	
	.hero-characters img{
		width: min(800px, 100vw);
	}

	.section-what {
		background-position: center top !important;
		background-size: cover !important;
	}
}

/* --- 1. MÓVILES (Hasta 767px) --- */
/* Aquí usamos max-width para que estos estilos solo afecten a celulares */
@media (max-width: 767px) {
	/* Navbar: ocultar items desktop (SOLO dentro del navbar) */
  .nav-container .nav-links,
  .nav-container .nav-actions .btn-blue,
  .nav-container .nav-actions .btn-orange,
  .nav-container .lang-switch{
    display: none;
  }

  .nav-toggle{ display: block; }

	.hero{
		height: 50svh !important;
		min-height: 50svh !important;
	}

	.hero-bg{
		background-size: 220% !important;          /* más recorte aún */
		background-position: center 90% !important;/* aún más agua */
	}
	
	.hero-content{ padding-top: 14vh; }

	.hero-characters{
	position: absolute;
	bottom: 20px;
	width: 100%;
	display: flex;
	justify-content: center;
	z-index: 2;
	pointer-events: none;
}
	
	.hero-characters img{
		width: min(600px, 100vw);
	}

	.section-what {
		padding: 0 0 64px;
		/* Cambiamos 'center center' por 'center top' */
		/* Esto asegura que la parte de arriba de la imagen siempre pegue con la ola */
		background: url('../img/fondo-oceano.jpg') no-repeat center top / cover, var(--arc-what-bg);
	}
}

/* ==========================================================================
	MOBILE MENU
========================================================================== */
.mobile-overlay{
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.35);
	backdrop-filter: blur(2px);
	z-index: 80;
}

.mobile-panel{
	position: fixed;
	left: 50%;
	top: 86px;
	transform: translateX(-50%);
	width: min(520px, calc(100% - 28px));
	background: rgba(255,255,255,.96);
	border-radius: 18px;
	border: 1px solid rgba(0,0,0,.08);
	box-shadow: 0 20px 60px rgba(0,0,0,.22);
	z-index: 90;
	padding: 14px;
}

.mobile-head{
	display:flex;
	align-items:center;
	justify-content: space-between;
	padding: 6px 6px 10px;
	border-bottom: 1px solid rgba(0,0,0,.08);
}

.mobile-title{
	font-weight: 900;
	letter-spacing: .2px;
	color:#111;
}

.mobile-close{
	width: 36px;
	height: 36px;
	border-radius: 10px;
	border: 1px solid rgba(0,0,0,.10);
	background: #fff;
	cursor: pointer;
	font-size: 18px;
}

.mobile-links{
	display:flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 6px 8px;
}

.mobile-links a{
	text-decoration:none;
	padding: 10px 10px;
	border-radius: 12px;
	font-weight: 800;
	color:#111;
}

.mobile-links a:hover{ background: rgba(0,0,0,.05); }

.mobile-actions{
	display:flex;
	flex-direction: column;
	gap: 10px;
	padding: 8px 6px 10px;
}

.mobile-lang{
	padding: 10px 6px 6px;
	border-top: 1px solid rgba(0,0,0,.08);
}

.muted{
	color: rgba(0,0,0,.65);
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .6px;
}

.lang-pills{
	display:flex;
	gap:10px;
	margin-top: 8px;
}

.pill{
	text-decoration:none;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1px solid rgba(0,0,0,.12);
	color:#111;
	font-weight: 800;
	background: #fff;
}




/* ==========================================================================
	SECTION: ¿Qué es ARCANDINA?
========================================================================== */
.section-what{
	/* position: relative; */
	padding: 0 0 64px;
	background: url('../img/fondo-oceano.jpg') no-repeat center center / cover, var(--arc-what-bg);
}

.section-what::before{
	content:"";
	position:absolute;
	inset:0;
	pointer-events:none;
}

.section-what .container{
	position: relative;
	z-index: 2;
}

.section-what h2{
	margin: 0 0 12px;
	font-size: clamp(26px, 3.2vw, 40px);
	line-height: 1.12;
	letter-spacing: -0.3px;
	color: #0e0f12;
}

.section-what .lead{
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: rgba(0,0,0,.72);
	max-width: 60ch;
}

.what-grid{
	position: relative;
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 26px;
	align-items: start;
	background: rgba(255,255,255,.60);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,.55);
	border-radius: 28px;
	box-shadow: 0 30px 90px rgba(0,0,0,.18);
	padding: 34px;
}

.what-cta{
	margin-top: 18px;
	display:flex;
	gap: 10px;
	flex-wrap: wrap;
}

.what-cards{ display:grid; gap: 12px; }

.mini-card{
	background: rgba(255,255,255,.85);
	border: 1px solid rgba(0,0,0,.08);
	border-radius: 18px;
	padding: 16px;
	box-shadow: 0 14px 34px rgba(0,0,0,.06);
}

.mini-ico{
	width: 38px;
	height: 38px;
	border-radius: 12px;
	display:flex;
	align-items:center;
	justify-content:center;
	background: rgba(0,0,0,.05);
	margin-bottom: 10px;
	font-size: 18px;
}

.mini-card h3{
	margin: 0 0 6px;
	font-size: 16px;
	letter-spacing: -0.2px;
}

.mini-card p{
	margin: 0;
	color: rgba(0,0,0,.70);
	line-height: 1.55;
	font-size: 14px;
}

.micro-note{
  margin: 10px 0 0;
  font-size: 12.8px;
  color: rgba(11,27,46,.68);
  font-weight: 700;
}


/* =========================
	WHAT: chips premium (glass + gradient)
========================= */
.what-chips{
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 72ch;
}

/* Chip base */
.what-chips .chip{
  position: relative;
  isolation: isolate;            /* permite capas bonitas */
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 999px;

  font-family: "Poppins", system-ui, sans-serif;
  font-size: 12.8px;
  font-weight: 700;
  letter-spacing: .1px;
  line-height: 1;

  color: rgba(10, 20, 35, .88);
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.45);

  box-shadow:
    0 18px 40px rgba(0,0,0,.10),
    0 2px 0 rgba(255,255,255,.50) inset;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    filter .18s ease;
}

/* “Borde premium” degradado fino */
.what-chips .chip::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(30,95,216,.35),
    rgba(255,140,43,.35)
  );
  z-index: -1;
  opacity: .55;
  filter: blur(.2px);
}

/* brillo sutil arriba */
.what-chips .chip::after{
  content:"";
  position:absolute;
  left: 14%;
  right: 14%;
  top: 2px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(60% 120% at 50% 50%,
    rgba(255,255,255,.70),
    transparent 70%);
  z-index: 0;
  pointer-events: none;
  opacity: .55;
}

.what-chips .chip strong{ font-weight: 800; }

/* Hover premium */
.what-chips .chip:hover{
  transform: translateY(-2px);
  box-shadow:
    0 26px 60px rgba(0,0,0,.14),
    0 2px 0 rgba(255,255,255,.55) inset;
  background: rgba(255,255,255,.72);
  filter: saturate(1.05);
}

/* =========================
	Variantes (Gratis / Pro)
========================= */
.what-chips .chip-free{
  color: rgba(9, 70, 38, .92);
  background: rgba(37,211,102,.14);
  border-color: rgba(37,211,102,.28);
}
.what-chips .chip-free::before{
  background: linear-gradient(90deg,
    rgba(37,211,102,.55),
    rgba(255,255,255,.12)
  );
  opacity: .65;
}

.what-chips .chip-pro{
  color: rgba(95, 45, 10, .92);
  background: rgba(255,140,43,.16);
  border-color: rgba(255,140,43,.30);
}
.what-chips .chip-pro::before{
  background: linear-gradient(90deg,
    rgba(255,140,43,.65),
    rgba(30,95,216,.30)
  );
  opacity: .65;
}

/* Responsive */
@media (max-width: 900px){
  .what-chips{ gap: 8px; }
  .what-chips .chip{
    font-size: 12.4px;
    padding: 10px 12px;
  }
	.what-grid{
		grid-template-columns: 1fr;
		padding: 24px 18px;
		border-radius: 24px;
	}
}

/* =========================
	Chips: reveal on scroll
========================= */
.what-chips .chip{
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity .55s ease,
    transform .55s ease,
    box-shadow .18s ease,
    background .18s ease,
    filter .18s ease;
  will-change: opacity, transform;
}

.section-what.is-inview .what-chips .chip{
  opacity: 1;
  transform: translateY(0);
}

/* Stagger automático */
.section-what.is-inview .what-chips .chip:nth-child(1){ transition-delay: .02s; }
.section-what.is-inview .what-chips .chip:nth-child(2){ transition-delay: .06s; }
.section-what.is-inview .what-chips .chip:nth-child(3){ transition-delay: .10s; }
.section-what.is-inview .what-chips .chip:nth-child(4){ transition-delay: .14s; }
.section-what.is-inview .what-chips .chip:nth-child(5){ transition-delay: .18s; }
.section-what.is-inview .what-chips .chip:nth-child(6){ transition-delay: .22s; }
.section-what.is-inview .what-chips .chip:nth-child(7){ transition-delay: .26s; }

@media (prefers-reduced-motion: reduce){
  .what-chips .chip{
    opacity: 1;
    transform: none;
    transition: none;
  }
}



/* ==========================================================================
  SECTION: MUESTRA DE CUENTO (preview)
========================================================================== */
.section-preview{
  position: relative;
  padding: 10px 0 64px;
  background: url('../img/fondo-oceano.jpg') no-repeat center center / cover;
}

.section-preview .container{
  position: relative;
  z-index: 2;
}

.preview-wrap{
  position: relative;
  border-radius: 28px;
  overflow: hidden;

  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.55);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 30px 90px rgba(0,0,0,.18);
  padding: 34px;
}

/* Deco bubbles + glow */
.preview-deco{
  position: absolute;
  inset: -40px;
  pointer-events: none;
  background:
    radial-gradient(220px 220px at 12% 18%, rgba(30,95,216,.18), transparent 60%),
    radial-gradient(260px 260px at 86% 20%, rgba(255,140,43,.18), transparent 60%),
    radial-gradient(180px 180px at 70% 85%, rgba(255,255,255,.35), transparent 60%);
  filter: blur(.2px);
  opacity: .9;
}

.preview-grid{
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 26px;
  align-items: center;
}

.preview-copy h2{
  margin: 0 0 12px;
  font-size: clamp(26px, 3.0vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.3px;
  color: #0e0f12;
}

.preview-copy .lead{
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(0,0,0,.72);
  max-width: 62ch;
}

.preview-bullets{
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: rgba(0,0,0,.74);
  font-weight: 700;
}

.preview-cta{
  margin-top: 18px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-note{
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(0,0,0,.68);
  font-weight: 700;
}

/* Media (book) */
.preview-media{
  display:flex;
  justify-content: center;
}

.preview-book{
  position: relative;
  display: inline-block;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;

  transform: translateZ(0);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.55);

  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.preview-book img{
  display:block;
  width: min(520px, 100%);
  height: auto;
}

.preview-book::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(80% 60% at 50% 0%,
    rgba(255,255,255,.28),
    transparent 65%);
  pointer-events:none;
}

.preview-badge{
  position:absolute;
  left: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 999px;

  font-weight: 900;
  font-size: 12px;
  letter-spacing: .3px;

  color: rgba(10, 20, 35, .92);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.55);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 18px 40px rgba(0,0,0,.14),
    0 2px 0 rgba(255,255,255,.45) inset;
}

.preview-book:hover{
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 32px 90px rgba(0,0,0,.28);
  filter: saturate(1.05);
}

/* Responsive */
@media (max-width: 900px){
  .preview-wrap{
    padding: 24px 18px;
    border-radius: 24px;
  }
  .preview-grid{
    grid-template-columns: 1fr;
  }
  .preview-media{
    order: -1; /* libro arriba en móvil */
  }
  .preview-book img{
    width: min(520px, 92vw);
  }
}





/* ==========================================================================
	SECTION: CÓMO FUNCIONA (base)
========================================================================== */
.section-how{
	padding: 64px 0 76px;
	background: #fff;
	position: relative;
	box-shadow: var(--shadow-deep);
}

.section-how::before{
	content:"";
	position:absolute;
	inset:0;
	background:
		radial-gradient(52% 42% at 20% 0%, rgba(30,95,216,.07), transparent 60%),
		radial-gradient(52% 42% at 80% 10%, rgba(255,140,43,.09), transparent 60%);
	pointer-events:none;
}

.how-head{
	position: relative;
	max-width: 760px;
}
.how-head .lead{ margin-top: 10px; }

.how-steps{
	position: relative;
	margin-top: 18px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.step-card{
	background: rgba(255,255,255,.88);
	border: 1px solid rgba(0,0,0,.08);
	border-radius: 18px;
	padding: 16px;
	box-shadow: 0 14px 34px rgba(0,0,0,.06);
	transition: transform .18s ease, box-shadow .18s ease;
}

.step-card:hover{
	transform: translateY(-2px);
	box-shadow: 0 18px 42px rgba(0,0,0,.10);
}

.step-top{
	display:flex;
	align-items:center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.step-num{
	width: 34px;
	height: 34px;
	border-radius: 12px;
	display:flex;
	align-items:center;
	justify-content:center;
	font-weight: 900;
	background: rgba(0,0,0,.06);
	color: #111;
}

.step-ico{
	width: 38px;
	height: 38px;
	border-radius: 14px;
	display:flex;
	align-items:center;
	justify-content:center;
	background: rgba(0,0,0,.05);
	font-size: 18px;
}

.step-card h3{
	margin: 0 0 6px;
	font-size: 16px;
	letter-spacing: -0.2px;
}

.step-card p{
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(0,0,0,.70);
}

/* Animación secuencial al entrar en viewport */
.section-how .step-card{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease, box-shadow .18s ease;
  will-change: opacity, transform;
}

.section-how.is-inview .step-card{
  opacity: 1;
  transform: translateY(0);
}

/* Delays (1→2→3) */
.section-how.is-inview .step-card:nth-child(1){ transition-delay: .00s; }
.section-how.is-inview .step-card:nth-child(2){ transition-delay: .10s; }
.section-how.is-inview .step-card:nth-child(3){ transition-delay: .20s; }

/* Accesibilidad */
@media (prefers-reduced-motion: reduce){
  .section-how .step-card{
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Animación secuencial al entrar en viewport (Cómo funciona) */
.section-how .step-card{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease, box-shadow .18s ease;
  will-change: opacity, transform;
}

.section-how.is-inview .step-card{
  opacity: 1;
  transform: translateY(0);
}

/* Delays (1→2→3) */
.section-how.is-inview .step-card:nth-child(1){ transition-delay: .00s; }
.section-how.is-inview .step-card:nth-child(2){ transition-delay: .12s; }
.section-how.is-inview .step-card:nth-child(3){ transition-delay: .24s; }

/* Accesibilidad */
@media (prefers-reduced-motion: reduce){
  .section-how .step-card{
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.how-cta{
	margin-top: 18px;
	display:flex;
	gap: 10px;
	flex-wrap: wrap;
}

@media (max-width: 900px){
	.how-steps{ grid-template-columns: 1fr; }
}




/* ==========================================================================
  SECTION: CÓMO FUNCIONA (WOOD STYLE)
========================================================================== */
.section-how-wood{
	position: relative;
	padding: 70px 0 86px;
	background: url('../img/ark-base.jpg') center / cover no-repeat;
	overflow: hidden;
}

.section-how-wood::before{
	content:"";
	position:absolute;
	inset:0;
	background:
		radial-gradient(70% 55% at 50% 20%, rgba(0,0,0,.18), transparent 60%),
		linear-gradient(to bottom, rgba(0,0,0,.22), rgba(0,0,0,.18));
	pointer-events:none;
}

.section-how-wood .container{ position: relative; z-index: 2; }
.section-how-wood .kicker{ color: rgba(255,255,255,.75); }

.section-how-wood h2{
	color: rgba(255,255,255,.96);
	text-shadow: 0 10px 26px rgba(0,0,0,.35);
}

.section-how-wood .lead{ color: rgba(255,255,255,.82); }
.section-how-wood .how-steps{ margin-top: 22px; }

.section-how-wood .step-card{
	position: relative;
	border-radius: 18px;
	padding: 18px 18px 16px;
	border: 1px solid rgba(255,255,255,.18);
	background: linear-gradient(180deg, rgba(66,38,18,.86), rgba(52,28,12,.84));
	box-shadow: 0 20px 55px rgba(0,0,0,.35), 0 2px 0 rgba(255,255,255,.10) inset;
	transition: transform .22s ease, box-shadow .22s ease;

	/* ✅ ayuda a evitar jitter */
	transform: translateZ(0);
	backface-visibility: hidden;
	will-change: transform;
}

.section-how-wood .step-card::before{
	content:"";
	position:absolute;
	inset:-4px;
	border-radius: 22px;
	background: linear-gradient(180deg, #b36a33, #8b4b1f);
	box-shadow: 0 10px 20px rgba(0,0,0,.25);
	z-index:-1;
}

.section-how-wood .step-card::after{
	content:"";
	position:absolute;
	inset: 6px;
	border-radius: 14px;
	border: 1px solid rgba(255,255,255,.12);
	pointer-events:none;
}

/* ✅ HOVER SIN ROTATE (evita blur del texto) */
.section-how-wood .step-card:hover{
	transform: translateY(-4px) translateZ(0);
	box-shadow: 0 24px 65px rgba(0,0,0,.42), 0 2px 0 rgba(255,255,255,.10) inset;
}

/* Antes rotabas cada card; ahora los dejamos consistentes y nítidos */
.section-how-wood .step-card:nth-child(2):hover{ transform: translateY(-4px) translateZ(0); }
.section-how-wood .step-card:nth-child(3):hover{ transform: translateY(-4px) translateZ(0); }

.section-how-wood .step-card h3{ color: rgba(255,255,255,.95); }

/* ✅ vuelve a blanco suave (tu valor anterior) */
.section-how-wood .step-card p{ color: rgba(255,255,255,.78); }

.section-how-wood .step-num{
	background: rgba(255,255,255,.10);
	color: rgba(255,255,255,.95);
	border: 1px solid rgba(255,255,255,.14);
}

.section-how-wood .step-ico{
	background: rgba(255,255,255,.10);
	border: 1px solid rgba(255,255,255,.14);
}

.section-how-wood .how-cta{ margin-top: 22px; }
.section-how-wood .how-cta .btn{ position: relative; box-shadow: 0 10px 24px rgba(0,0,0,.22); }

.section-how-wood .how-cta .btn-orange{
	box-shadow: 0 12px 26px rgba(0,0,0,.22),
		0 0 0 1px rgba(255,255,255,.08) inset,
		0 0 22px rgba(255,140,43,.28);
}
.section-how-wood .how-cta .btn-blue{
	box-shadow: 0 12px 26px rgba(0,0,0,.22),
		0 0 0 1px rgba(255,255,255,.08) inset,
		0 0 20px rgba(30,95,216,.22);
}

@media (min-width: 901px){
	.section-how-wood .how-steps{ gap: 18px; }
}

@media (max-width: 900px){
	.section-how-wood{ padding: 60px 0 74px; }
	.section-how-wood .how-steps{ grid-template-columns: 1fr; }

	/* ✅ hover mobile (sin rotate igual) */
	.section-how-wood .step-card:hover{ transform: translateY(-2px) translateZ(0); }
	.section-how-wood .step-card:nth-child(2):hover,
	.section-how-wood .step-card:nth-child(3):hover{ transform: translateY(-2px) translateZ(0); }
}

/* Panel grande tipo arca */
.section-how-wood .wood-panel{
	position: relative;
	border-radius: 26px;
	padding: 14px;
	margin-top: 18px;
	background: linear-gradient(180deg, #c57a3a, #8c4b1f);
	box-shadow: 0 26px 70px rgba(0,0,0,.42), 0 2px 0 rgba(255,255,255,.18) inset;
}

.section-how-wood .wood-panel::before{
	content:"";
	position:absolute;
	inset: 10px;
	border-radius: 20px;
	border: 1px solid rgba(255,255,255,.12);
	pointer-events:none;
}

.section-how-wood .wood-panel-inner{
	border-radius: 20px;
	padding: 26px 22px;
	background: linear-gradient(180deg, rgba(56,30,12,.86), rgba(44,22,8,.86));
	border: 1px solid rgba(255,255,255,.10);
	box-shadow: 0 16px 40px rgba(0,0,0,.35) inset;
}

/* .section-how-wood .wood-panel-inner .how-head{ max-width: 820px; } */
.section-how-wood .wood-panel-inner .how-head{ max-width: 100%; }
.section-how-wood .wood-panel-inner .how-steps{ margin-top: 18px; }
.section-how-wood .wood-panel-inner .how-cta{ margin-top: 18px; }

@media (max-width: 900px){
	.section-how-wood .wood-panel-inner{ padding: 20px 16px; }
	.section-how-wood .wood-panel{ padding: 12px; border-radius: 22px; }
}

/* Mini destacado dentro de Step (periodo gratis) */
.section-how-wood .step-mini{
	margin: 10px 0 0;
	font-size: 12.6px;
	line-height: 1.45;
	font-weight: 800;
	color: rgba(255,255,255,.80);
	padding: 10px 12px;
	border-radius: 14px;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.12);
}

/* =========================================================
   LISTA PREMIUM (Card 3) — FIX DEFINITIVO SIN TOCAR EL HTML
   (tu <li> es texto plano, por eso NO usamos grid-column)
========================================================= */
.section-how-wood .step-list{
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.section-how-wood .step-list li{
	display: flex;
	align-items: flex-start;
	gap: 10px;

	padding: 10px 12px;
	border-radius: 14px;

	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.10);

	color: rgba(255,255,255,.82);
	font-size: 13.5px;
	line-height: 1.45;

	/* ✅ evita “texto separado / raro” */
	text-align: left;
	white-space: normal;
	word-break: normal;
	overflow-wrap: anywhere;
}

/* check “premium” */
.section-how-wood .step-list li::before{
	content: "✓";
	font-weight: 900;

	width: 22px;
	height: 22px;
	border-radius: 10px;
	display: grid;
	place-items: center;

	color: rgba(255,255,255,.95);
	background: rgba(255,140,43,.18);
	border: 1px solid rgba(255,140,43,.25);
	box-shadow: 0 10px 18px rgba(0,0,0,.18);

	flex: 0 0 22px;
	margin-top: 1px;
}

/* Card #3 “featured” (mantengo tu intención) */
.section-how-wood .step-card:nth-child(3) {
	box-shadow: 0 30px 60px rgba(0,0,0,.35);
	border: 1px solid rgba(255,140,43,.35);
}








/* ==========================================================================
  SECTION: PLANES (MODO GRATIS / PLAN ÚNICO)
========================================================================== */

.section-plans{
  padding: 72px 0;
  background: #fff;
}

.plans-head .lead{ margin-top: 10px; }
.plans-head .plans-note{
  display: inline-block;
  margin-top: 8px;
  opacity: .95;
}

/* Grid base */
.plans-grid{
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

/* Cuando es card única */
.plans-grid-single{
  grid-template-columns: 1fr;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
  Card base (premium)
========================= */
.plan-card{
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 26px 24px 22px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
  overflow: hidden;

  display: flex;
  flex-direction: column;
  gap: 12px;

  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

/* Glow superior suave (premium) */
.plan-card::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 110px;
  background: radial-gradient(60% 80% at 50% 0%,
    rgba(30,95,216,.12),
    transparent 70%);
  pointer-events: none;
}

.plan-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(0,0,0,.14);
  filter: saturate(1.02);
}

/* Header del card (tag + badge) */
.plan-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Tag pill */
.plan-tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;

  padding: 9px 12px;
  border-radius: 999px;

  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;

  color: rgba(0,0,0,.60);
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);

  position: relative;
  padding-left: 38px; /* espacio ícono */
}

/* Ícono del tag */
.plan-tag::before{
  content: "🚀";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 10px;
  display: grid;
  place-items: center;

  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  font-size: 14px;
}

/* Badge (fecha) */
.plan-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;

  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}

/* Tipografía */
.plan-card h3{
  margin: 2px 0 2px;
  font-size: 22px;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: #0e0f12;
}

.plan-desc{
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(0,0,0,.72);
  max-width: 76ch;
}

/* Features como chips */
.plan-features{
  margin: 10px 0 10px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.plan-features li{
  display: flex;
  align-items: flex-start;
  gap: 10px;

  font-size: 14px;
  line-height: 1.45;
  color: rgba(0,0,0,.74);

  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.06);
}

/* Precio */
.plan-price{
  position: relative;
  margin: 6px 0 6px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 14px;
}

/* divisor premium */
.plan-price::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0,0,0,.14),
    transparent
  );
}

.plan-price::after{
  content:"";
  position:absolute;
  left: 18%;
  right: 18%;
  top: -6px;
  height: 18px;
  background: radial-gradient(60% 100% at 50% 50%,
    rgba(0,0,0,.10),
    transparent 70%);
  pointer-events: none;
  opacity: .35;
}

.plan-price .price{
  font-size: 34px;
  font-weight: 1000;
  letter-spacing: -0.6px;
  color: #0b0c10;
}

.plan-price .period{
  font-size: 14px;
  color: rgba(0,0,0,.62);
}

/* Acciones */
.plan-actions{
  margin-top: 4px;
  display: grid;
  gap: 10px;
}

.plan-card .btn{
  margin-top: 0;
  padding: 12px 16px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.plan-card .btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(0,0,0,.16);
  filter: brightness(1.02);
}

.plan-secondary{
  text-align: center;
  font-weight: 800;
  font-size: 13.5px;
  color: rgba(255,255,255,.90);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
}

.plan-secondary:hover{
  filter: brightness(1.05);
}

/* =========================
  Featured (para el CTA gratis premium)
========================= */
.plan-card.featured{
  border: 2px solid rgba(255,140,43,.60);
  box-shadow:
    0 30px 95px rgba(255,140,43,.22),
    0 26px 75px rgba(0,0,0,.18);
}

.plan-card.featured::before{
  background: radial-gradient(60% 80% at 50% 0%,
    rgba(255,140,43,.20),
    transparent 70%);
}

.plan-card.featured .plan-tag{
  color: var(--orange);
  background: rgba(255,140,43,.12);
  border-color: rgba(255,140,43,.28);
}

.plan-card.featured .plan-tag::before{
  content: "🎁";
  background: rgba(255,140,43,.16);
  border-color: rgba(255,140,43,.28);
}

/* =========================
  Separador ola (madera -> agua)
========================= */
.wave-separator{
  position: relative;
  z-index: 20;
  margin-top: -70px;
  line-height: 0;
}

.wave-separator img{
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
  transform: translateY(1px);
}

/* =========================
  Planes dentro del agua
========================= */
.section-plans-water{
  position: relative;
  margin-top: -2px;
  padding-top: 0;
  padding-bottom: 110px;
  overflow: hidden;
  background: var(--water-bg);
}

.section-plans-water::before{ content:none !important; }

.section-plans-water .container{
  position: relative;
  z-index: 2;
}

.section-plans-water .kicker{ color: rgba(255,255,255,.78); }

.section-plans-water h2{
  color: rgba(255,255,255,.96);
  text-shadow: 0 12px 28px rgba(0,0,0,.35);
}

.section-plans-water .lead{ color: rgba(255,255,255,.86); }

/* Card en agua: glass premium */
.section-plans-water .plan-card{
  background: rgba(255,255,255,.93);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow:
    0 26px 75px rgba(0,0,0,.35),
    0 2px 0 rgba(255,255,255,.35) inset;
  backdrop-filter: blur(10px);
}

.section-plans-water .plan-card::before{
  background: radial-gradient(60% 80% at 50% 0%,
    rgba(255,255,255,.22),
    transparent 70%);
}

.section-plans-water .plan-card:hover{
  transform: translateY(-6px);
  box-shadow:
    0 34px 90px rgba(0,0,0,.45),
    0 2px 0 rgba(255,255,255,.35) inset;
}

/* Ajustes featured en agua */
.section-plans-water .plan-card.featured{
  border: 2px solid rgba(255,140,43,.70);
  box-shadow:
    0 30px 95px rgba(255,140,43,.25),
    0 26px 75px rgba(0,0,0,.35);
}

/* Responsive */
@media (max-width: 900px){
  .plans-grid{ grid-template-columns: 1fr; }
  .plans-grid-single{ max-width: 100%; }
  .plan-features{ grid-template-columns: 1fr; }

  .wave-separator{ margin-top: -35px; }
  .section-plans-water{
    margin-top: -1px;
    padding-top: 46px;
  }
}

/* (Opcional) accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce){
  .plan-card,
  .plan-card:hover{
    transform: none !important;
    transition: none !important;
  }
}





/* ==========================================================================
  SECTION: PATROCINADORES
========================================================================== */
.section-sponsors{
  padding: 0px 0 82px;
  position: relative;
  background: var(--arc-patrocinadores);
}

.section-sponsors-ocean::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(55% 45% at 18% 15%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(55% 45% at 82% 10%, rgba(30,95,216,.16), transparent 62%),
    radial-gradient(60% 55% at 50% 90%, rgba(0,0,0,.18), transparent 65%);
  pointer-events:none;
}

.section-sponsors .container{
  position: relative;
  z-index: 2;
}

.section-sponsors-ocean .kicker{ color: rgba(255,255,255,.78); }
.section-sponsors-ocean h2{
  color: rgba(255,255,255,.96);
  text-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.section-sponsors-ocean .lead{ color: rgba(255,255,255,.86); }

.sponsors-head{
  max-width: 820px;
}

/* Grid premium: 2 columnas */
.sponsors-grid{
  /* margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
	background: var(--arc-patrocinadores); */

	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
  align-items: stretch;
	padding: 10px 20px 50px;
  position: relative;
	background: var(--arc-patrocinadores); */
}

/* Card premium */
.sponsor-card{
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  align-items: center;

  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 26px;
  padding: 18px;
  box-shadow:
    0 26px 75px rgba(0,0,0,.35),
    0 2px 0 rgba(255,255,255,.35) inset;
  backdrop-filter: blur(10px);

  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.sponsor-card::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 110px;
  background: radial-gradient(60% 80% at 50% 0%,
    rgba(30,95,216,.12),
    transparent 70%);
  pointer-events:none;
}

.sponsor-card:hover{
  transform: translateY(-4px);
  box-shadow:
    0 34px 90px rgba(0,0,0,.45),
    0 2px 0 rgba(255,255,255,.35) inset;
  filter: saturate(1.02);
}

/* Logo */
.sponsor-logo{
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}

.sponsor-logo img{
  width: 100%;
  max-width: 185px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
}

/* Texto */
.sponsor-body h3{
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.2px;
  color: #111;
}

.sponsor-body p{
  margin: 0;
  color: rgba(0,0,0,.70);
  line-height: 1.65;
  font-size: 14px;
}

/* Badge */
.sponsor-badge{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 12px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;

  color: rgba(255,255,255,.95);
  background: linear-gradient(180deg, rgba(255,140,43,.96), rgba(230,110,25,.96));
  box-shadow: 0 14px 30px rgba(0,0,0,.22), 0 0 0 1px rgba(255,255,255,.18) inset;
}

.sponsor-badge::before{
  content: "★";
  font-size: 12px;
  line-height: 1;
  transform: translateY(-1px);
  opacity: .95;
}

/* Variante badge para el segundo sponsor (más sobrio) */
.sponsor-badge-alt{
  background: linear-gradient(180deg, rgba(30,95,216,.95), rgba(15,70,175,.95));
  box-shadow: 0 14px 30px rgba(0,0,0,.22), 0 0 0 1px rgba(255,255,255,.18) inset;
}

.sponsor-badge-alt::before{
  content: "✓";
}

/* Responsive */
@media (max-width: 900px){
  .sponsors-grid{
    grid-template-columns: 1fr;
  }
  .sponsor-card{
    grid-template-columns: 1fr;
  }
  .sponsor-logo img{
    max-width: 220px;
  }
  .sponsor-badge{
    top: 12px;
    right: 12px;
    font-size: 11px;
    padding: 7px 10px;
  }
}





/* ==========================================================================
  SECTION: EVENTOS (Comunidad)
========================================================================== */
.section-events{
  padding: 76px 0 86px;
  background: #fff;
}

.section-events-ocean{
  position: relative;
  overflow: hidden;
  /* background: var(--water-bg); */
	box-shadow: var(--shadow-deep);
	background: url('../img/ark-base.jpg') center / cover no-repeat;
}

.section-events-ocean .container{ position: relative; z-index: 2; }

.events-head .kicker{ color: rgba(255,255,255,.78); }
.section-events-ocean h2{
  color: rgba(255,255,255,.96);
  text-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.section-events-ocean .lead{ color: rgba(255,255,255,.86); max-width: 70ch; }

.events-grid{
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.events-panel{
  background: rgba(255,255,255,.93);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 26px 75px rgba(0,0,0,.35), 0 2px 0 rgba(255,255,255,.35) inset;
  backdrop-filter: blur(10px);
}

.events-panel-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.events-panel-top h3{
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.2px;
  color: rgba(0,0,0,.88);
}

.events-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.95);
  background: linear-gradient(180deg, rgba(255,140,43,.96), rgba(230,110,25,.96));
  box-shadow: 0 12px 26px rgba(0,0,0,.16), 0 0 0 1px rgba(255,255,255,.18) inset;
}
.events-pill.subtle{
  background: linear-gradient(180deg, rgba(30,95,216,.92), rgba(20,70,170,.92));
}

.events-list{
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.event-card{
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;

  border-radius: 18px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.90);
  box-shadow: 0 14px 34px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.event-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0,0,0,.10);
}

.event-date{
  border-radius: 16px;
  padding: 10px 8px;
  text-align: center;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.08);
  display:flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.ed-day{
  font-size: 18px;
  font-weight: 900;
  color: rgba(0,0,0,.88);
  line-height: 1;
}
.ed-mon{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(0,0,0,.60);
}

.event-meta{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.event-type, .event-mode{
  font-size: 12px;
  font-weight: 800;
  color: rgba(0,0,0,.62);
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.06);
  padding: 5px 9px;
  border-radius: 999px;
}

.event-title{
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.2px;
  color: rgba(0,0,0,.90);
}

.event-desc{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(0,0,0,.72);
}

.event-footer{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.event-place{
  font-size: 12px;
  font-weight: 900;
  color: rgba(0,0,0,.60);
}

.event-link{
  font-size: 13px;
  font-weight: 900;
  color: var(--blue);
  text-decoration: none;
}
.event-link:hover{ text-decoration: underline; }

.event-note{
  font-size: 13px;
  font-weight: 800;
  color: rgba(0,0,0,.62);
}

.event-card.upcoming .event-date{
  background: rgba(255,140,43,.12);
  border-color: rgba(255,140,43,.25);
}
.event-card.past{
  opacity: .92;
}
.event-card.past .event-date{
  background: rgba(30,95,216,.10);
  border-color: rgba(30,95,216,.20);
}

.events-cta{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.events-mini{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.06);
}
.events-mini-text{
  margin: 0;
  font-size: 13.5px;
  color: rgba(0,0,0,.72);
}

@media (max-width: 900px){
  .events-grid{ grid-template-columns: 1fr; }
  .events-panel{ padding: 16px; }
  .event-card{ grid-template-columns: 58px 1fr; }
}




/* ==========================================================================
	SECTION: PERSONAJES (Ocean)
========================================================================== */
.section-characters-ocean{
	position: relative;
	padding: 90px 0 96px;
	overflow: hidden;
	box-shadow: var(--shadow-deep);
	background: url('../img/ark-base.jpg') center / cover no-repeat;
	/* background:
		radial-gradient(70% 55% at 50% 0%, rgba(255,255,255,.10), transparent 60%),
		linear-gradient(to bottom, #0b4aa8 0%, #083b87 55%, #062d68 100%); */
}

.section-characters-ocean::before{
	content:"";
	position:absolute;
	inset:0;
	background: radial-gradient(80% 60% at 50% 20%, rgba(255,255,255,.06), transparent 60%);
	pointer-events:none;
}

.section-characters-ocean .container{ position: relative; z-index: 2; }

.section-characters-ocean .kicker{ color: rgba(255,255,255,.75); }
.section-characters-ocean h2{
	color:#fff;
	text-shadow: 0 14px 34px rgba(0,0,0,.35);
}
.section-characters-ocean .lead{ color: rgba(255,255,255,.85); }

/* Grid */
.section-characters-ocean .characters-grid{
	margin-top: 26px;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}

/* Card */
.section-characters-ocean .char-card{
	position: relative;
	border-radius: 18px;
	background: rgba(255,255,255,.94);
	border: 1px solid rgba(255,255,255,.22);
	box-shadow: 0 18px 55px rgba(0,0,0,.28);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 310px;
	transition: transform .22s ease, box-shadow .22s ease;
}

/* Barra lateral */
.section-characters-ocean .char-card::before{
	content:"";
	position:absolute;
	left:0; top:0; bottom:0;
	width: 10px;
	background: var(--orange);
}

/* Media */
.section-characters-ocean .char-media{
	height: 132px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 16px 16px 10px;
	background:
		radial-gradient(70% 60% at 50% 30%, rgba(0,0,0,.10), transparent 60%),
		linear-gradient(to bottom, rgba(255,255,255,.95), rgba(255,255,255,.70));
	border-bottom: 1px solid rgba(0,0,0,.06);
}

.section-characters-ocean .char-figure{
	max-height: 110px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto;
	filter: drop-shadow(0 14px 16px rgba(0,0,0,.22));
	pointer-events: none;
	transition: transform .22s ease;
}

.section-characters-ocean .char-body{
	padding: 18px 20px 18px 22px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.section-characters-ocean .char-kicker{
	display:block;
	font-family: Poppins, system-ui, sans-serif;
	font-size: 9.6px;
	font-weight: 800;
	letter-spacing: .9px;
	text-transform: uppercase;
	color: rgba(0,0,0,.58);
	margin: 0 0 6px;
}

.section-characters-ocean .char-name{
	font-family: Poppins, system-ui, sans-serif;
	font-size: 30px;
	line-height: 1;
	font-weight: 800;
	letter-spacing: -0.2px;
	margin: 0 0 8px;
}

.section-characters-ocean .char-desc{
	font-family: "Open Sans", system-ui, sans-serif;
	font-size: 12px;
	line-height: 1.55;
	color: rgba(0,0,0,.78);
	margin: 0 0 12px;
}

.section-characters-ocean .char-link{
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: Poppins, system-ui, sans-serif;
	font-weight: 800;
	text-decoration: none;
	color: rgba(0,0,0,.88);
	position: relative;
	padding-left: 2px;
}

/* Hover */
.section-characters-ocean .char-card:hover{
	transform: translateY(-4px);
	box-shadow: 0 26px 80px rgba(0,0,0,.35);
}
.section-characters-ocean .char-card:hover .char-figure{ transform: scale(1.03); }
.section-characters-ocean .char-card:hover .char-link{ color:#000; }
.section-characters-ocean .char-card:hover .char-link::after{
	content: " →";
	position: relative;
	left: 4px;
}

/* FIX flecha duplicada: lo resolvemos de forma limpia:
	- Solo permitimos la flecha del hover (arriba)
	- No añadimos pseudo-elementos base
*/
.section-characters-ocean .char-link::before{ content:none; }

/* Colores por personaje */
.section-characters-ocean .char-cori::before{ background:#17b6c3; }
.section-characters-ocean .char-cori .char-name{ color:#0fa8b2; }

.section-characters-ocean .char-guardian::before{ background:#7aa11a; }
.section-characters-ocean .char-guardian .char-name{ color:#6b9713; }

.section-characters-ocean .char-jagui::before{ background:#7a3a5b; }
.section-characters-ocean .char-jagui .char-name{ color:#5F3543; }

.section-characters-ocean .char-tucan::before{ background:#c80f5a; }
.section-characters-ocean .char-tucan .char-name{ color:#c80f5a; }

.section-characters-ocean .char-ratasura::before{ background:#2f6bdc; }
.section-characters-ocean .char-ratasura .char-name{ color:#2f6bdc; }

/* Responsive personajes */
@media (max-width: 1200px){
	.section-characters-ocean .characters-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px){
	.section-characters-ocean{ padding: 72px 0 80px; }
	.section-characters-ocean .characters-grid{ grid-template-columns: repeat(2, 1fr); }
	/* En móvil: sin “flotar” exagerado */
	.section-characters-ocean .char-card:hover{ transform: none; }
	.section-characters-ocean .char-card:hover .char-figure{ transform: none; }
	.section-characters-ocean .char-card:hover .char-link::after{ content:none; }
}
@media (max-width: 560px){
	.section-characters-ocean .characters-grid{ grid-template-columns: 1fr; }
	.section-characters-ocean .char-media{ height: 150px; }
	.section-characters-ocean .char-figure{ max-height: 130px; }
}




/* ==========================================================================
  SECTION: NEWSLETTER
========================================================================== */
.section-newsletter{
  padding: 66px 0 84px;
  position: relative;
}

.section-newsletter-ocean{
  /* background: var(--water-bg);
  overflow: hidden; */
	box-shadow: var(--shadow-deep);
	background:
    radial-gradient(50% 40% at 15% 10%, rgba(30,95,216,.08), transparent 60%),
    radial-gradient(50% 40% at 85% 20%, rgba(255,140,43,.10), transparent 60%);
}

.newsletter-card{
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  padding: 28px;
  border-radius: 26px;
  background: var(--water-bg);
	/* background: rgba(255,255,255,.14); */
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 26px 75px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.newsletter-card::before{
  content:"";
  position:absolute;
  inset: -2px;
  border-radius: 28px;
  background:
    radial-gradient(60% 60% at 10% 0%, rgba(255,140,43,.25), transparent 55%),
    radial-gradient(60% 60% at 100% 10%, rgba(30,95,216,.22), transparent 55%);
  pointer-events:none;
}

.newsletter-copy,
.newsletter-formbox{
  position: relative;
  z-index: 2;
}

.section-newsletter .kicker{ color: rgba(255,255,255,.78); }
.section-newsletter h2{
  color: rgba(255,255,255,.96);
  text-shadow: 0 12px 28px rgba(0,0,0,.35);
  margin: 0 0 10px;
}
.section-newsletter .lead{
  color: rgba(255,255,255,.86);
  margin: 0;
  max-width: 62ch;
}

.newsletter-perks{
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}
.newsletter-perks li{
  color: rgba(255,255,255,.88);
  font-size: 14px;
}

.newsletter-formbox{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 20px 55px rgba(0,0,0,.25), 0 2px 0 rgba(255,255,255,.35) inset;
}

.nl-label{
  display:block;
  font-weight: 800;
  font-size: 13px;
  color: rgba(0,0,0,.72);
  margin-bottom: 8px;
}

.nl-row{
  display:flex;
  gap: 10px;
  align-items: stretch;
}

.newsletter-form input[type="email"]{
  flex: 1;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.newsletter-form input[type="email"]:focus{
  border-color: rgba(30,95,216,.55);
  box-shadow: 0 0 0 4px rgba(30,95,216,.15);
}

.newsletter-form .btn{
  white-space: nowrap;
  border-radius: 14px;
  padding: 12px 16px;
}

.nl-consent{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  align-items:flex-start;
  font-size: 13px;
  color: rgba(0,0,0,.72);
}

.nl-consent input{
  margin-top: 2px;
}

.nl-mini{
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(0,0,0,.55);
  line-height: 1.45;
}

@media (max-width: 900px){
  .newsletter-card{
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 24px;
  }
  .nl-row{
    flex-direction: column;
  }
  .newsletter-form .btn{
    width: 100%;
  }
}

.nl-alert{
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}
.nl-alert-ok{
  background: rgba(46, 204, 113, .12);
  border: 1px solid rgba(46, 204, 113, .35);
}
.nl-alert-err{
  background: rgba(231, 76, 60, .12);
  border: 1px solid rgba(231, 76, 60, .35);
}





/* =========================
	CONTACTO (antes del footer)
========================= */
.section-contact{
  padding: 80px 0;
  position: relative;
}

.section-contact .contact-card{
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.18);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.section-contact .contact-copy .kicker{
  margin-bottom: 8px;
}

.section-contact .contact-copy h2{
  margin: 0 0 10px 0;
}

.section-contact .contact-copy .lead{
  margin: 0 0 14px 0;
  opacity: 0.92;
}

.section-contact .contact-perks{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.section-contact .contact-actions{
  display: grid;
  gap: 12px;
  align-content: start;
}

.section-contact .contact-action{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.82);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

.section-contact .contact-action:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.92);
}

.section-contact .contact-ico{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: rgba(31,102,255,0.10);
}

.section-contact .contact-action.wa .contact-ico{
  background: rgba(37,211,102,0.14);
}

.section-contact .contact-action-body{
  display: grid;
  gap: 2px;
  flex: 1;
}

.section-contact .contact-action-body strong{
  color: #0b1b2e;
  font-weight: 800;
}

.section-contact .contact-action-body span{
  color: rgba(11,27,46,0.75);
  font-size: 14px;
}

.section-contact .contact-arrow{
  font-weight: 900;
  color: rgba(11,27,46,0.6);
}

.section-contact .contact-mini{
  margin-top: 6px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.section-contact .contact-note{
  font-size: 13px;
  color: rgba(11,27,46,0.7);
}

/* Responsive */
@media (max-width: 900px){
  .section-contact .contact-card{
    grid-template-columns: 1fr;
  }
}




/* ==========================================================================
	FOOTER
========================================================================== */
.arc-footer{
	position: relative;
	padding: 80px 0 34px;
	box-shadow: var(--shadow-deep);
	background:
		radial-gradient(70% 55% at 50% 0%, rgba(255,255,255,.08), transparent 60%),
		linear-gradient(to bottom, #0b4aa8 0%, #083b87 55%, #062d68 100%);
	color: rgba(255,255,255,.88);
}

.arc-footer::before{
	content:"";
	position:absolute;
	inset:0;
	background: radial-gradient(80% 60% at 50% 10%, rgba(255,255,255,.05), transparent 60%);
	pointer-events:none;
}

.arc-footer .container{ position: relative; z-index: 2; }

.footer-top{
	display: grid;
	grid-template-columns: 1.1fr 1.9fr;
	gap: 26px;
	align-items: start;
	padding-bottom: 26px;
	border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-brand h3{
	margin: 0 0 10px;
	font-size: 22px;
	letter-spacing: .6px;
}

.footer-trust{
	margin: 0 0 8px;
	font-weight: 700;
	line-height: 1.65;
	color: rgba(255,255,255,.85);
	max-width: 46ch;
}

.footer-mini{
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: rgba(255,255,255,.65);
	max-width: 46ch;
}

.footer-cols{
	display: grid;
	grid-template-columns: 1fr 1fr 1.3fr;
	gap: 22px;
}

.footer-col h4{
	margin: 0 0 10px;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255,255,255,.9);
}

.footer-col a{
	display: block;
	width: 100%;
	padding: 6px 0;
	line-height: 1.25;
	font-weight: 800;
	font-size: 14px;
	color: rgba(255,255,255,.78);
	text-decoration: none;
}

.footer-col a:hover{
	color: #fff;
	text-decoration: underline;
}

.footer-col{ white-space: normal; }

.footer-bottom{
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	padding-top: 20px;
	flex-wrap: wrap;
}

.footer-legal{
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: rgba(255,255,255,.72);
}

.footer-copy small{
	font-size: 12px;
	color: rgba(255,255,255,.6);
}

@media (max-width: 900px){
	.footer-top{ grid-template-columns: 1fr; }
	.footer-cols{ grid-template-columns: 1fr; }
	.arc-footer{ padding: 70px 0 30px; }
}

/* Responsive: un pelín más pequeño aún */
@media (max-width: 1100px) {
  .nav-links a {
    font-size: 13px;
    padding: 6px 8px;
  }
}





/* ==============================================
	ESTILOS PARA EL LECTOR DE PDF DE LOS CUENTOS 
======================================================== */

/* Modal más ancha */
#modalLectorCuento .modal-dialog {
  max-width: 1200px;            /* un poco más grande que la XL normal */
}

/* Modal más alta (90% de la pantalla) */
#modalLectorCuento .modal-content {
  height: 95vh;   /* en vez de 90vh */
}

/* Header más delgado */
#modalLectorCuento .modal-header {
  padding: .2rem .75rem;
}

#modalLectorCuento .modal-title {
  font-size: 1rem;
  color:#fff;
}

#modalLectorCuento .btn-close {
  padding: .5rem;
}

/* El body es un contenedor flex vertical:
   arriba el libro, abajo la barra de controles */
#modalLectorCuento .modal-body {
  padding: .5rem .75rem .5rem;
  display: flex;
  flex-direction: column;
  /* sin height: 100%; */
}

/* Loader ocupa el espacio central cuando se está cargando */
#flipbookLoader {
  flex: 1 1 auto;
}

/* Wrapper del lector: libro + toolbar */
#flipbookWrapper {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;                  /* importante para que flex calcule bien */
}

/* Contenedor del flipbook (el libro en sí) */
#modalLectorCuento .flip-book-container {
  flex: 1 1 auto;                 /* ocupa todo el espacio disponible */
  min-height: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: auto;                 /* scroll interno cuando hay zoom */
}

/* Flipbook ocupando toda la zona disponible */
#modalLectorCuento .flip-book {
  width: 100%;
  height: 100%;                   /* ocupa la altura libre entre header y toolbar */
  margin: 0 auto;
  background-color: #f3f0e6;
  transition: transform 0.2s ease;
}

/* Estilos internos de las páginas */
#modalLectorCuento .flip-book .page {
  background-color: #fff7e6;
}

#modalLectorCuento .flip-book .page-content {
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modalLectorCuento .flip-book canvas {
  max-width: 100%;
  max-height: 100%;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 8px rgba(0,0,0,.2);
  border-radius: 4px;
}

/* Barra de controles inferior pegada al filo de abajo */
#modalLectorCuento .toolbar-lector {
  flex-shrink: 0;                            /* no se estira, queda fija abajo */
  padding: .25rem .5rem;
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fff;
}

/* Hacer la barra un poco más compacta */
#modalLectorCuento .toolbar-lector .btn,
#modalLectorCuento .toolbar-lector span {
  font-size: .80rem;
  padding: .15rem .40rem;
}

/* Fondo de madera para la modal del lector */
  #modalLectorCuento .modal-content {
    background-image: url('../img/fondo-madera-arcandina.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
  }

  /* Fondo semitransparente detrás del flipbook para que se vea mejor */
  /* #flipbookWrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
  } */

  /* Fondo del área interna del flipbook */
  #flipbook {
    background: transparent !important;
  }

  .flip-book-container {
    background: transparent !important;
  }

  /* Barra del título del lector: color + sombra inferior */
#modalLectorCuento .modal-header {
    /* background: rgba(0, 0, 0, 0.70);              barra oscura tipo cabecera */
    background-image: url('../img/fondo-madera-arcandina.webp');
    background-size: 100% 100%;        /* <-- controla el grosor vertical de la madera */

    color: #fff;
    border-bottom: none;                          /* quitamos la línea gris */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55);   /* SOMBRA hacia abajo */
    position: relative;
    z-index: 2;                                   /* por encima del contenido */
}

/* Opcional: que el título tenga un poquito más de peso y espacio */
#modalLectorCuento .modal-header .modal-title {
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.75); /* sombra para resaltar el texto */
}

#modalLectorCuento .btn-close {
    filter: invert(1) 
            drop-shadow(0 0 2px rgba(0, 0, 0, 0.9))
            drop-shadow(0 0 4px rgba(0, 0, 0, 0.7));  /* “glow” oscuro alrededor */
    opacity: 1 !important;
    transform: scale(1.2);              /* un poquito más grande */
    transition: transform 0.15s ease,   /* animación suave */
                filter 0.15s ease;
}

/* Efecto al pasar el mouse: aún más 3D */
#modalLectorCuento .btn-close:hover {
    transform: scale(1.35);
    filter: invert(1)
            drop-shadow(0 0 3px rgba(0, 0, 0, 1))
            drop-shadow(0 0 6px rgba(0, 0, 0, 0.9));
}


/* =====================================================
	Ajustes específicos para móvil del modal del cuento
======================================================== */
@media (max-width: 768px) {

  /* La modal ocupa casi toda la pantalla y sin bordes redondeados grandes */
  #modalLectorCuento .modal-dialog {
    max-width: 100%;
    margin: 0;
  }

  #modalLectorCuento .modal-content {
    height: 100vh;
    border-radius: 0;
  }

  #modalLectorCuento .modal-header {
    padding: .4rem .5rem;
  }

  #modalLectorCuento .modal-title {
    font-size: .9rem;
  }

  /* El contenedor del libro ocupa todo lo posible */
  #modalLectorCuento .flip-book-container {
    padding: 0;           /* sin márgenes extra alrededor del PDF */
  }

  /* Barra de controles más compacta y adaptable en 2 filas */
  #modalLectorCuento .toolbar-lector {
    padding: .15rem .25rem;
    flex-wrap: wrap;
    gap: .25rem;
  }

  #modalLectorCuento .toolbar-lector .btn,
  #modalLectorCuento .toolbar-lector span {
    font-size: .75rem;
    padding: .15rem .3rem;
  }

  /* Que los botones se puedan acomodar tipo “grid” cuando no caben en una sola fila */
  #modalLectorCuento .toolbar-lector .btn {
    flex: 1 1 45%;            /* aprox dos botones por fila */
    text-align: center;
  }

  /* El texto "Página X de Y" ocupa toda la fila cuando haga falta */
  #modalLectorCuento .toolbar-lector span.small {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* =============================
   MODAL LECTOR DE CUENTOS
============================= */

#modalLectorCuento .modal-dialog {
  max-width: 1200px;
  margin: 1.5rem auto;
}

#modalLectorCuento .modal-content {
  height: 95vh;
  border-radius: 12px;
  overflow: hidden;
}

/* Laptop / pantallas medianas */
@media (max-width: 1399px) {
  #modalLectorCuento .modal-dialog {
    max-width: 95vw;
  }
}

/* Header fijo */
#modalLectorCuento .modal-header {
  flex-shrink: 0;
}

/* Body flexible */
#modalLectorCuento .modal-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}


/* AJUSTAR EL CONTENEDOR DEL FLIPBOOK (CLAVE) */
/* Contenedor del flipbook */
#flipbookWrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Área real del libro */
.flip-book-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Canvas del flipbook */
#flipbook {
    max-width: 100%;
    max-height: 100%;
}


/* ============================
  MODAL LECTOR DEL CUENTO - PEGADA ARRIBA
============================ */
#modalLectorCuento .modal-dialog {
  margin-top: .25rem !important;   /* casi pegada */
  margin-bottom: .5rem !important;
}

@media (min-width: 992px) {
  #modalLectorCuento .modal-dialog {
    margin-top: .15rem !important; /* aún más pegada en pantallas grandes */
  }
}


/* ===================================================
  QUITAR SCROLL LATERAL DERECHO DEL LECTOR DEL CUENTO
====================================================== */

/* El body del modal no debe scrollear */
#modalLectorCuento .modal-body {
  overflow: hidden !important;
}

/* El wrapper tampoco */
#flipbookWrapper {
  overflow: hidden !important;
}

/* El contenedor del libro NO debe mostrar scroll */
#modalLectorCuento .flip-book-container {
  overflow: hidden !important;
}


/* =========================================
  MODAL LECTOR - PEGADA ARRIBA Y ABAJO
========================================= */
#modalLectorCuento .modal-dialog {
  margin-top: 0 !important;
  margin-bottom: 0 !important;   /* 👈 pegada abajo */
}

/* Que el contenido ocupe toda la altura visible */
#modalLectorCuento .modal-content {
  height: 100vh !important;      /* 👈 para que llegue hasta abajo */
  border-radius: 12px;           /* si quieres, puedes bajar a 0 para “full edge” */
}


/* =========================================================
  LECTOR PDF - PEGAR PDF ARRIBA Y TOOLBAR ABAJO (SIN AIRE)
========================================================= */

/* Quita el padding del body del modal (ese aire arriba/abajo) */
#modalLectorCuento .modal-body{
  padding: 0 !important;
}

/* Quita el padding grande que le habíamos puesto al wrapper (era 20px) */
#modalLectorCuento #flipbookWrapper{
  padding: 6px 10px 0 !important;   /* 👈 casi pegado arriba */
  margin: 0 !important;
  height: 100% !important;
}

/* El contenedor del libro ocupa TODO el alto disponible */
#modalLectorCuento .flip-book-container{
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  align-items: flex-start !important; /* 👈 pega el PDF hacia arriba */
}

/* La barra se pega al fondo (sin aire) */
#modalLectorCuento .toolbar-lector{
  margin-top: auto !important;      /* 👈 empuja hacia abajo */
  margin-bottom: 0 !important;
  padding: 4px 8px !important;      /* 👈 más compacta */
}


/* =====================================================
  TOOLBAR DEL LECTOR - MÁS COMPACTA
===================================================== */

/* Barra inferior completa */
#modalLectorCuento .toolbar-lector {
  padding: 2px 6px !important;        /* menos alto */
  min-height: unset !important;
  gap: 4px !important;
}

/* Botones de la toolbar */
#modalLectorCuento .toolbar-lector .btn {
  font-size: 0.68rem !important;      /* 👈 letra más pequeña */
  padding: 2px 6px !important;        /* 👈 botones bajitos */
  line-height: 1.1;
}

/* Íconos dentro de botones */
#modalLectorCuento .toolbar-lector .btn i {
  font-size: 0.75rem !important;
}

/* Texto tipo "Página X de Y" */
#modalLectorCuento .toolbar-lector span,
#modalLectorCuento .toolbar-lector span.small {
  font-size: 0.65rem !important;
  line-height: 1.1;
  margin: 0 4px;
}

/* Inputs (zoom %) si los hubiera */
#modalLectorCuento .toolbar-lector input {
  font-size: 0.65rem !important;
  padding: 2px 4px !important;
  height: auto !important;
}


/* =====================================================
  TOOLBAR DEL LECTOR - REDONDEADA + TRANSPARENTE
===================================================== */

#modalLectorCuento .toolbar-lector{
  background: rgba(255, 255, 255, 0.78) !important; /* transparencia */
  border-radius: 14px !important;                  /* bordes redondeados */
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18) !important;
  backdrop-filter: blur(8px);                      /* efecto glass */
  -webkit-backdrop-filter: blur(8px);
  margin: 0 12px 10px !important;                  /* separa de los bordes */
}

/* Opcional: que los botones se vean “glass” también */
#modalLectorCuento .toolbar-lector .btn{
  background: rgba(255,255,255,0.55) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
}
#modalLectorCuento .toolbar-lector .btn:hover{
  background: rgba(255,255,255,0.75) !important;
}


/* =====================================================
  TOOLBAR LECTOR - FIX COLOR TEXTO EN HOVER
===================================================== */

/* Color base del texto */
#modalLectorCuento .toolbar-lector,
#modalLectorCuento .toolbar-lector .btn,
#modalLectorCuento .toolbar-lector span {
  color: #5a2e12 !important; /* café oscuro */
}

/* Hover, focus y active de botones */
#modalLectorCuento .toolbar-lector .btn:hover,
#modalLectorCuento .toolbar-lector .btn:focus,
#modalLectorCuento .toolbar-lector .btn:active {
  color: #5a2e12 !important;           /* texto café */
  background: rgba(255,255,255,0.85) !important;
  border-color: rgba(90,46,18,0.25) !important;
}

/* Evitar que Bootstrap pinte el texto blanco */
#modalLectorCuento .toolbar-lector .btn:hover i,
#modalLectorCuento .toolbar-lector .btn:focus i {
  color: #5a2e12 !important;
}


/* =====================================================
  TOOLBAR LECTOR - MICRO UX (hover suave)
===================================================== */

/* Transiciones suaves en toda la barra */
#modalLectorCuento .toolbar-lector .btn {
  transition: background-color .18s ease,
              border-color .18s ease,
              color .18s ease,
              transform .12s ease,
              box-shadow .18s ease;
  will-change: transform;
}

/* Hover: levanta sutilmente y da “glow” */
#modalLectorCuento .toolbar-lector .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

/* Click: baja un poquito (feedback) */
#modalLectorCuento .toolbar-lector .btn:active {
  transform: translateY(0px) scale(0.99);
  box-shadow: 0 3px 8px rgba(0,0,0,0.14);
}

/* Focus accesible y bonito (teclado) */
#modalLectorCuento .toolbar-lector .btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 .18rem rgba(90,46,18,0.25), 0 6px 14px rgba(0,0,0,0.15);
}


/* Input "Ir a página" dentro de la toolbar del lector */
#modalLectorCuento .toolbar-lector #gotoPageBox .form-control {
  height: calc(1.2em + .35rem + 2px);
  padding: .10rem .35rem;
  font-size: .75rem;
}

#modalLectorCuento .toolbar-lector #gotoPageBox .btn {
  padding: .12rem .45rem;
  font-size: .75rem;
}