/* ==========================================
   DIPLOT CANCÚN — CSS PRINCIPAL
   Sitio multi-página HTML5/CSS3 puro
   ========================================== */

/* === VARIABLES === */
:root {
  /* Backgrounds — MODO CLARO */
  --bg:        #ffffff;
  --bg-2:      #f6f6f6;
  --bg-3:      #eeeeee;
  --bg-light:  #f0f0f0;

  /* Brand accent – verde corporativo */
  --accent:    #1a9e55;
  --accent-dk: #127a3e;
  --accent-lt: #3dc97a;

  /* Paleta del logo DIPLOT (CMYK) */
  --brand-cyan:    #29ABE2;
  --brand-yellow:  #F5C800;   /* amarillo más legible sobre blanco */
  --brand-magenta: #D6006E;   /* magenta más profundo sobre blanco */
  --brand-black:   #0f0f0f;

  /* Grises del degradado del logo */
  --gray-1: #222222;
  --gray-2: #444444;
  --gray-3: #777777;
  --gray-4: #999999;
  --gray-5: #bbbbbb;
  --gray-6: #dedede;

  /* Texto — sobre fondo blanco */
  --white:  #ffffff;
  --text:   #1c1c1c;
  --muted:  #5c5c5c;
  --border: rgba(0,0,0,0.09);
  --border-lt: rgba(0,0,0,0.06);

  /* Tipografías */
  --serif: Georgia, 'Times New Roman', serif;
  --sans:  'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --nav-h: 74px;
  --max-w: 1200px;
  --r:     2px;
  --ease:  0.3s ease;
  --radius: 4px;
  --surface:   #ffffff;   /* tarjetas blancas sobre fondo blanco */
  --surface-2: #f4f4f4;   /* tarjetas sobre fondo gris claro */
}

/* ==========================================
   REGLA DE COLOR — resumen de uso
   --bg          #fff     fondo de página (blanco)
   --bg-2        #f6f6f6  secciones alternas (gris muy claro)
   --bg-3        #eeeeee  hover, CTA banner
   --surface     #fff     tarjetas sobre fondo blanco
   --surface-2   #f4f4f4  tarjetas sobre fondo gris
   --brand-black #0f0f0f  header · stats bar · footer · CTA dark
   --brand-cyan  #29ABE2  acento primario, badges
   --brand-yellow #F5C800 acento secundario
   --brand-magenta #D6006E acento terciario
   --accent      #1a9e55  verde corporativo, botones, íconos
   ==========================================
   REGLA DE SECCIÓN:
   · Sección normal        → fondo --bg o --bg-2, texto oscuro
   · .section--dk          → fondo --brand-black, texto blanco
   · Tarjeta normal        → --surface + border + acento de color
   · No usar fondos negros inline — usar .section--dk
   ========================================== */

/* === RESET === */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
/* Ensure heading colors in light mode */
h1,h2,h3,h4 { color: var(--brand-black); }
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; }

/* === TYPOGRAPHY === */
h1,h2,h3,h4 { font-family: var(--serif); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 400; }
h3 { font-size: clamp(1.15rem, 2vw, 1.7rem); font-weight: 400; }
h4 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-family: var(--sans); }
p  { font-size: 1rem; line-height: 1.85; color: var(--muted); }

.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 0.9rem;
}

