/* ===================================================
   PARAGON DESARROLLOS — Stylesheet
   Paleta: #221e20 (negro) | #f9efe5 (beige) | #da291c (rojo)
   Tipografía: Futura Std
   =================================================== */

/* --- Fuentes locales --- */
@font-face {
  font-family: 'FuturaStd';
  src: url('../assets/fonts/FuturaStd-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'FuturaStd';
  src: url('../assets/fonts/FuturaStd-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'FuturaStd';
  src: url('../assets/fonts/FuturaStd-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'FuturaStd';
  src: url('../assets/fonts/FuturaStd-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'FuturaStd';
  src: url('../assets/fonts/FuturaStd-Heavy.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --negro: #221e20;
  --beige: #f9efe5;
  --rojo: #da291c;
  --gris-claro: #f2f2f2;
  --gris-medio: #888;
  --blanco: #ffffff;
  --font: 'FuturaStd', 'Futura', 'Century Gothic', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--negro);
  background: var(--blanco);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===================================================
   TOPBAR
   =================================================== */
.topbar {
  background: var(--negro);
  color: var(--blanco);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 8px 0;
}

.topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar__contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--blanco);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.topbar__contact a:hover {
  opacity: 1;
}

.topbar__contact svg {
  flex-shrink: 0;
}

.topbar__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__social a {
  color: var(--blanco);
  opacity: 0.75;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}

.topbar__social a:hover {
  opacity: 1;
}

/* ===================================================
   HEADER / NAVBAR
   =================================================== */
.header {
  background: var(--negro);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header__logo img {
  height: 36px;
  width: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__item a {
  color: var(--blanco);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 0;
  position: relative;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav__item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rojo);
  transition: width 0.3s ease;
}

.nav__item a:hover,
.nav__item a.active,
.nav__item--active a {
  opacity: 1;
}

.nav__item a:hover::after,
.nav__item a.active::after,
.nav__item--active a::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blanco);
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.nav--mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--negro);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
}

.nav--mobile.open {
  display: block;
}

.nav--mobile .nav__list {
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
}

.nav--mobile .nav__item {
  width: 100%;
}

.nav--mobile .nav__item a {
  display: block;
  padding: 14px 24px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav--mobile .nav__item a::after {
  display: none;
}

/* ===================================================
   SUBMENÚ DESKTOP (multinivel)
   =================================================== */
.nav__item--has-sub {
  position: relative;
}

.nav__link--has-sub {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav__chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav__chevron--right {
  margin-left: auto;
}

/* Nivel 1 */
.nav__sub {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 170px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(34,30,32,0.14);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  /* delay al cerrar para dar tiempo al mouse */
  transition: opacity 0.2s ease 0.1s, transform 0.2s ease 0.1s;
  z-index: 200;
}

/* Puente invisible que cubre el gap entre link y menú */
.nav__sub::before {
  content: '';
  position: absolute;
  top: -19px;
  left: 0;
  right: 0;
  height: 19px;
}

.nav__item--has-sub:hover > .nav__sub,
.nav__item--has-sub:focus-within > .nav__sub {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
  /* sin delay al abrir */
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav__item--has-sub:hover > a .nav__chevron {
  transform: rotate(180deg);
}

.nav__sub li a,
.nav__sub-item > a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 18px;
  color: var(--negro);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  gap: 2px;
}

.nav__sub-proyecto {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'Futura Std', sans-serif;
  font-weight: 600;
  color: var(--negro);
  transition: color 0.15s;
}

.nav__sub-lugar {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  font-family: 'Futura Std', sans-serif;
  font-weight: 400;
  color: #888;
  text-transform: none;
  transition: color 0.15s;
}

.nav__sub li a:hover,
.nav__sub-item > a:hover {
  background: var(--beige);
}

.nav__sub li a:hover .nav__sub-proyecto { color: var(--rojo); }
.nav__sub li a:hover .nav__sub-lugar    { color: #b06050; }

/* Nivel 2 */
.nav__sub-item--has-sub {
  position: relative;
}

.nav__sub--lvl2 {
  position: absolute;
  top: 0;
  left: 100%;
  transform: translateX(6px);
  min-width: 170px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(34,30,32,0.14);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease 0.08s, transform 0.18s ease 0.08s;
  z-index: 201;
}

/* Puente lateral para el gap del nivel 2 */
.nav__sub--lvl2::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 0;
  bottom: 0;
  width: 12px;
}

.nav__sub-item--has-sub:hover > .nav__sub--lvl2,
.nav__sub-item--has-sub:focus-within > .nav__sub--lvl2 {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.nav__sub-item--has-sub:hover > a .nav__chevron--right {
  transform: translateX(3px);
}

/* ===================================================
   SUBMENÚ MOBILE (acordeón)
   =================================================== */
.nav__mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 0;
  color: var(--blanco);
  font-size: 1rem;
  font-family: 'Futura Std', sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav__mobile-toggle--lvl2 {
  font-size: 0.85rem;
  padding: 9px 0 9px 14px;
  color: rgba(255,255,255,0.75);
}

.nav__sub--mobile {
  position: static;
  transform: none;
  box-shadow: none;
  background: none;
  border-radius: 0;
  padding: 0 0 0 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
  transition: max-height 0.3s ease, padding 0.3s ease;
  list-style: none;
}

.nav__sub--mobile.is-open {
  max-height: 300px;
  pointer-events: all;
  padding: 4px 0 4px 14px;
}

.nav__sub--mobile li a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  text-decoration: none;
}

.nav__sub--mobile li a:hover .nav__sub-proyecto { color: #fff; }
.nav__sub--mobile li a:hover .nav__sub-lugar    { color: rgba(255,255,255,0.6); }

.nav__sub--mobile .nav__sub-proyecto {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Futura Std', sans-serif;
  font-weight: 600;
}

.nav__sub--mobile .nav__sub-lugar {
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  font-family: 'Futura Std', sans-serif;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
}

.nav__mobile-toggle[aria-expanded="true"] .nav__chevron {
  transform: rotate(180deg);
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* Foto aérea con overlay rojo */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/2-1.jpg');
  background-size: cover;
  background-position: center 30%;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(218,41,28,0.82) 0%,
    rgba(120,10,10,0.78) 45%,
    rgba(20,5,5,0.72) 100%
  );
}

/* Patrón rombos — igual a la imagen */
.hero__pattern {
  position: absolute;
  inset: -20px;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.6) 0px,
      rgba(255,255,255,0.6) 1px,
      transparent 1px,
      transparent 48px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,0.6) 0px,
      rgba(255,255,255,0.6) 1px,
      transparent 1px,
      transparent 48px
    );
  background-size: 48px 48px;
  animation: patternDrift 25s linear infinite;
}

@keyframes patternDrift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(48px, 48px); }
}

