/* ============================================================
   NICAWEBS — Pantalla destacada + WhatsApp con foto
   Colores de marca: azul / celeste / plateado
   ============================================================ */
:root {
	--nw-azul: #0b2a4a;
	--nw-azul-2: #123d6b;
	--nw-celeste: #38b6ff;
	--nw-plata: #c9d1da;
	--nw-wa: #25d366;
}

/* ---------- 1) PANTALLA ---------- */
.nw-pantalla {
	margin: 0;
	position: relative;
	max-width: 560px;
	width: 100%;
}
.nw-pantalla__marco {
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: 18px;
	overflow: hidden;
	background: var(--nw-azul);
	box-shadow:
		0 30px 60px -20px rgba(11, 42, 74, .45),
		0 0 0 1px rgba(201, 209, 218, .35);
}
.nw-pantalla__slide {
	position: absolute;
	inset: 0;
	display: block;
	opacity: 0;
	transition: opacity .8s ease;
	text-decoration: none;
	color: #fff;
}
.nw-pantalla__slide.is-activa { opacity: 1; z-index: 1; }
.nw-pantalla__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transform: scale(1.02);
	transition: transform 6s ease;
}
.nw-pantalla__slide.is-activa img { transform: scale(1.07); }

.nw-pantalla__barra {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .85rem 1.1rem;
	background: rgba(11, 42, 74, .92);
	backdrop-filter: blur(6px);
	font-size: .92rem;
	line-height: 1.3;
}
.nw-pantalla__etiqueta {
	flex: none;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--nw-azul);
	background: var(--nw-celeste);
	padding: .25rem .55rem;
	border-radius: 999px;
}
.nw-pantalla__titulo {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.nw-pantalla__flecha {
	flex: none;
	color: var(--nw-celeste);
	transition: transform .25s ease;
}
.nw-pantalla__slide:hover .nw-pantalla__flecha { transform: translateX(4px); }

.nw-pantalla__puntos {
	display: flex;
	justify-content: center;
	gap: .5rem;
	margin-top: .9rem;
}
.nw-pantalla__puntos button {
	width: 8px; height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--nw-plata);
	cursor: pointer;
	transition: width .3s ease, background .3s ease;
}
.nw-pantalla__puntos button.is-activo {
	width: 26px;
	background: var(--nw-celeste);
}

/* ---------- 2) WHATSAPP CON FOTO ---------- */
.nw-wa {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 9999;
	display: flex;
	align-items: flex-end;
	gap: 12px;
	font-family: inherit;
}
.nw-wa__boton {
	position: relative;
	flex: none;
	width: 64px; height: 64px;
	border-radius: 50%;
	box-shadow: 0 10px 25px -6px rgba(11, 42, 74, .5);
	transition: transform .25s ease;
}
.nw-wa__boton:hover { transform: translateY(-3px) scale(1.04); }
.nw-wa__boton img {
	width: 100%; height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #fff;
	background: var(--nw-azul-2);
}
.nw-wa__boton::before { /* anillo de pulso */
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid var(--nw-wa);
	animation: nw-pulso 2.4s ease-out infinite;
}
.nw-wa__icono {
	position: absolute;
	right: -2px; bottom: -2px;
	width: 26px; height: 26px;
	border-radius: 50%;
	background: var(--nw-wa);
	border: 2px solid #fff;
	display: grid;
	place-items: center;
}
.nw-wa__burbuja {
	position: relative;
	max-width: 250px;
	background: #fff;
	color: var(--nw-azul);
	border-radius: 16px 16px 4px 16px;
	padding: .8rem 2rem .8rem 1rem;
	box-shadow: 0 12px 30px -8px rgba(11, 42, 74, .35);
	font-size: .88rem;
	line-height: 1.4;
	display: flex;
	flex-direction: column;
	gap: .2rem;
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity .4s ease, transform .4s ease;
}
.nw-wa.is-abierta .nw-wa__burbuja {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
.nw-wa__burbuja strong { font-size: .92rem; }
.nw-wa__estado { font-size: .75rem; color: #1a9e4b; }
.nw-wa__cerrar {
	position: absolute;
	top: 4px; right: 6px;
	border: 0;
	background: none;
	font-size: 1.2rem;
	line-height: 1;
	color: #8a96a3;
	cursor: pointer;
	padding: .2rem .4rem;
}

@keyframes nw-pulso {
	0%   { transform: scale(1);   opacity: .8; }
	100% { transform: scale(1.35); opacity: 0; }
}

@media (max-width: 600px) {
	.nw-wa { right: 14px; bottom: 14px; }
	.nw-wa__boton { width: 56px; height: 56px; }
	.nw-wa__burbuja { max-width: 200px; font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
	.nw-pantalla__slide, .nw-pantalla__slide img,
	.nw-wa__burbuja, .nw-wa__boton { transition: none; }
	.nw-wa__boton::before { animation: none; }
}

/* ---------- 3) HERO DE PORTADA SIN IMAGEN DE FONDO ---------- */
.nw-hero .wp-block-cover__image-background { display: none !important; }
.nw-hero {
	background: linear-gradient(160deg, #ffffff 0%, #eef6fd 55%, #dcecf9 100%) !important;
}
/* Cuando la portada tiene la pantalla: texto a la izquierda, pantalla a la derecha */
@media (min-width: 900px) {
	.nw-hero .wp-block-cover__inner-container:has(.nw-pantalla) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: 56px;
		align-items: center;
		width: 100%;
		max-width: 1240px;
		margin-inline: auto;
	}
	.nw-hero .wp-block-cover__inner-container:has(.nw-pantalla) > header { grid-column: 1 / -1; }
	.nw-hero .wp-block-cover__inner-container:has(.nw-pantalla) > .nw-hero-content { grid-column: 1; }
	.nw-hero .wp-block-cover__inner-container:has(.nw-pantalla) > :not(header):not(.nw-hero-content) {
		grid-column: 2;
		grid-row: 2;
		justify-self: end;
		width: 100%;
		max-width: 580px;
		margin: 0;
	}
}
.nw-hero .nw-pantalla { max-width: 580px; }

/* ---------- 4) FOTO EN "NOSOTROS" ---------- */
.nw-foto { margin: 0; }
.nw-foto img {
	width: 100%;
	max-width: 460px;
	height: auto;
	display: block;
	margin-inline: auto;
	border-radius: 24px;
	box-shadow: 0 24px 50px -20px rgba(11, 42, 74, .45);
}
