/* ============================================================
   RUN PRODUCCIONES — Stylesheet Principal
   Paleta: #1a1a1a (dark) | #c0392b (red) | #fff (white)
   Fuentes: Montserrat + Open Sans
   ============================================================ */

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --dark:       #1a1a1a;
  --dark-2:     #222222;
  --dark-3:     #2d2d2d;
  --dark-4:     #383838;
  --red:        #c0392b;
  --red-hover:  #e74c3c;
  --red-dark:   #a93226;
  --white:      #ffffff;
  --off-white:  #f5f5f5;
  --gray:       #888888;
  --gray-light: #cccccc;
  --font-head:  'Montserrat', system-ui, sans-serif;
  --font-body:  'Open Sans', system-ui, sans-serif;
  --transition: all 0.3s cubic-bezier(.4,0,.2,1);
  --shadow:     0 8px 32px rgba(0,0,0,.4);
  --radius:     8px;
  --max-width:  1200px;
  --navbar-h:   80px;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ─── Typography ────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}

/* ─── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Sections ──────────────────────────────────────────────── */
.section { padding: 6rem 0; position: relative; }
.section--dark  { background: var(--dark); }
.section--dark-2{ background: var(--dark-2); }
.section--light { background: var(--off-white); }
.section--red   {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 60%, var(--red-hover) 100%);
}

/* ─── Utilities ─────────────────────────────────────────────── */
.text--red { color: var(--red); }
.text-muted { color: var(--gray); }

/* ─── Scroll animations (AOS-like via JS) ───────────────────── */
[data-aos] { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
[data-aos="fade-left"]  { transform: translateX(28px); }
[data-aos="fade-right"] { transform: translateX(-28px); }
[data-aos="zoom-in"]    { transform: scale(.92); }
[data-aos].aos-animate  { opacity: 1; transform: none; }

/* ─── Section labels ────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: .3rem .8rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.section-tag--dark { color: var(--red); border-color: var(--red); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.section-title--dark { color: var(--dark); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-cta { text-align: center; margin-top: 3rem; }

/* Flecha triangular decorativa */
.section-arrow {
  display: inline-block;
  width: 0; height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 30px solid var(--dark-3);
  margin-bottom: 1rem;
}
.section-arrow--red { border-left-color: var(--red); }

/* ─── BOTONES ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover { background: var(--red-hover); border-color: var(--red-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(192,57,43,.4); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn--white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.btn--white:hover { background: var(--off-white); transform: translateY(-2px); }
.btn--large { padding: 1rem 2.5rem; font-size: 1rem; }
.btn--sm    { padding: .4rem 1rem; font-size: .8rem; }
.btn--full  { width: 100%; justify-content: center; }

/* ─── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: rgba(26,26,26,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(18,18,18,.98);
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.navbar__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.navbar__logo { display: flex; align-items: center; flex-shrink: 0; }
.navbar__logo-img { height: 58px; width: auto; }
.navbar__menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.navbar__list {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.navbar__link {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .5rem .9rem;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
}
.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--red);
  transition: var(--transition);
}
.navbar__link:hover::after, .navbar__link.active::after { left: .9rem; right: .9rem; }
.navbar__link:hover { color: var(--red); }
.navbar__link.active { color: var(--red); }
.navbar__link--cta {
  background: var(--red);
  color: var(--white) !important;
  padding: .5rem 1.2rem;
  margin-left: .5rem;
}
.navbar__link--cta::after { display: none; }
.navbar__link--cta:hover { background: var(--red-hover); transform: translateY(-1px); }
.navbar__social { display: none; gap: 1rem; margin-top: 1.5rem; }
.navbar__social a { color: var(--gray-light); transition: var(--transition); }
.navbar__social a:hover { color: var(--red); }

/* Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1100;
}
.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}
.navbar__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar__toggle.open span:nth-child(2) { opacity: 0; }
.navbar__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Overlay móvil */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 900;
}
.nav-overlay.open { display: block; }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--navbar-h);
  background: var(--dark);
}

/* Canvas de partículas */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(192,57,43,.12) 0%, transparent 65%),
              linear-gradient(180deg, rgba(26,26,26,.15) 0%, rgba(26,26,26,.75) 100%);
  z-index: 1;
}