/* Viñeta sutil en los bordes */
.hero__vignette {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 50%, transparent 40%, rgba(14,2,2,0.45) 100%),
    linear-gradient(to top, rgba(10,2,2,0.65) 0%, transparent 45%);
  pointer-events: none;
}

/* Marca de agua isotipo grande */
.hero__watermark {
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 40vw, 560px);
  height: auto;
  opacity: 0.15;
  pointer-events: none;
  filter: brightness(0) invert(1);
  animation: watermarkFloat 9s ease-in-out infinite;
  z-index: 1;
}

@keyframes watermarkFloat {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50%       { transform: translateY(-52%) scale(1.025); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px 72px;
  width: 100%;
}

.hero__title {
  font-size: 40px;
  font-weight: 800;
  color: var(--blanco);
  line-height: 1.2;
  max-width: 900px;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(40px);
  animation: heroTitleIn 0.85s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
}

.hero__subtitle {
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  line-height: 1.7;
  margin-top: 18px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroTitleIn 0.85s 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  background: var(--rojo);
  color: var(--blanco);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 18px 36px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, transform 0.25s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(20px);
  animation: heroCtaIn 0.85s 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

/* Shimmer efecto al hover */
.hero__cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transition: left 0.45s ease;
}

.hero__cta:hover::before {
  left: 160%;
}

.hero__cta:hover {
  background: #c0200e;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(218,41,28,0.45);
}

.hero__cta svg {
  transition: transform 0.3s ease;
}

.hero__cta:hover svg {
  transform: translateX(5px);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: heroCtaIn 1s 1.2s ease forwards;
  z-index: 3;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.7; }
  50%       { transform: scaleY(1.4); opacity: 1; }
}

/* ===================================================
   SECCIÓN GENÉRICA
   =================================================== */
.section {
  padding: 80px 24px;
}

.section--beige {
  background: var(--beige);
}

.section--gris {
  background: var(--gris-claro);
}

.section--negro {
  background: var(--negro);
  color: var(--blanco);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section__title {
  text-align: center;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section__subtitle {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gris-medio);
  max-width: 540px;
  margin: 0 auto 48px;
}

/* ===================================================
   PROYECTOS CARDS
   =================================================== */
.proyectos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0 auto;
}

.proyecto-card {
  position: relative;
  overflow: hidden;
}