/* === LAYOUT === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section     { padding: 6rem 0; }
.section--dk {
  background: var(--brand-black);
  color: #d8d8d8;
}
.section--dk h1, .section--dk h2, .section--dk h3, .section--dk h4 { color: #ffffff; }
.section--dk p { color: #a0a0a0; }
.section--dk .eyebrow { color: var(--brand-cyan); }

.section--lt {
  background: var(--bg-2);
  color: var(--text);
}
.section--lt h2,.section--lt h3,.section--lt h4 { color: var(--brand-black); }
.section--lt p  { color: var(--muted); }
.section--lt .eyebrow { color: var(--accent); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 4rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p  { font-size: 1.05rem; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2.1rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  border: 2px solid transparent; border-radius: var(--r);
  transition: all var(--ease);
}
.btn--primary  { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dk); border-color: var(--accent-dk); transform: translateY(-1px); }
/* outline: en heros (fondo oscuro) → borde blanco; en contenido (fondo blanco) → borde oscuro */
.btn--outline  { background: transparent; border-color: var(--brand-black); color: var(--brand-black); }
.btn--outline:hover { background: var(--brand-black); color: #fff; }
/* En secciones oscuras, outline se convierte en blanco automáticamente */
.section--dk .btn--outline,
.service-cta-section .btn--outline,
.stats-bar .btn--outline,
.site-footer .btn--outline {
  border-color: rgba(255,255,255,0.6); color: #fff; background: transparent;
}
.section--dk .btn--outline:hover,
.service-cta-section .btn--outline:hover {
  background: #fff; color: var(--brand-black); border-color: #fff;
}
/* Variante blanca para usar dentro de heros y secciones oscuras */
.btn--outline-white { background: transparent; border-color: rgba(255,255,255,0.7); color: #fff; }
.btn--outline-white:hover { background: #fff; color: var(--brand-black); }
.btn--outline-dk { background: transparent; border-color: var(--brand-black); color: var(--brand-black); }
.btn--outline-dk:hover { background: var(--brand-black); color: #fff; }

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* === NAVIGATION === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: var(--brand-black);
  transition: background var(--ease), box-shadow var(--ease);
}
.site-header.scrolled {
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.18);
}
/* Línea de color bajo el header (los cuadros del logo como borde) */
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right,
    var(--brand-cyan) 0%,    var(--brand-cyan) 25%,
    var(--brand-yellow) 25%, var(--brand-yellow) 50%,
    var(--brand-magenta) 50%,var(--brand-magenta) 75%,
    var(--accent) 75%,       var(--accent) 100%
  );
  opacity: 0;
  transition: opacity var(--ease);
}
.site-header.scrolled::after { opacity: 1; }
.site-header .container {
  display: flex; align-items: center;
  justify-content: space-between; width: 100%;
}

/* === LOGO === */
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: 1.5rem; font-weight: 900;
  color: var(--white); letter-spacing: 0.06em; text-transform: uppercase;
  flex-shrink: 0;
}
.logo em { color: var(--accent); font-style: normal; }
.logo-d { color: var(--white); }
.logo-iplot { color: var(--white); }

/* Cuadritos de color del logo Diplot */
.logo-squares {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  width: 22px; height: 22px; flex-shrink: 0;
}
.lsq {
  border-radius: 1px;
}
.lsq--c { background: var(--brand-cyan); }
.lsq--y { background: var(--brand-yellow); }
.lsq--m { background: var(--brand-magenta); }
.lsq--b { background: var(--white); opacity: 0.85; }

/* Barra degradado del logo (negro → gris) */
.gradient-bar {
  height: 3px;
  background: linear-gradient(to right,
    var(--brand-black) 0%,
    var(--gray-1) 15%,
    var(--gray-2) 30%,
    var(--gray-3) 50%,
    var(--gray-4) 70%,
    var(--gray-5) 85%,
    var(--gray-6) 100%
  );
  opacity: 0.45;
}

/* Decoración de cuadros para secciones */
.brand-dots {
  display: flex; gap: 5px; align-items: center;
  margin-bottom: 1rem;
}
.brand-dot {
  width: 9px; height: 9px; border-radius: 1px;
}
.brand-dot--c { background: var(--brand-cyan); }
.brand-dot--y { background: var(--brand-yellow); }
.brand-dot--m { background: var(--brand-magenta); }
.brand-dot--g { background: var(--accent); }

.site-nav { display: flex; align-items: center; }

.nav-list {
  display: flex; align-items: center; gap: 0;
}
.nav-item { position: relative; }

.nav-link {
  display: block; padding: 0.5rem 0.9rem;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); transition: color var(--ease);
}
.nav-link:hover, .nav-link.active { color: #ffffff; }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 0px); left: 0;
  min-width: 230px;
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 3px solid var(--brand-cyan);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all var(--ease); z-index: 10;
}
.nav-item.has-dd:hover > .dropdown,
.nav-item.has-dd:focus-within > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block; padding: 0.7rem 1.2rem;
  font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--muted); border-bottom: 1px solid var(--border);
  transition: all var(--ease);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--bg-3); color: var(--brand-black); padding-left: 1.7rem; }