/* Iconos flotantes */
.hero__floats { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__float {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(192,57,43,.7);
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: float-anim 6s ease-in-out infinite;
  opacity: .55;
}
.hero__float span { color: rgba(255,255,255,.5); }
.hero__float--1 { top: 18%; left: 6%;  animation-delay: 0s;    animation-duration: 7s;  }
.hero__float--2 { top: 25%; right: 8%; animation-delay: 1.5s;  animation-duration: 8s;  }
.hero__float--3 { bottom: 28%; left: 4%; animation-delay: .8s;  animation-duration: 6.5s;}
.hero__float--4 { bottom: 22%; right: 6%;animation-delay: 2s;   animation-duration: 7.5s;}
.hero__float--5 { top: 55%; left: 10%; animation-delay: 3s;   animation-duration: 9s;  }

@keyframes float-anim {
  0%,100% { transform: translateY(0px) rotate(-2deg);   opacity: .45; }
  33%      { transform: translateY(-14px) rotate(1deg);  opacity: .7;  }
  66%      { transform: translateY(-6px) rotate(-1deg);  opacity: .5;  }
}

@media (max-width: 768px) { .hero__floats { display: none; } }

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 2rem;
}
.hero__arrow {
  display: inline-block;
  width: 0; height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid var(--red);
  margin-bottom: 1.5rem;
  animation: pulse-arrow 2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(192,57,43,.8));
}
@keyframes pulse-arrow {
  0%,100% { opacity: 1; filter: drop-shadow(0 0 8px rgba(192,57,43,.8)); }
  50%      { opacity: .6; filter: drop-shadow(0 0 20px rgba(192,57,43,1)); }
}
.hero__title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1rem;
  text-shadow: 0 2px 30px rgba(0,0,0,.7);
}
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--gray-light);
  max-width: 580px;
  margin: 0 auto 1.5rem;
  font-weight: 300;
  line-height: 1.6;
}

/* Badges de servicios */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .9rem;
  background: rgba(192,57,43,.18);
  border: 1px solid rgba(192,57,43,.45);
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  animation: badge-glow 3s ease-in-out infinite;
}
.hero__badge:nth-child(2) { animation-delay: .4s; }
.hero__badge:nth-child(3) { animation-delay: .8s; }
.hero__badge:nth-child(4) { animation-delay: 1.2s; }
.hero__badge:nth-child(5) { animation-delay: 1.6s; }

@keyframes badge-glow {
  0%,100% { border-color: rgba(192,57,43,.35); background: rgba(192,57,43,.12); }
  50%      { border-color: rgba(192,57,43,.8);  background: rgba(192,57,43,.28); }
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── TICKER / MARQUEE ───────────────────────────────────────── */
.ticker-wrap {
  background: var(--red);
  overflow: hidden;
  padding: .6rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(0,0,0,.3);
}
.ticker { display: flex; }
.ticker__inner {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
}
.ticker__inner span { padding: 0 1.5rem; }
.ticker__sep { color: rgba(255,255,255,.4) !important; padding: 0 .25rem !important; font-size: .9rem; }
.ticker-wrap:hover .ticker__inner { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--gray);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  animation: bounce-scroll 2s ease-in-out infinite;
}
.hero__scroll-arrow {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--red), transparent);
}
@keyframes bounce-scroll {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ─── PAGE HERO (páginas internas) ──────────────────────────── */
.page-hero {
  position: relative;
  padding: calc(var(--navbar-h) + 4rem) 0 5rem;
  background: var(--dark-2);
  overflow: hidden;
}
.page-hero__pattern {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 400'%3E%3Cg stroke='%23333' stroke-width='1' fill='none'%3E%3Cline x1='0' y1='400' x2='700' y2='0'/%3E%3Cline x1='700' y1='0' x2='1400' y2='300'/%3E%3Cline x1='0' y1='200' x2='1400' y2='50'/%3E%3Cline x1='1400' y1='400' x2='400' y2='0'/%3E%3C/g%3E%3C/svg%3E") no-repeat center/cover;
  opacity: .4;
}
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(26,26,26,.8) 30%, rgba(26,26,26,.4)); }
.page-hero__content { position: relative; z-index: 2; }
.page-hero__title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  margin-top: 1rem;
}
.page-hero__subtitle {
  font-size: 1.1rem;
  color: var(--gray-light);
  margin-top: 1rem;
  max-width: 500px;
}