.proyecto-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

/* Overlay degradado base */
.proyecto-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,2,2,0.88) 0%,
    rgba(10,2,2,0.35) 45%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 44px;
}

/* Número decorativo */
.proyecto-card__num {
  position: absolute;
  top: 36px;
  right: 40px;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.07);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
}

/* Categoría pequeña arriba del título */
.proyecto-card__eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 10px;
}

/* Línea roja decorativa */
.proyecto-card__line {
  width: 48px;
  height: 2px;
  background: var(--rojo);
  margin-bottom: 16px;
}

.proyecto-card__title {
  color: var(--blanco);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: left;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.btn-conocer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--blanco);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn-conocer::after {
  content: '→';
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.proyecto-card:hover .btn-conocer {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(255,255,255,0.7);
}

.btn-conocer:hover::after {
  transform: translateX(4px);
}

.btn-conocer:hover {
  background: #b8200f;
  transform: translateY(-2px);
}

/* ===================================================
   SLIDER / CAROUSEL
   =================================================== */
.slider {
  position: relative;
  overflow: hidden;
  background: var(--negro);
}

.slider__track {
  display: flex;
  transition: transform 0.5s ease;
}

.slider__slide {
  min-width: 100%;
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider__slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(70%) brightness(0.42);
  transition: filter 0.6s ease;
}

.slider__slide.active .slider__slide-bg {
  filter: grayscale(50%) brightness(0.45);
}

.slider__slide-bg--bw {
  filter: grayscale(100%) brightness(0.42) !important;
}

.slider__slide.active .slider__slide-bg--bw {
  filter: grayscale(100%) brightness(0.45) !important;
}

.slider__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 700px;
}

.slider__isotipo {
  position: absolute;
  left: -120px;
  top: -30px;
  bottom: auto;
  transform: none;
  width: clamp(200px, 28vw, 380px);
  height: auto;
  opacity: 0.08;
  pointer-events: none;
  filter: brightness(0) invert(1);
  z-index: 1;
}

.slider__title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--blanco);
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.slider__text {
  margin-top: 14px;
  font-size: 1.25rem;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}

/* Flechas */
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(34,30,32,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--blanco);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.slider__arrow:hover {
  background: var(--rojo);
}

.slider__arrow--prev { left: 20px; }
.slider__arrow--next { right: 20px; }

/* Dots */
.slider__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}

.slider__dot.active {
  background: var(--blanco);
  transform: scale(1.2);
}

/* Slides de proyecto (clickeables) */
.slider__slide--proyecto {
  cursor: pointer;
}

/* Slide project logo (above title) */
.slider__logo {
  display: block;
  width: 140px;
  height: auto;
  margin: 0 auto 12px auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}

@media (max-width: 1024px) {
  .slider__logo { width: 120px; }
}

@media (max-width: 768px) {
  .slider__logo { width: 96px; margin-bottom: 8px; }
}

/* Villas de San Pedro logo: 10px larger than default */
.slider__slide--proyecto[data-proyecto="villas-san-pedro-residencial"] .slider__logo {
  width: 150px;
}

@media (max-width: 1024px) {
  .slider__slide--proyecto[data-proyecto="villas-san-pedro-residencial"] .slider__logo {
    width: 128px;
  }
}

@media (max-width: 768px) {
  .slider__slide--proyecto[data-proyecto="villas-san-pedro-residencial"] .slider__logo {
    width: 106px;
  }
}

/* Punto Novel y Punto San Pedro logos: 20px mas grandes que el default */
.slider__slide--proyecto[data-proyecto="punto-novel"] .slider__logo,
.slider__slide--proyecto[data-proyecto="punto-san-pedro"] .slider__logo {
  width: 160px;
}

@media (max-width: 1024px) {
  .slider__slide--proyecto[data-proyecto="punto-novel"] .slider__logo,
  .slider__slide--proyecto[data-proyecto="punto-san-pedro"] .slider__logo {
    width: 136px;
  }
}

@media (max-width: 768px) {
  .slider__slide--proyecto[data-proyecto="punto-novel"] .slider__logo,
  .slider__slide--proyecto[data-proyecto="punto-san-pedro"] .slider__logo {
    width: 116px;
  }
}
.slider__eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.slider__slide--proyecto .slider__slide-bg {
  transition: filter 0.6s ease, transform 0.8s ease;
}
.slider__slide--proyecto:hover .slider__slide-bg {
  filter: grayscale(20%) brightness(0.5);
  transform: scale(1.04);
}
.slider__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 12px 26px;
  background: var(--rojo);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: gap 0.2s ease, background 0.2s ease;
}
.slider__slide--proyecto:hover .slider__cta {
  gap: 14px;
  background: #b81f15;
}