.nav-contact {
  margin-left: 1rem; padding: 0.5rem 1.2rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  transition: background var(--ease);
}
.nav-contact:hover { background: var(--accent-dk); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; margin-left: auto;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); transition: var(--ease);
}
.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); }

@media (max-width: 920px) {
  .hamburger { display: flex; }
  .site-nav {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--bg); overflow-y: auto; padding: 1.5rem 2rem;
    transform: translateX(100%); transition: transform var(--ease);
  }
  .site-nav.open { transform: translateX(0); }
  .nav-list  { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav-link  { font-size: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--border); width: 100%; }
  .dropdown  {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: none; border-left: 2px solid var(--accent);
    background: var(--bg-3); box-shadow: none;
    display: none; padding: 0.25rem 0;
  }
  .nav-item.has-dd.open > .dropdown { display: block; }
  .dropdown a { font-size: 0.85rem; }
  .nav-contact { margin-top: 1.5rem; margin-left: 0; }
}

/* === HERO SLIDER === */
.hero {
  position: relative; height: 100vh; min-height: 620px; overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.1s ease;
  display: flex; align-items: center;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; z-index: 1; pointer-events: auto; }

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0,0,0,0.80) 35%,
    rgba(0,0,0,0.30) 70%,
    rgba(0,0,0,0.10) 100%
  );
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 2rem;
  margin-left: max(2rem, calc((100vw - var(--max-w)) / 2));
  max-width: min(700px, 90vw);
}
.hero-content .eyebrow { color: var(--accent-lt); }
.hero-content h1 {
  color: var(--white); margin-bottom: 1.5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.hero-content p {
  font-size: 1.1rem; color: rgba(255,255,255,0.78);
  max-width: 540px; margin-bottom: 2.5rem;
}

.hero-arrows {
  position: absolute; bottom: 50%; transform: translateY(50%);
  left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between;
  padding: 0 1rem; pointer-events: none;
}
.hero-arrow {
  width: 46px; height: 46px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--ease);
  backdrop-filter: blur(4px); pointer-events: auto;
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }

.hero-dots {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; gap: 0.7rem; align-items: center;
}
.hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer; transition: all var(--ease); border: none;
}
.hero-dot.active { background: var(--accent); width: 22px; border-radius: 4px; }

/* === PAGE HERO === */
.page-hero {
  padding-top: var(--nav-h);
  min-height: 460px; position: relative;
  display: flex; align-items: flex-end; padding-bottom: 3.5rem;
  overflow: hidden;
}
/* Línea inferior con colores de marca */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right,
    var(--brand-cyan)    0%,   var(--brand-cyan)    25%,
    var(--brand-yellow)  25%,  var(--brand-yellow)  50%,
    var(--brand-magenta) 50%,  var(--brand-magenta) 75%,
    var(--accent)        75%,  var(--accent)        100%
  );
  z-index: 2;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 25%, rgba(0,0,0,0.5));
}
/* Page hero con background-image inline (páginas de servicio) */
.page-hero[style*="background-image"] {
  background-size: cover;
  background-position: center;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.88) 0%,
    rgba(5,18,10,0.75) 100%
  );
  z-index: 0;
}
.page-hero-content {
  position: relative; z-index: 1;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero p  { font-size: 1.05rem; color: rgba(255,255,255,0.75); max-width: 580px; margin-bottom: 0; }
.page-hero-content p { margin-bottom: 1.5rem; }

/* === SERVICE CARDS === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden; transition: all var(--ease);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  border-color: var(--brand-cyan);
}
.service-card-img { height: 210px; overflow: hidden; }
.service-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-body { padding: 1.75rem; }
.service-icon {
  width: 42px; height: 42px; background: var(--bg-2);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem; font-size: 1.1rem; border-radius: 4px;
}
.service-card h3 { color: var(--brand-black); font-size: 1.15rem; margin-bottom: 0.65rem; }
.service-card p  { font-size: 0.88rem; margin-bottom: 1.4rem; }
.link-arrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 0.45rem;
  transition: gap var(--ease);
}
.service-card:hover .link-arrow { gap: 0.85rem; }

/* === INTRO SPLIT === */
.intro-split {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 58vh;
}
.intro-split-text {
  padding: 5rem 3.5rem 5rem max(2rem, calc((100vw - var(--max-w)) / 2));
  background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center;
}
.intro-split-text h2 { color: var(--brand-black); margin-bottom: 1.4rem; }
.intro-split-text p  { margin-bottom: 1rem; }
.intro-split-img { position: relative; min-height: 480px; }
.intro-split-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
@media (max-width: 800px) {
  .intro-split { grid-template-columns: 1fr; }
  .intro-split-text { padding: 3rem 2rem; }
  .intro-split-img { min-height: 320px; }
}

/* Aliases para páginas de servicio (intro-text / intro-image) */
.intro-split.container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  padding-top: 5rem; padding-bottom: 5rem;
}
.intro-text h2 { color: var(--brand-black); margin-bottom: 1.2rem; }
.intro-text p  { margin-bottom: 1rem; }
.intro-image img {
  width: 100%; height: 400px; object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}