/* ─── SECTION SPLIT (label + content) ───────────────────────── */
.section-split {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: center;
}

/* Variante nosotros: columna izq con label + logo */
.section-split--nosotros {
  grid-template-columns: 240px 1fr;
  align-items: start;
}
.section-split__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: sticky;
  top: 8rem;
}

.section-split__label {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: .9;
  color: rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  user-select: none;
}
.section--light .section-split__label { color: rgba(0,0,0,.07); }
.section-split__content {}

/* Logo en sección nosotros */
.nosotros-logo {
  width: 100%;
  display: flex;
  justify-content: center;
}
.nosotros-logo img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(192,57,43,.5));
  animation: logo-breathe 4s ease-in-out infinite;
}
@keyframes logo-breathe {
  0%,100% { filter: drop-shadow(0 0 16px rgba(192,57,43,.4)); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 32px rgba(192,57,43,.8)); transform: scale(1.03); }
}

/* Logo showcase (portafolio) */
.logo-showcase {
  position: relative;
  text-align: center;
  padding: 4rem 0 2rem;
  margin-top: 1rem;
}
.logo-showcase__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(192,57,43,.18) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow-pulse {
  0%,100% { opacity: .6; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 1;  transform: translate(-50%,-50%) scale(1.15); }
}
.logo-showcase__img {
  width: min(400px, 80vw);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 40px rgba(192,57,43,.6));
  animation: logo-float 5s ease-in-out infinite;
}
@keyframes logo-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.logo-showcase__tagline {
  margin-top: 1.5rem;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray);
  position: relative;
  z-index: 1;
}

/* ─── STATS ──────────────────────────────────────────────────── */
.stats-row {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat__number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.stat__suffix { font-size: 2rem; color: var(--red); vertical-align: super; }
.stat__label { font-size: .85rem; color: var(--gray); text-transform: uppercase; letter-spacing: .1em; margin-top: .25rem; }

/* ─── SERVICES GRID ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,.06);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.1); }
.service-card__icon {
  width: 72px; height: 72px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
  transition: var(--transition);
}
.service-card:hover .service-card__icon { transform: scale(1.1); }
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .75rem;
  font-family: var(--font-head);
}
.service-card p { color: #555; font-size: .95rem; line-height: 1.65; }

/* Servicios big (página servicios) */
.services-big-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.service-big-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid rgba(0,0,0,.07);
  transition: var(--transition);
  position: relative;
}
.service-big-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-big-card__number {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(192,57,43,.08);
  line-height: 1;
}
.service-big-card__icon {
  width: 80px; height: 80px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.service-big-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: .75rem; }
.service-big-card__text { color: #555; font-size: .95rem; margin-bottom: 1rem; }
.service-list { padding-left: 0; }
.service-list li {
  font-size: .9rem;
  color: #666;
  padding: .3rem 0;
  padding-left: 1.5rem;
  position: relative;
}
.service-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--red);
}

/* Checklist */
.checklist { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.checklist__item {
  display: flex;
  gap: .75rem;
  font-size: .95rem;
  color: var(--gray-light);
}
.checklist__item span { color: var(--red); font-weight: 700; flex-shrink: 0; }

/* ─── PORTFOLIO CATEGORIES ───────────────────────────────────── */
.portfolio-cats {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 2rem;
}
.portfolio-cat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--dark-3);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid transparent;
}
.portfolio-cat:hover {
  background: var(--dark-4);
  border-color: var(--red);
  color: var(--white);
  padding-left: 2rem;
}
.portfolio-cat__arrow {
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--red);
  flex-shrink: 0;
  transition: var(--transition);
}
.portfolio-cat:hover .portfolio-cat__arrow { transform: scale(1.2); }

/* Portfolio page header */
.portfolio-cat-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.portfolio-cat-title { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
.portfolio-cat-desc { color: var(--gray-light); max-width: 700px; margin-bottom: 2rem; font-size: .95rem; }
.portfolio-section { padding-bottom: 4rem; }
.portfolio-section + .portfolio-section { border-top: 1px solid rgba(255,255,255,.05); }

/* Filtros portafolio */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 2rem 0;
}
.portfolio-filter {
  padding: .5rem 1.5rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.2);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gray-light);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}