/* ===================================================
   LIGHTBOX — GALERÍA DE AVANCES
   =================================================== */
.avances-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.avances-modal.is-open {
  display: flex;
}
.avances-modal__overlay {
  position: absolute;
  inset: 0;
  background: #0f0d0e;
  backdrop-filter: blur(4px);
}
.avances-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.avances-modal__close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: background 0.2s, transform 0.2s;
}
.avances-modal__close:hover {
  background: var(--rojo);
  transform: rotate(90deg);
}
.avances-modal__header {
  text-align: center;
  margin-bottom: 18px;
}
.avances-modal__title {
  color: #fff;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  margin: 0;
}
.avances-modal__sub {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 6px 0 0;
}
.avances-modal__stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.avances-modal__img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 4px;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 1;
  transition: opacity 0.25s ease;
}
.avances-modal__img.is-loading {
  opacity: 0;
}
.avances-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.avances-modal__nav:hover { background: var(--rojo); }
.avances-modal__nav--prev { left: -8px; }
.avances-modal__nav--next { right: -8px; }
.avances-modal__empty {
  text-align: center;
  color: rgba(255,255,255,0.8);
  padding: 60px 24px;
}
.avances-modal__empty p {
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.avances-modal__empty span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rojo);
}
.avances-modal__counter {
  margin-top: 16px;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
@media (max-width: 700px) {
  .avances-modal__nav--prev { left: 4px; }
  .avances-modal__nav--next { right: 4px; }
  .avances-modal__nav { width: 40px; height: 40px; }
  .avances-modal__close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
  }
}

/* ===================================================
   LOGOS / MARCAS — Strip horizontal (index.html)
   =================================================== */
.marcas-strip {
  padding: 56px 24px;
  background: var(--blanco);
  border-top: 1px solid rgba(0,0,0,0.08);
}

.marcas-strip__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px 48px;
}

.marca-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.65;
  transition: opacity 0.25s, transform 0.2s;
  text-align: center;
}

.marca-item:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.marca-item__icon {
  width: 52px;
  height: 52px;
  border: 2px solid var(--negro);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--negro);
  background: transparent;
}

.marca-item__nombre {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--negro);
  max-width: 90px;
  line-height: 1.3;
}

.marca-item__sub {
  font-size: 0.55rem;
  color: var(--gris-medio);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===================================================
   LOGOS / MARCAS — Editorial (index_v2.html)
   =================================================== */
.marcas {
  padding: 120px 24px;
  background: #fff;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.marcas__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

/* Columna izquierda */
.marcas__left {
  position: sticky;
  top: 120px;
}

.marcas__big-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  color: var(--negro);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 12px 0 28px;
}

.marcas__divider {
  width: 40px;
  height: 3px;
  background: var(--rojo);
  margin-bottom: 24px;
}

.marcas__desc {
  font-size: 0.9rem;
  color: rgba(34,30,32,0.45);
  line-height: 1.8;
  max-width: 280px;
  margin-bottom: 40px;
}

.marcas__isotipo {
  width: clamp(80px, 10vw, 110px);
  height: auto;
  opacity: 0.12;
  margin-top: 8px;
  filter: none;
}

.marcas__count {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(34,30,32,0.3);
}
.marcas__count span {
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(34,30,32,0.06);
  letter-spacing: -0.04em;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

/* Columna derecha — filas */
.marcas__right {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}

.marca-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px 12px;
  border-bottom: 1px solid rgba(34,30,32,0.08);
  transition: background 0.2s, padding-left 0.2s;
  cursor: default;
}

.marca-row:first-child {
  border-top: 1px solid rgba(34,30,32,0.08);
}

.marca-row:hover {
  background: #f9efe5;
  padding-left: 20px;
  border-radius: 4px;
}

.marca-row__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rojo);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.marca-row:hover .marca-row__dot {
  transform: scale(1.4);
}

.marca-row__info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.marca-row__logo {
  height: 73px;
  width: auto;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: opacity 0.2s;
}

.marca-row:hover .marca-row__logo {
  opacity: 1;
}

.marca-row__initials {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(34,30,32,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(34,30,32,0.5);
  flex-shrink: 0;
}

.marca-row__nombre {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--negro);
}

.marca-row__lugar {
  font-size: 0.6rem;
  color: rgba(34,30,32,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ===================================================
   SECCIÓN NOSOTROS
   =================================================== */
.nosotros__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.nosotros__img-wrap {
  position: relative;
}

.nosotros__img-wrap::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--rojo);
  z-index: 0;
}

