/* ============================================================
   nosotros.css — Página Nosotros / Sobre nosotros
   Los colores y tipografías de marca (--brand-*) están definidos
   una sola vez en style.css (tema hijo) y se reutilizan aquí.
   ============================================================ */

#nosotros-page,
#nosotros-page *,
#nosotros-page *::before,
#nosotros-page *::after { box-sizing: border-box; }

#nosotros-page {
	font-family: var(--brand-font-body);
	color: var(--brand-text);
	overflow-x: hidden;
}

#nosotros-page .ab-hero__title,
#nosotros-page .ab-section-title,
#nosotros-page .ab-value__title,
#nosotros-page .ab-stat__num,
#nosotros-page .ab-testimonial__name,
#nosotros-page .ab-cta__title {
	font-family: var(--brand-font-title);
}

#nosotros-page .ab-hero__accent {
	font-family: var(--brand-font-accent);
	font-weight: 800;
	color: var(--brand-fucsia);
	display: inline-block;
}

.ab-container {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.ab-section-title {
	font-size: clamp(1.35rem, 2.8vw, 2rem);
	font-weight: 700;
	text-align: center;
	margin: 0 0 2rem;
}
.ab-section-title--left { text-align: left; }

/* ── Buttons ─────────────────────────────────────────────────── */
.ab-btn {
	display: inline-block;
	padding: 0.85rem 2rem;
	border-radius: 50px;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	border: 2px solid transparent;
	transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.25s ease;
}
.ab-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.ab-btn--primary { background: #fff; color: var(--brand-fucsia); border-color: #fff; }
.ab-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }

/* ── Hero ─────────────────────────────────────────────────── */
.ab-hero {
	padding: 5.5rem 0 4rem;
	text-align: center;
	background: linear-gradient(160deg, var(--brand-rosa-claro) 0%, var(--brand-crema-claro) 100%);
}

.ab-hero__eyebrow {
	display: inline-block;
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brand-fucsia);
	background: #fff;
	padding: 0.4rem 1rem;
	border-radius: 50px;
	margin-bottom: 1.25rem;
}

.ab-hero__title {
	font-size: clamp(2rem, 5vw, 3.2rem);
	font-weight: 800;
	line-height: 1.18;
	max-width: 780px;
	margin: 0 auto 1.25rem;
}

.ab-hero__sub {
	max-width: 620px;
	margin: 0 auto;
	font-size: 1.08rem;
	color: #5a4a56;
}

/* ── Historia ─────────────────────────────────────────────────── */
.ab-story { padding: 5rem 0; }

.ab-story__grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 3rem;
	align-items: center;
}

.ab-story__visual { display: flex; justify-content: center; }

.ab-story__blob {
	width: 260px;
	height: 260px;
	border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%;
	background: linear-gradient(135deg, var(--brand-fucsia), var(--brand-rosa-plum));
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 20px 50px rgba(159, 57, 105, 0.25);
}

.ab-story__emoji { font-size: 4.5rem; }

.ab-story__content p {
	color: #5a4a56;
	line-height: 1.7;
	margin: 0 0 1.1rem;
}

/* ── Valores ─────────────────────────────────────────────────── */
.ab-values { padding: 1rem 0 5rem; background: var(--brand-crema-claro); }

.ab-values__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.ab-value {
	background: #fff;
	border: 1px solid rgba(159, 57, 105, 0.12);
	border-radius: 18px;
	padding: 2rem 1.5rem;
	text-align: center;
	box-shadow: 0 4px 16px rgba(26, 10, 30, 0.05);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ab-value:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(200, 84, 122, 0.15);
	border-color: var(--brand-rosa-plum);
}

.ab-value__icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: var(--brand-rosa-claro);
	color: var(--brand-fucsia);
}
.ab-value__icon svg { width: 26px; height: 26px; }

.ab-value__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.5rem; }
.ab-value__text { font-size: 0.92rem; color: #6b5b67; line-height: 1.5; margin: 0; }

/* ── Nuestro equipo ────────────────────────────────────────────────── */
.ab-team { padding: 1rem 0 5rem; }

.ab-team__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.75rem;
}

.ab-team-card {
	text-align: center;
}

.ab-team-card__avatar {
	width: 120px;
	height: 120px;
	margin: 0 auto 1.1rem;
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(135deg, var(--brand-fucsia), var(--brand-rosa-plum));
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 26px rgba(159, 57, 105, 0.22);
}

.ab-team-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ab-team-card__initials {
	font-family: var(--brand-font-title);
	font-size: 2rem;
	font-weight: 700;
	color: #fff;
}

.ab-team-card__name { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.2rem; }
.ab-team-card__role { font-size: 0.88rem; color: #6b5b67; margin: 0; }

/* ── Estadísticas ─────────────────────────────────────────────────── */
.ab-stats {
	padding: 3.5rem 0;
	background: linear-gradient(135deg, var(--brand-fucsia), var(--brand-rosa-plum));
	color: #fff;
}

.ab-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	text-align: center;
}