@media (max-width: 800px) {
  .intro-split.container { grid-template-columns: 1fr; gap: 2rem; }
  .intro-image { order: -1; }
  .intro-image img { height: 240px; }
}

/* === FEATURES STRIP === */
.features-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--border);
}
.feature-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
}
.feature-item:last-child { border-right: none; }
.feature-num {
  font-family: var(--serif); font-size: 3rem;
  color: var(--accent); opacity: 0.35; line-height: 1;
  display: block; margin-bottom: 1rem;
}
.feature-item h4 { color: var(--brand-black); margin-bottom: 0.6rem; font-size: 0.85rem; }
.feature-item p  { font-size: 0.88rem; }
@media (max-width: 700px) {
  .features-strip { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--border); }
}

/* === STATS BAR === */
.stats-bar {
  background: var(--brand-black);
  padding: 3.5rem 0;
  position: relative;
}
/* Línea CMYK arriba de stats */
.stats-bar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right,
    var(--brand-cyan) 0%, var(--brand-cyan) 25%,
    var(--brand-yellow) 25%, var(--brand-yellow) 50%,
    var(--brand-magenta) 50%, var(--brand-magenta) 75%,
    var(--accent) 75%, var(--accent) 100%
  );
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; text-align: center;
}
.stat-item  { color: #fff; }
.stat-num {
  font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 400; line-height: 1; display: block; margin-bottom: 0.4rem;
  color: var(--brand-cyan);
}
.stat-lbl {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: #aaaaaa;
}
@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }

/* === GALLERY === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0.875rem;
}
.gallery-item {
  position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: zoom-in;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(61,158,95,0); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; opacity: 0;
  transition: all var(--ease);
}
.gallery-item:hover .gallery-overlay { background: rgba(41,171,226,0.55); opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90vw; max-height: 85vh; object-fit: contain;
  display: block;
}
.lb-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-size: 1.8rem; color: #fff; opacity: 0.65;
  cursor: pointer; transition: opacity var(--ease);
}
.lb-close:hover { opacity: 1; }
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 1.8rem; color: #fff; opacity: 0.65;
  cursor: pointer; transition: opacity var(--ease); padding: 1rem;
}
.lb-prev { left: 0.5rem; }
.lb-next { right: 0.5rem; }
.lb-prev:hover, .lb-next:hover { opacity: 1; }

/* === TEAM === */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2.5rem; text-align: center;
}
.team-card { cursor: pointer; }
.team-photo {
  width: 170px; height: 170px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--border);
  transition: border-color var(--ease);
}
.team-card:hover .team-photo { border-color: var(--accent); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 {
  color: var(--brand-black); font-size: 1rem; margin-bottom: 0.2rem;
  text-transform: none; letter-spacing: 0.02em; font-family: var(--serif);
}
.team-card .role { font-size: 0.75rem; color: var(--accent); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

/* Team Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; visibility: hidden; transition: all var(--ease);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-2); max-width: 580px; width: 100%;
  border: 1px solid var(--border);
  display: grid; grid-template-columns: 190px 1fr;
  overflow: hidden;
  transform: scale(0.94); transition: transform var(--ease);
  position: relative;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 300px; }
.modal-body { padding: 2rem 1.75rem; display: flex; flex-direction: column; justify-content: center; }
.modal-body h3 { color: var(--brand-black); margin: 0.4rem 0 1rem; font-size: 1.4rem; }
.modal-body p  { font-size: 0.88rem; }
.modal-close {
  position: absolute; top: 0.9rem; right: 1rem;
  font-size: 1.4rem; color: #fff; opacity: 0.5;
  cursor: pointer; transition: opacity var(--ease); z-index: 1;
}
.modal-close:hover { opacity: 1; }
@media (max-width: 540px) {
  .modal { grid-template-columns: 1fr; }
  .modal-img img { min-height: 200px; height: 200px; }
}

/* === HISTORY (About) === */
.history-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.history-img { position: relative; }
.history-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.history-img::before {
  content: ''; position: absolute;
  top: -1.5rem; left: -1.5rem;
  width: 50%; height: 50%;
  border: 3px solid var(--accent); z-index: -1;
}
.history-text h2 { margin-bottom: 1.4rem; }
.history-text p  { margin-bottom: 1rem; }
@media (max-width: 800px) {
  .history-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .history-img::before { display: none; }
}

/* === VALUES (About) === */
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.value-card {
  text-align: center; padding: 2.5rem 1.5rem;
  border: 1px solid var(--border-lt);
}
.value-icon { font-size: 2.4rem; margin-bottom: 1.25rem; display: block; }
.value-card h4 { color: var(--brand-black); margin-bottom: 0.65rem; }
.value-card p  { color: #555; font-size: 0.9rem; }
@media (max-width: 680px) { .values-grid { grid-template-columns: 1fr; } }

/* === CONTACT === */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 5rem; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; gap: 1.1rem; }
.contact-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--bg-3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.contact-item h4  { color: var(--accent); font-size: 0.68rem; letter-spacing: 0.18em; margin-bottom: 0.2rem; }
.contact-item p,
.contact-item a   { font-size: 1rem; color: var(--text); }
.contact-item a:hover { color: var(--accent); }
@media (max-width: 820px) { .contact-wrap { grid-template-columns: 1fr; gap: 3rem; } }

/* Form */
.form-grid { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); padding: 0.85rem 1rem;
  border-radius: var(--r); outline: none;
  transition: border-color var(--ease);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { min-height: 145px; resize: vertical; }
.form-success {
  display: none; background: var(--accent); color: #fff;
  padding: 1rem 1.4rem; font-size: 0.9rem; font-weight: 600;
  margin-top: 0.5rem; border-radius: var(--r);
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* === CTA BANNER === */
.cta-banner {
  padding: 5.5rem 0; text-align: center;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-banner h2  { color: var(--brand-black); margin-bottom: 0.9rem; }
.cta-banner p   { margin-bottom: 2.5rem; font-size: 1.05rem; max-width: 540px; margin-left: auto; margin-right: auto; }

/* === FOOTER === */
.site-footer {
  background: #050505; padding: 4.5rem 0 0;
  border-top: none;
  position: relative;
}
/* Barra de color CMYK antes del footer */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right,
    var(--brand-cyan) 0%,    var(--brand-cyan) 25%,
    var(--brand-yellow) 25%, var(--brand-yellow) 50%,
    var(--brand-magenta) 50%,var(--brand-magenta) 75%,
    var(--accent) 75%,       var(--accent) 100%
  );
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid var(--border);
}
.footer-brand .logo { font-size: 1.25rem; display: inline-block; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.83rem; max-width: 270px; color: rgba(255,255,255,0.5); }
.footer-col h5 {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--white); margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { font-size: 0.83rem; color: rgba(255,255,255,0.5); transition: color var(--ease); }
.footer-col a:hover { color: #ffffff; }
.footer-contact-row { display: flex; gap: 0.6rem; margin-bottom: 0.7rem; font-size: 0.83rem; color: rgba(255,255,255,0.5); }
.footer-contact-row a:hover { color: #ffffff; }

.footer-bottom {
  padding: 1.25rem 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; color: var(--muted);
}
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--muted); transition: color var(--ease); }
.footer-social a:hover { color: var(--accent); }

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* === WHATSAPP === */
.btn--wa {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #fff !important;
}
.btn--wa:hover {
  background: #128C7E !important;
  border-color: #128C7E !important;
  transform: translateY(-2px);
}
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--ease), box-shadow var(--ease);
  text-decoration: none;
  font-size: 1.8rem;
  line-height: 1;
}
.wa-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.65);
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* === SERVICIO HERO EXTRA === */
.service-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
}
/* Cuadrito de color antes del badge según servicio */
.service-hero-badge::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 1px;
  background: var(--badge-color, var(--accent));
  flex-shrink: 0;
}
/* Variantes de color por categoría de servicio */
body[data-wa-service="Impresión Digital"]      .service-hero-badge { --badge-color: var(--brand-cyan); }
body[data-wa-service="Gran Formato"]           .service-hero-badge { --badge-color: var(--brand-yellow); }
body[data-wa-service="Diseño Web"]             .service-hero-badge { --badge-color: var(--brand-magenta); }
body[data-wa-service="Activaciones y Marketing"] .service-hero-badge { --badge-color: var(--brand-cyan); }
body[data-wa-service="Tecnología Empresarial"] .service-hero-badge { --badge-color: var(--brand-yellow); }
body[data-wa-service="Redes y Seguridad"]      .service-hero-badge { --badge-color: var(--brand-magenta); }
body[data-wa-service="CCTV y Cámaras de Seguridad"] .service-hero-badge { --badge-color: var(--brand-cyan); }
body[data-wa-service="Renta de Equipos"]       .service-hero-badge { --badge-color: var(--brand-yellow); }