.nosotros__img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: linear-gradient(135deg, #888 0%, #555 100%);
}

.nosotros__content {
  /* flex column content */
}

.nosotros__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 12px;
}

.nosotros__title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.nosotros__text {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.8;
  color: #444;
  margin-bottom: 16px;
}

.nosotros__valores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.valor-tag {
  background: var(--negro);
  color: var(--blanco);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
}

/* ===================================================
   CONTACTO
   =================================================== */
.contacto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contacto__info-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.contacto__info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contacto__info-icon {
  width: 36px;
  height: 36px;
  background: var(--rojo);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contacto__info-icon svg {
  color: var(--blanco);
}

.contacto__info-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris-medio);
  margin-bottom: 3px;
}

.contacto__info-value {
  font-size: 0.9rem;
  font-weight: 500;
}

.contacto__info-value a {
  color: var(--negro);
  transition: color 0.2s;
}

.contacto__info-value a:hover {
  color: var(--rojo);
}

/* Honeypot — invisible para humanos, visible para bots */
.form-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Formulario */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--negro);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 12px 16px;
  border: 1.5px solid #ccc;
  background: var(--blanco);
  color: var(--negro);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--rojo);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-submit {
  display: inline-block;
  background: var(--rojo);
  color: var(--blanco);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 36px;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  width: 100%;
  margin-top: 6px;
}

.btn-submit:hover {
  background: #b8200f;
  transform: translateY(-2px);
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--negro);
  color: var(--blanco);
  padding: 56px 24px 24px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__logo img {
  height: 32px;
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s, background 0.2s;
}

.footer__social a:hover {
  opacity: 1;
  background: var(--rojo);
  border-color: var(--rojo);
}

