/* =========================================================================
   V5 páginas dinámicas — estilos comunes heredados del home
   (Los snapshots inyectan los mismos estilos inline vía inc/snapshots.php)
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@1,9..144,400;1,9..144,600&display=swap");

:root {
	--ease-premium: cubic-bezier(.16,1,.3,1);
	--ease-swift: cubic-bezier(.65,0,.35,1);
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9998;
	opacity: .04;
	/* Sin mix-blend-mode: una capa fija con blend a pantalla completa fuerza
	   repintar todo el viewport en cada frame de scroll (jank). Sin blend el
	   navegador puede componer la capa por su cuenta sin repintar. */
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.octg-container { max-width: 1280px; margin: 0 auto; padding-inline: 24px; }

/* Botones */
.octg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: "Saira Condensed", sans-serif; font-weight: 700;
	text-transform: uppercase; letter-spacing: .05em;
	font-size: 14px; line-height: 1;
	padding: 14px 26px; border-radius: 999px;
	text-decoration: none; border: 2px solid transparent; cursor: pointer;
	transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.octg-btn--primary { background: #E6242A; border-color: #E6242A; color: #fff !important; box-shadow: 0 8px 20px rgba(230,36,42,.35); }
.octg-btn--primary:hover { background: #AD181C; border-color: #AD181C; color: #fff !important; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(230,36,42,.5); }
.octg-btn--ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff !important; }
.octg-btn--ghost:hover { background: #fff; border-color: #fff; color: #0C1015 !important; }
.octg-btn--whatsapp { background: #25D366; border-color: #25D366; color: #fff !important; }
.octg-btn--whatsapp:hover { background: #1da851; border-color: #1da851; color: #fff !important; transform: translateY(-2px); }

/* Serif italic (Fraunces) */
.octg-italic { font-family: "Fraunces", "Playfair Display", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.005em; text-transform: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-premium), transform .9s var(--ease-premium); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---- Hero cinematográfico ---- */
.octg-v2-hero {
	position: relative; min-height: 78vh;
	display: flex; flex-direction: column; justify-content: flex-end;
	color: #fff; overflow: visible; padding: 0 24px 0;
}
.octg-v2-hero__slides { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.octg-v2-hero__slide {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	opacity: 0; transition: opacity 1.2s ease;
}
.octg-v2-hero__slide.is-active { opacity: 1; animation: octgKB 8s ease-out forwards; }
@keyframes octgKB { from { transform: scale(1.05); } to { transform: scale(1.18); } }
.octg-v2-hero__overlay {
	position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(115deg, rgba(12,16,21,.82) 0%, rgba(12,16,21,.55) 45%, rgba(173,24,28,.55) 100%);
}
.octg-v2-hero__content {
	position: relative; z-index: 2; max-width: 1280px; width: 100%; margin: 0 auto;
	padding: 100px 0 80px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.octg-v2-hero__logo {
	width: clamp(180px, 15vw, 240px); height: auto; margin-bottom: 6px;
	filter: brightness(0) invert(1) drop-shadow(0 6px 20px rgba(0,0,0,.55)) drop-shadow(0 0 2px rgba(0,0,0,.8));
	opacity: 0; transform: translateY(24px); animation: octgRise 1s var(--ease-premium) forwards;
}
.octg-v2-hero__kicker {
	font-family: "Saira Condensed", sans-serif; font-weight: 700; font-size: 14px;
	text-transform: uppercase; letter-spacing: .25em; color: #fff; opacity: .9;
	animation: octgRise 1s var(--ease-premium) .15s forwards; opacity: 0; transform: translateY(24px);
}
.octg-v2-hero__title {
	font-family: "Saira Condensed", sans-serif; font-weight: 700; text-transform: uppercase;
	font-size: clamp(40px, 5.5vw, 80px); line-height: .98;
	color: #fff !important; margin: 0; max-width: 14ch; letter-spacing: .01em;
	animation: octgRise 1s var(--ease-premium) .3s forwards; opacity: 0; transform: translateY(24px);
}
.octg-v2-hero__title span { color: #E6242A; display: block; }
.octg-v2-hero__lead {
	font-family: "Roboto", sans-serif; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55;
	color: rgba(255,255,255,.92); max-width: 56ch; margin: 6px 0 0;
	animation: octgRise 1s var(--ease-premium) .5s forwards; opacity: 0; transform: translateY(24px);
}
.octg-v2-hero__ctas {
	display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap;
	animation: octgRise 1s var(--ease-premium) .7s forwards; opacity: 0; transform: translateY(24px);
}
@keyframes octgRise { to { opacity: 1; transform: none; } }

/* ---- Brand statement ---- */
.octg-v2-brand { position: relative; overflow: hidden; padding: 90px 0; background: #fff; text-align: left; }
.octg-v2-brand .octg-container {
	display: grid; grid-template-columns: 1fr .8fr; gap: 80px;
	align-items: start; position: relative; z-index: 1;
}
.octg-v2-brand__kicker {
	font-family: "Saira Condensed", sans-serif; font-weight: 700; font-size: 14px;
	text-transform: uppercase; letter-spacing: .15em; color: #E6242A;
	display: block; margin-bottom: 12px;
}
.octg-v2-brand__title {
	font-family: "Saira Condensed", sans-serif; font-weight: 700; text-transform: uppercase;
	font-size: clamp(28px, 3vw, 44px); line-height: 1.15; color: #0C1015;
	margin: 0 0 18px; max-width: 22ch;
}
.octg-v2-brand__text {
	font-family: "Roboto", sans-serif; font-size: 17px; line-height: 1.65;
	color: #5a636b; margin: 0 0 20px; max-width: 60ch;
}
.octg-v2-brand__link {
	font-family: "Saira Condensed", sans-serif; font-weight: 700; font-size: 14px;
	text-transform: uppercase; letter-spacing: .05em; color: #E6242A; text-decoration: none;
}
.octg-v2-brand__link span { margin-left: 6px; transition: margin-left .2s; }
.octg-v2-brand__link:hover span { margin-left: 12px; }
.octg-v2-brand__aside { position: relative; padding-top: 20px; }
.octg-v2-brand__number {
	font-family: "Saira Condensed", sans-serif; font-weight: 800;
	font-size: clamp(120px, 15vw, 220px); line-height: .85;
	color: transparent; -webkit-text-stroke: 1.5px rgba(230,36,42,.35);
	letter-spacing: -.03em; margin: 0;
}
.octg-v2-brand__aside p {
	font-family: "Fraunces", Georgia, serif; font-style: italic;
	font-size: 22px; line-height: 1.45; color: #0C1015;
	margin: 20px 0 0; max-width: 36ch;
}
.octg-v2-brand__aside p::before {
	content: ""; display: block; width: 60px; height: 3px; background: #E6242A; margin-bottom: 20px;
}
@media (max-width: 960px) { .octg-v2-brand .octg-container { grid-template-columns: 1fr; gap: 32px; } }

/* ---- Eyebrow y encabezado de sección ---- */
.octg-v2-eyebrow {
	font-family: "Saira Condensed", sans-serif; font-weight: 700; font-size: 14px;
	text-transform: uppercase; letter-spacing: .15em; color: #E6242A;
	display: inline-block; margin-bottom: 12px;
}

/* ---- SERVICIOS ARMADERA ---- */
.octg-arm-servicios { padding: 100px 0; background: #FBF3EA; position: relative; overflow: hidden; }
.octg-arm-servicios::before {
	content: "ARMADERA";
	position: absolute; top: -4vw; left: 50%; transform: translateX(-50%);
	font-family: "Saira Condensed", sans-serif; font-weight: 800;
	font-size: clamp(160px, 20vw, 300px); line-height: .85;
	color: rgba(230,36,42,.04);
	letter-spacing: -.04em; pointer-events: none; user-select: none; white-space: nowrap; z-index: 0;
}
.octg-arm-servicios .octg-container { position: relative; z-index: 1; }
.octg-arm-servicios__head { text-align: center; margin-bottom: 60px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.octg-arm-servicios__head h2 {
	font-family: "Saira Condensed", sans-serif; font-weight: 700; text-transform: uppercase;
	font-size: clamp(32px, 3.4vw, 52px); line-height: 1.1; color: #0C1015; margin: 0; max-width: 22ch;
}
.octg-arm-servicios__head p {
	font-family: "Roboto", sans-serif; font-size: 17px; line-height: 1.6;
	color: #5a636b; margin: 0; max-width: 56ch;
}
.octg-arm-servicios__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.octg-arm-serv {
	position: relative; padding: 36px 28px 32px; background: #fff;
	border: 1px solid rgba(12,16,21,.06); border-radius: 12px;
	transition: transform .4s var(--ease-premium), box-shadow .4s var(--ease-premium), border-color .4s var(--ease-premium);
}
.octg-arm-serv::before {
	content: ""; position: absolute; top: 0; left: 0; width: 0; height: 3px;
	background: #E6242A; transition: width .5s var(--ease-premium);
}
.octg-arm-serv:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -10px rgba(12,16,21,.14); border-color: transparent; }
.octg-arm-serv:hover::before { width: 100%; }
.octg-arm-serv__num {
	font-family: "Saira Condensed", sans-serif; font-weight: 800; font-size: 44px; line-height: 1;
	color: transparent; -webkit-text-stroke: 1.5px #E6242A; letter-spacing: -.02em;
	display: block; margin-bottom: 16px;
}
.octg-arm-serv h3 {
	font-family: "Saira Condensed", sans-serif; font-weight: 700; text-transform: uppercase;
	font-size: 22px; line-height: 1.15; color: #0C1015; margin: 0 0 10px; letter-spacing: .02em;
}
.octg-arm-serv p { font-family: "Roboto", sans-serif; font-size: 15px; line-height: 1.6; color: #5a636b; margin: 0; }
@media (max-width: 960px) { .octg-arm-servicios__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .octg-arm-servicios__grid { grid-template-columns: 1fr; } .octg-arm-servicios { padding: 60px 0; } }

/* ---- HERO compacto Armadera (más corto que el genérico) ---- */
/* Solo el hero compacto de Armadera recorta el parallax (va seguido de otra
   sección clara y el fondo desplazado no debe invadirla). El resto de heroes
   quedan en overflow:visible para no recortar bandas que se extienden (p. ej.
   los "valores" del home). */
/* Selector compuesto (0,2,0) para ganarle al CSS inline del snapshot
   (.octg-v2-hero{overflow:visible}) que va después en el documento. Sin esto el
   parallax del hero de Armadera se desborda y tapa la sección de servicios. */
.octg-v2-hero.octg-arm-hero-compact { min-height: 64vh; overflow: hidden; }
.octg-arm-hero-compact .octg-v2-hero__content { padding: 80px 0 60px; }

/* ---- CATÁLOGO simplificado con tarjetas de producto tipo card ---- */
.octg-arm-catalogo { padding: 80px 0 100px; background: #fff; position: relative; overflow: hidden; }
.octg-arm-catalogo::before {
	content: "MELAMINA"; position: absolute; top: 40px; right: -3vw;
	font-family: "Saira Condensed", sans-serif; font-weight: 800;
	font-size: clamp(120px, 15vw, 220px); line-height: .85;
	color: rgba(230,36,42,.04); letter-spacing: -.03em;
	pointer-events: none; user-select: none; white-space: nowrap; z-index: 0;
}
.octg-arm-catalogo .octg-container { position: relative; z-index: 1; }
.octg-arm-catalogo__head { text-align: center; margin-bottom: 44px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.octg-arm-catalogo__head h2 {
	font-family: "Saira Condensed", sans-serif; font-weight: 700; text-transform: uppercase;
	font-size: clamp(28px, 3vw, 44px); line-height: 1.1; color: #0C1015; margin: 0;
}
.octg-arm-catalogo__head p {
	font-family: "Roboto", sans-serif; font-size: 16px; line-height: 1.55;
	color: #5a636b; margin: 0; max-width: 56ch;
}
.octg-arm-catalogo__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.octg-arm-catalogo__empty {
	text-align: center; padding: 40px 24px; color: #5a636b;
	font-family: "Roboto", sans-serif; font-size: 17px;
}
.octg-arm-catalogo__empty a { color: #E6242A; font-weight: 700; }

/* Tarjeta de producto (línea de melamina) */
.octg-arm-prod {
	background: #fff; border: 1px solid rgba(12,16,21,.08); border-radius: 12px;
	overflow: hidden; display: flex; flex-direction: column;
	transition: transform .35s var(--ease-premium), box-shadow .35s var(--ease-premium), border-color .35s var(--ease-premium);
}
.octg-arm-prod:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -12px rgba(12,16,21,.15); border-color: transparent; }
.octg-arm-prod__media { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #FBF3EA; position: relative; }
.octg-arm-prod__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-premium); }
.octg-arm-prod:hover .octg-arm-prod__media img { transform: scale(1.05); }
.octg-arm-prod__noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #999; font-family: "Roboto", sans-serif; }
.octg-arm-prod__body { padding: 14px 16px 18px; }
.octg-arm-prod__title {
	font-family: "Saira Condensed", sans-serif; font-weight: 700; text-transform: uppercase;
	font-size: 17px; color: #0C1015; margin: 0 0 4px; letter-spacing: .02em; line-height: 1.15;
}
.octg-arm-prod__meta { font-family: "Roboto", sans-serif; font-size: 13px; color: #7a828b; margin: 0; }

/* ---- SERVICIOS simplificados (lista, sin cards ni big numbers) ---- */
.octg-arm-servicios-simple { padding: 80px 0 100px; background: #FBF3EA; }
.octg-arm-servicios-simple__list {
	list-style: none; padding: 0; margin: 40px 0 0;
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
	border-top: 1px solid rgba(12,16,21,.1);
	border-left: 1px solid rgba(12,16,21,.1);
}
.octg-arm-servicios-simple__list li {
	padding: 24px 28px;
	border-right: 1px solid rgba(12,16,21,.1);
	border-bottom: 1px solid rgba(12,16,21,.1);
	transition: background .3s var(--ease-premium);
}
.octg-arm-servicios-simple__list li:hover { background: rgba(230,36,42,.04); }
.octg-arm-servicios-simple__list li strong {
	display: block; font-family: "Saira Condensed", sans-serif; font-weight: 700;
	text-transform: uppercase; letter-spacing: .03em; font-size: 17px;
	color: #0C1015; margin-bottom: 4px;
}
.octg-arm-servicios-simple__list li span {
	font-family: "Roboto", sans-serif; font-size: 14px; line-height: 1.5; color: #5a636b;
}
@media (max-width: 720px) {
	.octg-arm-servicios-simple__list { grid-template-columns: 1fr; }
}

/* ---- CTA final ---- */
.octg-v2-cta-final {
	padding: 100px 24px; background-size: cover; background-position: center; color: #fff;
	position: relative; overflow: hidden;
}
.octg-v2-cta-final__inner {
	display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
	position: relative; z-index: 1;
}
.octg-v2-cta-final h2 {
	font-family: "Saira Condensed", sans-serif; font-weight: 700; text-transform: uppercase;
	font-size: clamp(28px, 2.8vw, 44px); line-height: 1.1;
	color: #fff !important; margin: 0 0 10px; max-width: 22ch;
}
.octg-v2-cta-final p {
	font-family: "Roboto", sans-serif; font-size: 16px;
	color: rgba(255,255,255,.85); margin: 0; max-width: 55ch;
}
.octg-v2-cta-final__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 960px) {
	.octg-v2-hero { min-height: 70vh; }
	.octg-v2-hero__content { padding: 100px 0 60px; }
	.octg-v2-cta-final__inner { flex-direction: column; text-align: center; align-items: center; }
	.octg-v2-cta-final__ctas { width: 100%; justify-content: center; }
}

/* Hero de las páginas de unidad (Promotora / Constructora) — como las secciones
   antiguas pero con protagonismo de hero. Un poco más corto que el del home. */
.octg-unit-hero{min-height:62vh}
.octg-unit-hero .octg-v2-hero__content{padding-top:72px;padding-bottom:56px}
.octg-unit-hero .octg-v2-hero__title{max-width:20ch}
@media (max-width:900px){.octg-unit-hero{min-height:auto}}