.portfolio-filter.active,
.portfolio-filter:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ─── GALLERY GRID ───────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-grid__item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.gallery-grid__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-grid__item:hover img { transform: scale(1.07); }
.gallery-grid__overlay {
  position: absolute;
  inset: 0;
  background: rgba(192,57,43,.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  opacity: 0;
  transition: var(--transition);
  color: var(--white);
  text-align: center;
  padding: 1rem;
}
.gallery-grid__item:hover .gallery-grid__overlay { opacity: 1; }
.gallery-grid__overlay p { font-size: .9rem; font-weight: 600; }

/* Gallery preview (home) */
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: 2rem;
}
.gallery-preview__item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.gallery-preview__item img { width:100%; height:100%; object-fit:cover; transition: transform .4s; }
.gallery-preview__item:hover img { transform: scale(1.08); }
.gallery-preview__overlay {
  position: absolute;
  inset: 0;
  background: rgba(192,57,43,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-preview__item:hover .gallery-preview__overlay { opacity: 1; }

/* ─── LIGHTBOX ───────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.95);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox__content { max-width: 90vw; max-height: 80vh; position: relative; }
.lightbox__content img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__caption { color: var(--gray-light); text-align: center; margin-top: 1rem; font-size: .9rem; }
.lightbox__close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.lightbox__close:hover { background: var(--red); }
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  width: 50px; height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition);
  line-height: 1;
}
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
.lightbox__prev:hover,
.lightbox__next:hover { background: var(--red); }

/* ─── EVENTS ─────────────────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.event-card {
  background: var(--dark-3);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,.05);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--red); }
.event-card__img { height: 180px; overflow: hidden; }
.event-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.event-card:hover .event-card__img img { transform: scale(1.05); }
.event-card__body { padding: 1.5rem; }
.event-card__date { display: flex; align-items: baseline; gap: .3rem; margin-bottom: .75rem; }
.event-card__day { font-size: 2rem; font-weight: 900; font-family: var(--font-head); color: var(--red); line-height: 1; }
.event-card__month { font-size: .8rem; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: .1em; }
.event-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; color: var(--white); }
.event-card__location { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--gray); margin-bottom: .5rem; }
.event-card__desc { font-size: .9rem; color: var(--gray-light); }

/* Events list (página eventos) */
.events-list { display: flex; flex-direction: column; gap: 1.5rem; }
.event-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  background: var(--dark-3);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.05);
  transition: var(--transition);
}
.event-item:hover { border-color: var(--red); transform: translateX(4px); }
.event-item__img { height: 200px; }
.event-item__img img { width:100%; height:100%; object-fit:cover; }
.event-item__img--placeholder { background: var(--dark-4); display:flex; align-items:center; justify-content:center; }
.event-item__body { display: flex; gap: 1.5rem; padding: 1.5rem; align-items: flex-start; }
.event-item__date { flex-shrink: 0; }
.event-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--red);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  min-width: 60px;
}
.event-date-box__day { font-size: 1.8rem; font-weight: 900; font-family: var(--font-head); line-height: 1; color: var(--white); }
.event-date-box__month { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.8); }
.event-date-box__year { font-size: .7rem; color: rgba(255,255,255,.6); margin-top: .2rem; }
.event-item__info { flex: 1; }
.event-item__title { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.event-item__location { display:flex; align-items:center; gap:.4rem; font-size:.85rem; color:var(--gray); margin-bottom:.5rem; }
.event-item__desc { font-size:.9rem; color:var(--gray-light); }
.event-item__action { display:flex; align-items:flex-start; padding-top:.25rem; }

/* ─── CONTENT BLOCKS ─────────────────────────────────────────── */
.content-blocks { display: flex; flex-direction: column; gap: 3rem; }
.content-block {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  transition: var(--transition);
  border-left: 4px solid transparent;
}
.content-block:hover { border-left-color: var(--red); transform: translateX(4px); box-shadow: var(--shadow); }
.content-block__icon { display: flex; justify-content: center; padding-top: .25rem; }
.arrow-right {
  width: 0; height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 20px solid var(--red);
}
.content-block__title { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; }
.content-block__text { color: #555; font-size: .95rem; line-height: 1.7; }
.content-text { color: var(--gray-light); font-size: 1.05rem; line-height: 1.8; }

/* ─── TEAM ───────────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.team-card {
  display: flex;
  gap: 1.5rem;
  background: var(--dark-3);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,.05);
  transition: var(--transition);
}
.team-card:hover { border-color: var(--red); }
.team-card__avatar {
  width: 80px; height: 80px;
  background: var(--dark-4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  flex-shrink: 0;
  border: 2px solid var(--red);
}
.team-card__info { flex: 1; }
.team-card__info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.team-card__role { font-size: .85rem; color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; }
.team-card__contact {
  display: block;
  font-size: .85rem;
  color: var(--gray-light);
  transition: var(--transition);
  margin-bottom: .25rem;
}
.team-card__contact:hover { color: var(--red); }

/* ─── CTA BLOCK ──────────────────────────────────────────────── */
.cta-block { text-align: center; padding: 2rem 0; }
.cta-block__title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; color: var(--white); margin-bottom: 1.5rem; }
.cta-block__text { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 2rem; }

/* ─── CONTACT ────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.contact-person {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.contact-person:last-of-type { border-bottom: none; }
.contact-person__arrow {
  width: 0; height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid var(--red);
  flex-shrink: 0;
  margin-top: 4px;
}
.contact-person h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .2rem; }
.contact-person__role { font-size: .8rem; color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.contact-person__link {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--gray-light);
  margin-bottom: .35rem;
  transition: var(--transition);
}
.contact-person__link:hover { color: var(--red); }
.contact-social { display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; }
.contact-social__link {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  color: var(--gray-light);
  transition: var(--transition);
}
.contact-social__link:hover { color: var(--red); }

/* Contact form */
.contact-form-wrapper {}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-label {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-light);
}
.form-label--dark { color: var(--dark); }
.form-input {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,57,43,.2); }
.form-input::placeholder { color: rgba(255,255,255,.25); }
.form-textarea { resize: vertical; min-height: 140px; }
.required { color: var(--red); }