.footer__col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.5);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul li a {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer__col ul li a:hover {
  color: var(--blanco);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.footer__contact-item svg {
  flex-shrink: 0;
  opacity: 0.6;
  margin-top: 2px;
}

.footer__contact-item span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.footer__contact-item a {
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer__contact-item a:hover {
  color: var(--blanco);
}

.footer__bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}

.footer__dev {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

.footer__dev a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__dev a:hover {
  color: #fff;
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}

.footer__legal a:hover {
  color: rgba(255,255,255,0.7);
}

/* ===================================================
   DIVISOR ROJO
   =================================================== */
.divider-rojo {
  width: 48px;
  height: 3px;
  background: var(--rojo);
  margin: 12px auto 0;
}

.divider-rojo--left {
  margin-left: 0;
}

/* ===================================================
   UTILIDADES
   =================================================== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }

/* ===================================================
   QUIÉNES SOMOS — componentes
   =================================================== */
.qs__divider {
  width: 48px;
  height: 3px;
  background: var(--rojo);
  margin-bottom: 28px;
  transform-origin: left center;
}

/* En estado visible la línea ya está al 100% — la animación la hace crecer */
.qs__divider.visible {
  animation: dividerGrow 0.6s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes dividerGrow {
  from { width: 0; opacity: 0; }
  to   { width: 48px; opacity: 1; }
}

/* Filas VMF */
.qs__row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid rgba(34,30,32,0.08);
  border-radius: 4px;
}

.qs__row:first-child { border-top: 1px solid rgba(34,30,32,0.08); }

.qs__label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rojo);
  white-space: nowrap;
  padding-top: 4px;
  min-width: 72px;
}

.qs__text {
  font-size: 0.93rem;
  color: var(--negro);
  line-height: 1.75;
  margin: 0;
  border-left: 1px solid rgba(34,30,32,0.12);
  padding-left: 20px;
}

/* Stats */
.qs__stat {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.qs__stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 10px;
}

/* ===================================================
   ANIMACIONES — FADE IN (Intersection Observer)
   =================================================== */

/* Base — todos empiezan invisibles */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

/* Delays escalonados */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Activo */
.fade-up.visible,
.fade-left.visible,
.fade-right.visible,
.fade-scale.visible,
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ===================================================
   ANIMACIONES — SECCIÓN HEADER (navbar scroll)
   =================================================== */
.header.scrolled {
  background: rgba(34, 30, 32, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* ===================================================
   ANIMACIONES — TARJETAS PROYECTOS
   =================================================== */

/* ===================================================
   ANIMACIONES — BOTONES
   =================================================== */
.btn-conocer {
  position: relative;
  overflow: hidden;
}
.btn-conocer::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}
.btn-conocer:hover::before {
  width: 220px; height: 220px;
}

/* ===================================================
   ANIMACIONES — SECCIÓN NOSOTROS / IMAGEN
   =================================================== */
.nosotros__img-wrap {
  transition: transform 0.5s ease;
}
.nosotros__img-wrap:hover {
  transform: scale(1.02);
}
.nosotros__img-wrap:hover::before {
  transform: translate(-10px, -10px);
  transition: transform 0.4s ease;
}

.valor-tag {
  transition: background 0.25s, transform 0.25s, color 0.25s;
  cursor: default;
}
.valor-tag:hover {
  background: var(--rojo);
  transform: translateY(-3px);
}

/* ===================================================
   ANIMACIONES — MARCAS
   =================================================== */
.marca-item__icon {
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.marca-item:hover .marca-item__icon {
  background: var(--negro);
  color: var(--blanco);
  border-color: var(--negro);
  transform: rotate(360deg) scale(1.12);
}

/* ===================================================
   ANIMACIONES — SLIDER MEJORADO
   =================================================== */
.slider__slide {
  transition: opacity 0.1s;
}

.slider__content {
  animation: none;
}
.slider__slide.active .slider__title {
  animation: slideTextIn 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.slider__slide.active .slider__text {
  animation: slideTextIn 0.7s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.slider__slide.active .slider__isotipo {
  animation: isotipoFadeIn 1.2s 0.1s ease both;
}

@keyframes slideTextIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes isotipoFadeIn {
  from { opacity: 0; transform: translate(-20px, -20px) scale(0.92); }
  to   { opacity: 0.08; transform: translate(0, 0) scale(1); }
}

/* ===================================================
   ANIMACIONES — SECCIÓN FINANCIAMIENTO (cards hover)
   =================================================== */
.fin-card {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s;
}
.fin-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 100%;
  background: linear-gradient(90deg, rgba(218,41,28,0.08), transparent);
  transition: width 0.45s ease;
}
.fin-card:hover {
  border-color: var(--rojo);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.fin-card:hover::before { width: 100%; }

.fin-card__bar {
  width: 40px; height: 3px;
  background: var(--rojo);
  margin-bottom: 20px;
  transition: width 0.4s ease;
}
.fin-card:hover .fin-card__bar { width: 70px; }

/* ===================================================
   ANIMACIONES — FORMULARIO
   =================================================== */
.form-group input,
.form-group select,
.form-group textarea {
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--rojo);
  box-shadow: 0 0 0 3px rgba(218,41,28,0.12);
  transform: translateY(-1px);
}

.btn-submit {
  position: relative;
  overflow: hidden;
  transition: background 0.3s, transform 0.25s, box-shadow 0.3s;
}
.btn-submit::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.5s ease;
}
.btn-submit:hover::before { left: 160%; }
.btn-submit:hover {
  background: #b8200f;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(218,41,28,0.4);
}

/* ===================================================
   ANIMACIONES — FOOTER SOCIAL
   =================================================== */
.footer__social a {
  transition: opacity 0.2s, background 0.25s, border-color 0.25s, transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.footer__social a:hover {
  transform: translateY(-4px) scale(1.1);
}

/* ===================================================
   CURSOR HIGHLIGHT — Línea decorativa sección title
   =================================================== */
.section__title {
  position: relative;
}

/* ===================================================
   EFECTO PARALLAX LEVE en secciones imagen
   =================================================== */
.nosotros__img-wrap::before {
  transition: transform 0.4s ease;
}

/* ===================================================
   COUNTER / STATS (si se agregan) — placeholder
   =================================================== */
.stat-number {
  display: inline-block;
  transition: transform 0.3s;
}
.stat-number:hover { transform: scale(1.05); }

/* ===================================================
   RESPONSIVE — TABLET
   =================================================== */
@media (max-width: 900px) {
  /* nav: show hamburger on tablet too */
  .nav--desktop { display: none; }
  .hamburger { display: flex; }

  /* hero */
  .hero__title { font-size: clamp(2rem, 5vw, 3rem); }

  /* footer */
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  /* nosotros */
  .nosotros__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nosotros__img-wrap { max-width: 500px; }

  /* contacto */
  .contacto__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* proyectos: 2 cols on tablet */
  .proyectos__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 100%;
  }

  /* slider */
  .slider__slide { height: 380px; }

  /* marcas: stack cols */
  .marcas__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .marcas__left {
    position: static;
    text-align: center;
  }
  .marcas__divider { margin: 0 auto 24px; }
  .marcas__desc { max-width: 100%; }
  .marcas__isotipo { display: none; }

  /* al-showcase */
  .al-showcase__inner { flex-direction: column; }
}

/* ===================================================
   RESPONSIVE — MOBILE
   =================================================== */
@media (max-width: 640px) {
  .topbar { display: none; }

  /* hero */
  .hero {
    min-height: 75svh;
    align-items: center;
  }
  .hero__content {
    padding: 100px 20px 52px;
  }
  .hero__title { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .hero__subtitle { font-size: 0.82rem; margin-top: 12px; }
  .hero__cta { margin-top: 24px; }

  /* proyectos */
  .proyectos__grid {
    grid-template-columns: 1fr !important;
    max-width: 420px;
    margin: 0 auto;
  }

  /* slider */
  .slider__slide { height: 340px; }
  .slider__arrow { display: none; }
  .slider__content { padding: 0 20px; max-width: 100%; }
  .slider__text { margin-top: 8px; font-size: 0.95rem; }
  .slider__cta { margin-top: 14px; padding: 10px 20px; font-size: 0.66rem; }
  .slider__dots { bottom: 12px; }

  /* marcas */
  .marcas__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .marcas__left { position: static; text-align: center; }
  .marcas__divider { margin: 0 auto 20px; }
  .marcas__desc { max-width: 100%; }
  .marcas__isotipo { display: none; }
  .marca-row {
    grid-template-columns: 28px 1fr;
    gap: 12px;
    padding: 18px 8px;
  }
  .marca-row__lugar { display: none; }
  .marca-row__logo { height: 61px; }

  /* section headings */
  .section__title,
  .section h2 { font-size: clamp(1.5rem, 6vw, 2rem) !important; }

  /* footer */
  .footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding-bottom: 80px;
  }

  /* form */
  .form-row { grid-template-columns: 1fr; }

  /* nosotros */
  .nosotros__grid { gap: 24px; }
  .nosotros__img-wrap { max-width: 100%; }

  /* contacto */
  .contacto__grid { gap: 24px; }

  /* al-showcase */
  .al-showcase__inner { flex-direction: column; }
  .al-showcase__frame { height: 220px; }
}


/* ===================================================
   TELEPORT TRANSITION — Mythology Creatives
   =================================================== */
#ovni-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  background: transparent;
  overflow: hidden;
}

#ovni-overlay.active {
  pointer-events: all;
}

/* Línea de escaneo */
#ovni-scan {
  position: absolute;
  top: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, #aef, #fff, #aef, transparent);
  box-shadow: 0 0 18px 6px rgba(150,230,255,0.9), 0 0 40px 12px rgba(100,200,255,0.5);
  opacity: 0;
}