.ab-stat__num {
	display: block;
	font-size: clamp(1.8rem, 3.5vw, 2.5rem);
	font-weight: 800;
	margin-bottom: 0.25rem;
}
.ab-stat__label { font-size: 0.9rem; opacity: 0.9; }

/* ── Testimonios ─────────────────────────────────────────────────── */
.ab-testimonials { padding: 5rem 0; }

.ab-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.ab-testimonial {
	background: #fff;
	border: 1px solid rgba(159, 57, 105, 0.12);
	border-radius: 18px;
	padding: 2rem;
	box-shadow: 0 4px 16px rgba(26, 10, 30, 0.05);
}

.ab-testimonial__stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 0.75rem; }
.ab-testimonial__text { color: #5a4a56; line-height: 1.6; margin: 0 0 1rem; font-style: italic; }
.ab-testimonial__name { font-size: 0.95rem; }

/* ── CTA final ─────────────────────────────────────────────────── */
.ab-cta {
	padding: 4.5rem 0;
	background: linear-gradient(135deg, var(--brand-fucsia), var(--brand-rosa-plum));
	color: #fff;
	text-align: center;
}

/* Forzar blanco en el título: el tema le pone color oscuro a los h2 por
   defecto, y eso gana sobre el color heredado de .ab-cta en fondos oscuros. */
#nosotros-page .ab-cta__title,
#nosotros-page .ab-cta__sub {
	color: #fff !important;
}

.ab-cta__inner { max-width: 620px; margin-inline: auto; }
.ab-cta__title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 0.75rem; }
.ab-cta__sub { opacity: 0.85; margin: 0 0 1.75rem; }
.ab-cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── WhatsApp flotante ─────────────────────────────────────────────────── */
.ab-whatsapp-float {
	position: fixed;
	right: 22px;
	bottom: 22px;
	width: 58px;
	height: 58px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--brand-fucsia);
	color: #fff;
	box-shadow: 0 4px 20px rgba(159, 57, 105, 0.45);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
	z-index: 999;
}
.ab-whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(159, 57, 105, 0.6); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.ab-story__grid { grid-template-columns: 1fr; text-align: center; }
	.ab-section-title--left { text-align: center; }
	.ab-values__grid { grid-template-columns: repeat(2, 1fr); }
	.ab-team__grid { grid-template-columns: repeat(2, 1fr); }
	.ab-stats__grid { grid-template-columns: repeat(2, 1fr); }
	.ab-testimonials__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.ab-hero { padding: 3.5rem 0 3rem; }
	.ab-values__grid { grid-template-columns: 1fr; }
	.ab-team__grid { grid-template-columns: 1fr; }
	.ab-whatsapp-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

/* ── Aparecer al hacer scroll ─────────────────────────────────────────
   .ab-reveal arranca invisible/desplazado; el observer en nosotros.js
   agrega .is-visible cuando el elemento entra en pantalla. Si JS no
   corre por algún motivo, un fallback sin JS (@supports) evita que el
   contenido quede oculto para siempre. */
#nosotros-page .ab-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s ease;
	transition-delay: var(--ab-reveal-delay, 0s);
}

#nosotros-page .ab-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Escalonado (stagger) dentro de cada cuadrícula */
#nosotros-page .ab-values__grid .ab-reveal:nth-child(1) { --ab-reveal-delay: 0s; }
#nosotros-page .ab-values__grid .ab-reveal:nth-child(2) { --ab-reveal-delay: 0.1s; }
#nosotros-page .ab-values__grid .ab-reveal:nth-child(3) { --ab-reveal-delay: 0.2s; }
#nosotros-page .ab-values__grid .ab-reveal:nth-child(4) { --ab-reveal-delay: 0.3s; }

#nosotros-page .ab-team__grid .ab-reveal:nth-child(1) { --ab-reveal-delay: 0s; }
#nosotros-page .ab-team__grid .ab-reveal:nth-child(2) { --ab-reveal-delay: 0.1s; }
#nosotros-page .ab-team__grid .ab-reveal:nth-child(3) { --ab-reveal-delay: 0.2s; }
#nosotros-page .ab-team__grid .ab-reveal:nth-child(4) { --ab-reveal-delay: 0.3s; }

#nosotros-page .ab-stats__grid .ab-reveal:nth-child(1) { --ab-reveal-delay: 0s; }
#nosotros-page .ab-stats__grid .ab-reveal:nth-child(2) { --ab-reveal-delay: 0.1s; }
#nosotros-page .ab-stats__grid .ab-reveal:nth-child(3) { --ab-reveal-delay: 0.2s; }
#nosotros-page .ab-stats__grid .ab-reveal:nth-child(4) { --ab-reveal-delay: 0.3s; }

#nosotros-page .ab-testimonials__grid .ab-reveal:nth-child(1) { --ab-reveal-delay: 0s; }
#nosotros-page .ab-testimonials__grid .ab-reveal:nth-child(2) { --ab-reveal-delay: 0.1s; }
#nosotros-page .ab-testimonials__grid .ab-reveal:nth-child(3) { --ab-reveal-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
	.ab-value, .ab-btn, .ab-whatsapp-float { transition: none; }
	#nosotros-page .ab-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}