/* Alerts */
.alert {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: .95rem;
}
.alert--success { background: rgba(39,174,96,.15); border: 1px solid rgba(39,174,96,.4); color: #7dce9b; }
.alert--error   { background: rgba(192,57,43,.15);  border: 1px solid rgba(192,57,43,.4);  color: #e87868; }
.alert strong { display: block; margin-bottom: .25rem; }
.alert ul { padding-left: 1.25rem; margin-top: .5rem; }

/* ─── EMPTY STATE ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
}
.empty-state h2 { font-size: 2rem; margin-bottom: 1rem; color: var(--gray-light); }
.empty-state p  { color: var(--gray); max-width: 400px; margin: 0 auto; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer { background: #111; }
.footer__top { padding: 4rem 0 3rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}
.footer__col--brand { }
.footer__logo { display: inline-block; margin-bottom: 1rem; }
.footer__logo img { height: 60px; width: auto; }
.footer__tagline { color: var(--gray); font-size: .9rem; margin-bottom: 1.5rem; }
.footer__social { display: flex; gap: 1rem; }
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  color: var(--gray-light);
  transition: var(--transition);
}
.footer__social a:hover { background: var(--red); color: var(--white); transform: translateY(-2px); }
.footer__heading {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.25rem;
}
.footer__links { display: flex; flex-direction: column; gap: .6rem; }
.footer__links a { color: var(--gray-light); font-size: .9rem; transition: var(--transition); }
.footer__links a:hover { color: var(--red); padding-left: .4rem; }
.footer__contact-list { display: flex; flex-direction: column; gap: .75rem; }
.footer__contact-list li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--gray-light); }
.footer__contact-list a { transition: var(--transition); }
.footer__contact-list a:hover { color: var(--red); }
.footer__bottom {
  background: #0a0a0a;
  padding: 1.25rem 0;
}
.footer__bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer__bottom p { font-size: .82rem; color: var(--gray); }

/* ─── WHATSAPP FLOAT ─────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 800;
  background: #25d366;
  color: var(--white);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: var(--transition);
  animation: wa-pulse 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 16px rgba(37,211,102,.4); }
  50%      { box-shadow: 0 4px 24px rgba(37,211,102,.7); }
}

/* ─── HOME SLIDER ────────────────────────────────────────────── */
.home-slider {
  position: relative;
  margin-top: 3.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  background: var(--dark-3);
}
.home-slider__track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.home-slider__slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16/7;
  overflow: hidden;
  flex-shrink: 0;
}
.home-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
}
.home-slider__slide.is-active img {
  transform: scale(1.04);
}
.home-slider__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 2rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 100%);
  font-size: .95rem;
  font-weight: 600;
  color: var(--white);
  font-family: var(--font-head);
  letter-spacing: .03em;
}