/* Cono principal */
#ovni-burst {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 0vh;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    rgba(200,240,255,0.98) 15%,
    rgba(130,200,255,0.85) 45%,
    rgba(80,160,255,0.45) 75%,
    rgba(40,100,255,0.1) 100%
  );
  filter: blur(4px);
  opacity: 0;
}

/* Aberración cromática — canal rojo */
#ovni-chroma-r {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(calc(-50% + 8px));
  width: 4px;
  height: 0vh;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: linear-gradient(to bottom, rgba(255,80,80,0.4) 0%, transparent 60%);
  filter: blur(8px);
  opacity: 0;
  mix-blend-mode: screen;
}

/* Aberración cromática — canal azul */
#ovni-chroma-b {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(calc(-50% - 8px));
  width: 4px;
  height: 0vh;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: linear-gradient(to bottom, rgba(80,80,255,0.4) 0%, transparent 60%);
  filter: blur(8px);
  opacity: 0;
  mix-blend-mode: screen;
}

/* Viñeta */
#ovni-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, transparent 30%, rgba(0,0,0,0.85) 100%);
  opacity: 0;
}

/* Canvas partículas */
#ovni-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

@keyframes ovniScan {
  0%   { top: -4px;   opacity: 0; }
  5%   { opacity: 1; }
  100% { top: 100vh;  opacity: 0; }
}

@keyframes ovniBeam {
  0%   { width: 4px;  height: 0vh;   opacity: 0; filter: blur(10px); }
  8%   { width: 4px;  height: 8vh;   opacity: 1; filter: blur(6px); }
  50%  { width: 52vw; height: 100vh; opacity: 1; filter: blur(3px); }
  78%  { width: 85vw; height: 100vh; opacity: 0.9; filter: blur(1px); }
  100% { width: 85vw; height: 100vh; opacity: 0; filter: blur(0px); }
}