/* Feature cards – borde superior de color rotativo (más visible en fondo blanco) */
.feature-card:nth-child(3n+1) { border-top: 3px solid var(--brand-cyan); }
.feature-card:nth-child(3n+2) { border-top: 3px solid var(--brand-yellow); }
.feature-card:nth-child(3n)   { border-top: 3px solid var(--brand-magenta); }
/* Icon tinted per card color */
.feature-card:nth-child(3n+1) .feature-icon { filter: drop-shadow(0 0 6px rgba(41,171,226,0.4)); }
.feature-card:nth-child(3n+2) .feature-icon { filter: drop-shadow(0 0 6px rgba(245,200,0,0.5)); }
.feature-card:nth-child(3n)   .feature-icon { filter: drop-shadow(0 0 6px rgba(214,0,110,0.4)); }
/* .section-title — alias de .section-header h2 para páginas de servicio */
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--brand-black);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.service-features { padding: 5rem 0; }
.service-features .section-title { margin-bottom: 3rem; }
.features-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--ease), transform var(--ease);
}
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}
.feature-card .feature-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  display: block;
}
.feature-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--brand-black);
  margin-bottom: 0.6rem;
}
.feature-card p { font-size: 0.92rem; line-height: 1.65; }

.service-cta-section {
  background: var(--brand-black);
  border-top: none;
  border-bottom: none;
  padding: 5rem 0;
  text-align: center;
  position: relative;
}
/* Franja CMYK encima del CTA */
.service-cta-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right,
    var(--brand-cyan) 0%, var(--brand-cyan) 25%,
    var(--brand-yellow) 25%, var(--brand-yellow) 50%,
    var(--brand-magenta) 50%, var(--brand-magenta) 75%,
    var(--accent) 75%, var(--accent) 100%
  );
}
.service-cta-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #ffffff;
  margin-bottom: 1rem;
}
.service-cta-section p { color: #aaaaaa; }
.service-cta-section p { max-width: 600px; margin: 0 auto 2.5rem; }
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.process-section { padding: 5rem 0; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
  margin-top: 3rem;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
}
.process-step {
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}
.step-num {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}
.process-step h4 {
  font-family: var(--serif);
  color: var(--brand-black);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.process-step p { font-size: 0.85rem; line-height: 1.5; }

@media (max-width: 768px) {
  .features-grid-3 { grid-template-columns: 1fr; }
  .process-steps::before { display: none; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .wa-float { bottom: 1.2rem; right: 1.2rem; width: 52px; height: 52px; font-size: 1.5rem; }
}

/* === UTILITY === */
.text-center  { text-align: center; }
.text-white   { color: var(--white) !important; }
.text-accent  { color: var(--accent) !important; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