/* Demo slides (sin fotos) */
.home-slider__slide--demo {
  aspect-ratio: 16/7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 480px;
}
.demo-slide h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  font-family: var(--font-head);
  color: var(--white);
  margin: 0;
}
.demo-slide p {
  color: var(--gray-light);
  font-size: clamp(.85rem, 2vw, 1rem);
  line-height: 1.6;
  margin: 0;
}

/* Botones prev/next */
.home-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  backdrop-filter: blur(6px);
}
.home-slider__btn:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-50%) scale(1.1);
}
.home-slider__btn--prev { left: 1rem; }
.home-slider__btn--next { right: 1rem; }

/* Dots */
.home-slider__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 10;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.slider-dot.active {
  background: var(--red);
  width: 24px;
  border-radius: 4px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .section-split { grid-template-columns: 1fr; }
  .section-split--nosotros { grid-template-columns: 1fr; }
  .section-split__left { flex-direction: row; align-items: center; position: static; gap: 1.5rem; }
  .section-split__label { font-size: 4rem; flex-direction: row; gap: .5rem; position: static; }
  .nosotros-logo img { width: 100px; height: 100px; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .logo-showcase__img { width: min(300px, 70vw); }
  .logo-showcase__glow { width: 300px; height: 300px; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  /* Nav mobile */
  .navbar__toggle { display: flex; }
  .navbar__menu {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--dark-2);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right .3s ease;
    z-index: 1000;
    border-left: 1px solid rgba(255,255,255,.05);
    overflow-y: auto;
  }
  .navbar__menu.open { right: 0; }
  .navbar__list { flex-direction: column; width: 100%; gap: 0; }

  /* Links normales: padding simétrico, línea activa bien alineada */
  .navbar__link {
    width: 100%;
    padding: .85rem 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: .9rem;
    display: block;
  }
  /* Línea de "activo" solo visible en desktop — en móvil usar color */
  .navbar__link::after { display: none; }
  .navbar__link.active {
    color: var(--red);
    padding-left: .6rem;
    border-left: 3px solid var(--red);
  }
  .navbar__link:hover { padding-left: .6rem; }

  /* Botón Contacto: compacto, solo el ancho del texto + padding */
  .navbar__link--cta {
    margin: 1.25rem 0 0;
    width: auto;               /* ← no ocupa todo el ancho */
    align-self: flex-start;    /* ← alineado a la izquierda */
    display: inline-flex;
    text-align: left;
    padding: .55rem 1.4rem;
    border-radius: var(--radius);
    border-left: none;
  }
  .navbar__link--cta.active { padding-left: 1.4rem; border-left: none; }

  .navbar__social { display: flex; }

  .hero__title { font-size: clamp(2rem, 8vw, 3.5rem); }
  .hero__subtitle { font-size: 1rem; }
  .hero__cta { flex-direction: column; align-items: center; }

  .services-grid { grid-template-columns: 1fr; }
  .services-big-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-preview { grid-template-columns: repeat(2, 1fr); }

  .event-item { grid-template-columns: 1fr; }
  .event-item__img { height: 160px; }
  .event-item__body { flex-wrap: wrap; }

  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom .container { flex-direction: column; text-align: center; }
  .stats-row { gap: 1.5rem; }
  .content-block { grid-template-columns: 1fr; }
  .portfolio-cats { gap: .4rem; }
  .section-split__left { display: none; } /* ocultar en móvil para no duplicar logo */
  .logo-showcase__img { width: min(260px, 65vw); }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-preview { grid-template-columns: 1fr; }
  .lightbox__prev { left: .25rem; }
  .lightbox__next { right: .25rem; }
  .team-grid { grid-template-columns: 1fr; }
  .home-slider__slide { aspect-ratio: 4/3; }
  .home-slider__slide--demo { aspect-ratio: 4/3; }
  .home-slider__btn { width: 36px; height: 36px; font-size: 1.2rem; }
  .demo-slide h3 { font-size: 1.2rem; }
}