@keyframes ovniChroma {
  0%   { width: 4px;  height: 0vh;   opacity: 0; }
  8%   { opacity: 0.7; }
  50%  { width: 56vw; height: 100vh; opacity: 0.5; }
  80%  { width: 88vw; height: 100vh; opacity: 0; }
  100% { opacity: 0; }
}

@keyframes ovniVignette {
  0%   { opacity: 0; }
  20%  { opacity: 0.7; }
  70%  { opacity: 0.95; }
  100% { opacity: 0; }
}

@keyframes ovniParticles {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes ovniOverlay {
  0%   { background: transparent; }
  40%  { background: transparent; }
  62%  { background: rgba(120,200,255,0.06); }
  78%  { background: #000; }
  100% { background: #000; }
}

@keyframes pageGlitch {
  0%   { transform: none; filter: none; }
  20%  { transform: translate(-3px,0) skewX(-0.5deg); filter: hue-rotate(90deg) brightness(1.4); }
  40%  { transform: translate(3px,0)  skewX(0.5deg);  filter: hue-rotate(-90deg) brightness(0.7); }
  60%  { transform: translate(-2px,1px); filter: brightness(1.6) saturate(2); }
  80%  { transform: none; filter: none; }
  100% { transform: none; filter: none; }
}

/* ================================================
   FAB — Lengueta de acceso rápido
================================================= */

/* Contenedor raíz — posicionado en esquina inferior derecha */
.fab {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Lengueta (pill que se expande hacia arriba) ── */
.fab__tray {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--rojo);
  border-radius: 100px;
  padding: 0;
  /* Colapsada: alto 0, sin padding, oculta */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.42s cubic-bezier(.77,0,.175,1),
    opacity    0.28s ease,
    padding    0.42s cubic-bezier(.77,0,.175,1);
  margin-bottom: 10px;
  box-shadow: 0 6px 28px rgba(218,41,28,0.38);
  pointer-events: none;
}

/* Abierta */
.fab.is-open .fab__tray {
  max-height: 320px;
  opacity: 1;
  padding: 14px 8px;
  pointer-events: all;
}

/* ── Cada icono dentro de la lengueta ── */
.fab__link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  background: rgba(255,255,255,0.15);
  /* Aparece escalonado */
  opacity: 0;
  transform: scale(0.6);
  transition:
    background   0.2s,
    transform    0.25s cubic-bezier(.34,1.56,.64,1),
    opacity      0.2s ease;
}

.fab.is-open .fab__link {
  opacity: 1;
  transform: scale(1);
}

/* Stagger: el icono más arriba aparece último */
.fab.is-open .fab__link:nth-child(1) { transition-delay: 0.18s; }
.fab.is-open .fab__link:nth-child(2) { transition-delay: 0.13s; }
.fab.is-open .fab__link:nth-child(3) { transition-delay: 0.08s; }
.fab.is-open .fab__link:nth-child(4) { transition-delay: 0.04s; }
.fab.is-open .fab__link:nth-child(5) { transition-delay: 0.00s; }

.fab__link:hover {
  background: rgba(255,255,255,0.28);
  transform: scale(1.15) !important;
}

.fab__link svg { display: block; pointer-events: none; }

/* Separador horizontal entre iconos */
.fab__sep {
  width: 22px;
  height: 1px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
  margin: 2px 0;
  opacity: 0;
  transition: opacity 0.2s 0.1s;
}
.fab.is-open .fab__sep { opacity: 1; }

/* ── Botón principal ── */
.fab__main {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rojo);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(218,41,28,0.45);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s;
  flex-shrink: 0;
  outline: none;
  z-index: 1;
}

/* Ring de pulso */
.fab__main::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(218,41,28,0.5);
  animation: fabPulse 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes fabPulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  70%  { transform: scale(1.5); opacity: 0;   }
  100% { transform: scale(1.5); opacity: 0;   }
}

.fab__main img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
  transition: transform 0.38s cubic-bezier(.34,1.56,.64,1);
  user-select: none;
  pointer-events: none;
  display: block;
}

/* Girar cuando abierto */
.fab.is-open .fab__main {
  transform: rotate(135deg);
  box-shadow: 0 8px 28px rgba(218,41,28,0.55);
}
.fab.is-open .fab__main::before {
  animation: none;
  opacity: 0;
}

@media (max-width: 480px) {
  .fab { bottom: 20px; right: 18px; }
  .fab__main { width: 50px; height: 50px; }
  .fab__main img { width: 22px; height: 22px; }
  .fab__link { width: 34px; height: 34px; }
  .fab.is-open .fab__tray { padding: 10px 6px; gap: 2px; }
}

