/*
Theme Name: Polimedios 1
Theme URI: https://polimedios.com
Description: Polimedios 1 - Agencia de Marketing Digital Theme for Polimedios Ecuador
Author: Andre Gutierrez
Author URI: https://polimedios.com
Version: 1.4.0
Requires at least: 5.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: algenix
Tags: business, portfolio, agency, one-page
*/

/* ================================================================
   DESIGN TOKENS — exactos de Algenix v1.15.0 skin-setup.php
   ================================================================ */
:root {
  /* Fonts */
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;

  /* Main (light) scheme */
  --c-bg:     #FFFFFF;
  --c-bg2:    #F7F5F3;
  --c-border: #E0DEDA;
  --c-title:  #2A2929;
  --c-text:   #4E4D4D;
  --c-meta:   #7A7A74;
  --c-accent: #EA8B59;
  --c-hover:  #D07848;

  /* Alt (dark) scheme — Polimedios #4E4D4D */
  --c-dark:        #4E4D4D;
  --c-dark2:       #3D3C3C;
  --c-dark-border: #605F5F;
  --c-dark-title:  #FFFFFF;
  --c-dark-text:   #C8C7C7;
  --c-dark-meta:   #9A9898;

  /* Layout */
  --max-w:       1840px;
  --section-py:  90px;
  --gap:         30px;
  --header-h:    80px;

  /* Radii — exactos de Algenix */
  --r-btn:   50px;
  --r-card:  16px;
  --r-input: 10px;
}

/* ================================================================
   RESET
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.625em;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--c-hover); }

/* ================================================================
   TIPOGRAFÍA — basada en skin-setup.php
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--c-title);
  line-height: 1.1;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(36px, 5.5vw, 57px); letter-spacing: -1.7px; }
h2 { font-size: clamp(31px, 4vw,  47px); }
h3 { font-size: clamp(26px, 3vw,  35px); }
h4 { font-size: clamp(22px, 2.5vw, 28px); }
h5 { font-size: clamp(19px, 2vw,  23px); }
h6 { font-size: clamp(17px, 1.5vw, 19px); }
p  { margin-bottom: 1.62em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4em; }
li { margin-bottom: .4em; }

/* ================================================================
   LAYOUT HELPERS
   ================================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: var(--section-py) 0; }
.section--dark   { background: var(--c-dark);  }
.section--light  { background: var(--c-bg2);   }
.section--white  { background: var(--c-bg);    }
.text-center { text-align: center; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.section-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--c-accent);
  border-radius: 50%;
}
.section-header { margin-bottom: 60px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--c-meta); max-width: 600px; }
.section-header.text-center p { margin: 0 auto; }

/* ================================================================
   BOTONES — exactos de Algenix: 50px radius, 18px 40px padding
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  padding: 18px 40px;
  border-radius: var(--r-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-hover); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: var(--c-dark-border); }
.btn--ghost:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #128C7E; color: #fff; }
.btn--sm { padding: 12px 28px; font-size: 14px; }
.btn--dark { background: var(--c-dark2); color: #fff; border-color: var(--c-dark-border); }
.btn--dark:hover { background: var(--c-accent); border-color: var(--c-accent); }
.btn--outline-white { background: transparent; color: #fff; border-color: #fff; }
.btn--outline-white:hover { background: #fff; color: var(--c-accent); border-color: #fff; }
.btn--white { background: #fff; color: var(--c-accent); border-color: #fff; }
.btn--white:hover { background: #3D3C3C; color: #fff; border-color: #3D3C3C; }

/* ================================================================
   HEADER / NAVEGACIÓN
   ================================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  height: var(--header-h);
  background: var(--c-accent);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header .container { height: 100%; }
.site-header.scrolled {
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
}

/* Nav links invertidos en scroll */
.site-header.scrolled #menu-principal > li > a {
  color: var(--c-dark);
}
.site-header.scrolled #menu-principal > li > a:hover,
.site-header.scrolled #menu-principal > li.current-menu-item > a {
  color: var(--c-accent);
}
.site-header.scrolled #menu-principal > li > a::after {
  background: var(--c-accent);
}

/* Dropdown: fondo siempre oscuro, texto siempre blanco sin importar estado del header */
.site-header.scrolled #menu-principal .sub-menu a { color: #fff; }
.site-header.scrolled #menu-principal .sub-menu a:hover { background: var(--c-accent); color: #fff; }

/* Botón CTA del header invertido */
.site-header.scrolled .btn--outline-white {
  border-color: var(--c-accent);
  color: var(--c-accent);
}
.site-header.scrolled .btn--outline-white:hover {
  background: var(--c-accent);
  color: #fff;
}

/* Logo más pequeño en scroll (−30%) */
.site-header.scrolled .site-logo img { height: 35px; }

/* Hamburger invertido */
.site-header.scrolled .nav-toggle span { background: var(--c-dark); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

/* Logo */
.site-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: color .3s ease;
}
.site-logo:hover { color: var(--c-accent); }
.site-logo img { height: 62px; width: auto; max-width: 260px; object-fit: contain; object-position: left center; }
.logo-dot { color: var(--c-accent); }

/* Nav wrapper */
.nav-main { display: flex; align-items: center; margin-left: auto; }

/* Menu principal */
#menu-principal { list-style: none; display: flex; align-items: center; gap: 32px; }
#menu-principal li { position: relative; }
#menu-principal > li > a {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .3s ease;
  padding: 4px 0;
  position: relative;
}
#menu-principal > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 100%;
  height: 2px;
  background: #fff;
  transition: right .3s ease;
}
#menu-principal > li > a:hover { color: #fff; }
#menu-principal > li > a:hover::after { right: 0; }
#menu-principal > li.current-menu-item > a { color: #fff; }
#menu-principal > li.current-menu-item > a::after { right: 0; }

/* Scrolled: underline y current en naranja sobre fondo blanco */
.site-header.scrolled #menu-principal > li > a::after { background: var(--c-accent); }
.site-header.scrolled #menu-principal > li > a:hover { color: var(--c-accent); }

/* Caret en items con submenú */
#menu-principal > li.menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#menu-principal > li.menu-item-has-children > a::before {
  content: '';
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: .7;
  order: 2;
}

/* Dropdown */
#menu-principal .sub-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #2a2a2a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 10px;
  padding-top: 18px;
  min-width: 220px;
  z-index: 100;
  list-style: none;
  transition: opacity .2s ease, visibility .2s ease;
}
#menu-principal li:hover > .sub-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
#menu-principal .sub-menu a {
  display: block;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
#menu-principal .sub-menu a:hover {
  background: var(--c-accent);
  color: #fff;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: var(--c-dark);
  flex-direction: column;
  padding: 36px 32px 48px;
  gap: 0;
  z-index: 8999;
  overflow-y: auto;
}
.mobile-nav.active { display: flex; }
.mobile-nav > ul > li > a {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-dark-border);
  text-decoration: none;
  display: block;
  transition: color .3s ease;
}
.mobile-nav a { color: #fff; text-decoration: none; transition: color .3s ease; }
.mobile-nav a:hover { color: var(--c-accent); }
.mobile-nav .mobile-cta { margin-top: 40px; align-self: flex-start; }
.mobile-nav .sub-menu {
  list-style: none;
  margin: 4px 0 8px 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--c-accent);
}
.mobile-nav .sub-menu li a {
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: none;
  color: rgba(255,255,255,.75);
  display: block;
}
.mobile-nav .sub-menu li a:hover { color: #fff; }

/* ================================================================
   HERO SECTION — centrado simple sobre fondo naranja
   ================================================================ */
.hero {
  background: var(--c-accent);
  min-height: 100vh;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Concentric circles decoration */
.hero-circles {
  position: absolute;
  top: 50%;
  right: -260px;
  transform: translateY(-50%);
  width: 900px;
  height: 900px;
  pointer-events: none;
  z-index: 0;
}
.hero-circles span {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
}
.hero-circles span:nth-child(1) { width: 200px; height: 200px; transform: translate(-50%,-50%); }
.hero-circles span:nth-child(2) { width: 380px; height: 380px; transform: translate(-50%,-50%); }
.hero-circles span:nth-child(3) { width: 560px; height: 560px; transform: translate(-50%,-50%); }
.hero-circles span:nth-child(4) { width: 740px; height: 740px; transform: translate(-50%,-50%); }
.hero-circles span:nth-child(5) { width: 900px; height: 900px; transform: translate(-50%,-50%); }

.hero__container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  z-index: 2;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--c-dark);
  max-width: 820px;
  margin: 0 0 44px;
}

/* Typewriter effect */
.hero__type-wrap { display: block; white-space: nowrap; }
.hero__typewriter { color: #fff; font-style: normal; }
.hero__type-cursor {
  display: inline-block;
  color: #fff;
  font-weight: 300;
  margin-left: 1px;
  animation: cursor-blink .7s step-end infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Hero CTA button: solid white default, transparent on hover */
.hero__cta .btn--outline-white {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.hero__cta .btn--outline-white:hover {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.8);
}

/* Stats bar */
.hero__stats-bar {
  background: rgba(0,0,0,.15);
  border-top: 1px solid rgba(255,255,255,.15);
  position: relative;
  z-index: 2;
}
.hero__stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero__stat {
  padding: 34px 36px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.hero__stat:last-child { border-right: none; }
.hero__stat-top { display: flex; align-items: flex-end; gap: 2px; line-height: 1; }
.hero__stat-num {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero__stat-sup {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  padding-bottom: 4px;
}
.hero__stat-label {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: rgba(255,255,255,.9);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ================================================================
   TICKER GRANDE — texto en negrita mayúsculas con separador
   ================================================================ */
.ticker-big {
  overflow: hidden;
  padding: 26px 0;
  background: #fff;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.ticker-big__track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  animation: marquee-scroll 28s linear infinite;
  white-space: nowrap;
}
.ticker-big__track span {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.8vw, 50px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1.5px;
  color: var(--c-title);
  white-space: nowrap;
}
.ticker-big__track .ticker-sep {
  font-size: 18px;
  font-weight: 400;
  color: var(--c-meta);
}

/* ================================================================
   ABOUT SECTION — label+headline arriba, fotos en fila abajo
   ================================================================ */
.about-section {
  display: none;
  background: #fff;
  padding: var(--section-py) 0;
}
.about-top-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
}
.about-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-meta);
  padding-top: 16px;
  display: block;
}
.about-headline {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: var(--c-title);
  letter-spacing: -2.5px;
  line-height: 1.08;
  margin: 0;
}
.about-photos-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  height: 460px;
  align-items: stretch;
}
.about-photo {
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ================================================================
   FLIP CARDS — Casos de éxito con logos (3×3 grid)
   ================================================================ */
.flip-section { background: var(--c-bg2); }
.flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.flip-card {
  perspective: 1000px;
  height: 200px;
  cursor: pointer;
}
.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card__inner,
.flip-card.is-flipped .flip-card__inner {
  transform: rotateY(180deg);
}
.flip-card__front,
.flip-card__back {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-card__front {
  background: #fff;
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.flip-card__front img {
  max-width: 150px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.flip-card__back {
  background: var(--c-accent);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 20px;
  text-align: center;
  border-radius: 16px;
}
.flip-card__brand {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.flip-card__text {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.92);
}
@media (max-width: 768px) {
  .flip-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .flip-card { height: 170px; }
}
@media (max-width: 420px) {
  .flip-card { height: 150px; }
  .flip-card__front { padding: 20px; }
  .flip-card__front img { max-width: 110px; max-height: 55px; }
  .flip-card__back { padding: 16px 12px; }
  .flip-card__brand { font-size: 13px; }
  .flip-card__text { font-size: 11px; }
}

/* ================================================================
   SERVICES COLLAGE — grid 3×2 con hover naranja
   ================================================================ */
.svc-collage {
  background: var(--c-dark);
}
.svc-collage__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.svc-card {
  display: flex;
  flex-direction: column;
  padding: 48px 40px;
  border: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  color: #fff;
  background: var(--c-dark);
  transition: background .35s ease;
  min-height: 300px;
}
.svc-card:hover { background: var(--c-accent); }
.svc-card__num {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,.35);
  margin-bottom: 24px;
}
.svc-card__name {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}
.svc-card__desc {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 28px;
  transition: color .35s ease;
}
.svc-card:hover .svc-card__desc { color: rgba(255,255,255,.85); }
.svc-card__arrow {
  font-size: 22px;
  color: var(--c-accent);
  display: inline-block;
  transition: color .35s ease, transform .35s ease;
}
.svc-card:hover .svc-card__arrow {
  color: #fff;
  transform: translateX(8px);
}
@media (max-width: 1024px) {
  .svc-collage__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .svc-collage__grid { grid-template-columns: 1fr; }
  .svc-card { min-height: auto; padding: 36px 24px; }
}

/* ================================================================
   SERVICES TABLE — sección oscura tipo lista (no acordeón)
   ================================================================ */
.services-list {
  background: var(--c-accent);
  color: #fff;
  padding: var(--section-py) 0;
}
.services-list--body {
  background: var(--c-dark);
  padding-top: 0;
  padding-bottom: 0;
}
.services-list--body > .container {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
}
.services-list--body .svc-row {
  padding-left: 24px;
  padding-right: 24px;
}
/* Filas alternas blancas (Social Media 02, CRM 04, Agentes IA 06) */
.svc-row--light {
  background: #fff;
}
.svc-row--light .svc-num { color: var(--c-dark-border); }
.svc-row--light .svc-name { color: var(--c-dark); }
.svc-row--light .svc-desc { color: var(--c-dark); }
.svc-row--light .svc-arrow { border-color: rgba(0,0,0,.15); color: var(--c-dark); }
.svc-row--light:hover { opacity: 1; background: var(--c-bg2); }
.services-list__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.services-list__headline {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  max-width: 700px;
  color: #fff;
  letter-spacing: -2.5px;
  line-height: 1.05;
  margin: 0 0 50px;
  max-width: 780px;
}
.services-table { border-top: 1px solid rgba(255,255,255,.1); }
.svc-row {
  display: grid;
  grid-template-columns: 70px 1fr 1fr 60px;
  gap: 40px;
  align-items: center;
  padding: 38px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  text-decoration: none;
  transition: opacity .25s;
}
.svc-row:hover { opacity: .75; }
.svc-num {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.28);
}
.svc-name {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.2vw, 29px);
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
.svc-desc {
  font-size: 15px;
  color: var(--c-dark-text);
  line-height: 1.65;
  margin: 0;
}
.svc-arrow {
  width: 46px; height: 46px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 18px;
  transition: all .3s;
  justify-self: end;
  flex-shrink: 0;
}
.svc-row:hover .svc-arrow {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}

/* ================================================================
   DIAGONAL MARQUEE BANDS
   ================================================================ */
.diag-marquee-wrap {
  position: relative;
  overflow: hidden;
  height: 280px;
  background: var(--c-bg2);
}
.diag-band {
  position: absolute;
  left: -8%;
  width: 116%;
  overflow: hidden;
  padding: 22px 0;
}
.diag-band--dark   { background: #111111; z-index: 2; top: 38%;  transform: rotate(-4deg); }
.diag-band--orange { background: var(--c-accent); z-index: 1; top: 58%; transform: rotate(4deg); }
.diag-track {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  animation: marquee-scroll 22s linear infinite;
}
.diag-band--orange .diag-track { animation-direction: reverse; }
.diag-track span {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  margin-right: 16px;
}

/* ================================================================
   SERVICIOS (cards version — legacy, mantenido por compatibilidad)
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.service-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 100%;
  height: 3px;
  background: var(--c-accent);
  transition: right .4s ease;
}
.service-card:hover {
  border-color: rgba(255,102,0,.3);
  box-shadow: 0 12px 40px rgba(255,102,0,.08);
  transform: translateY(-5px);
}
.service-card:hover::before { right: 0; }
.service-card__num {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.service-card__icon {
  width: 56px; height: 56px;
  background: var(--c-bg2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 24px;
  transition: background .3s;
}
.service-card:hover .service-card__icon { background: rgba(255,102,0,.12); }
.service-card h3 { font-size: 21px; margin-bottom: 10px; color: var(--c-title); }
.service-card p { font-size: 15px; color: var(--c-meta); line-height: 1.6; margin-bottom: 24px; }
.service-card__link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .3s;
}
.service-card__link::after { content: '→'; }
.service-card__link:hover { color: var(--c-hover); gap: 10px; }

/* ================================================================
   ESTADÍSTICAS
   ================================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.stat {
  text-align: center;
  padding: 40px 20px;
}
.stat__num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 10px;
}
.stat__label {
  font-size: 16px;
  color: var(--c-text);
}
.stat + .stat {
  border-left: 1px solid var(--c-border);
}

/* ================================================================
   TESTIMONIOS (videos)
   ================================================================ */
.testimonials-section { background: var(--c-bg); }
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 50px;
}
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--c-dark);
}
/* Formato REEL vertical (9:16) */
.videos-grid--reel {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.videos-grid--reel .video-wrap {
  padding-bottom: 177.78%;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ================================================================
   TARJETA QUOTE (naranja)
   ================================================================ */
.quote-section { background: var(--c-bg2); }
.quote-card {
  background: var(--c-accent);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: 380px;
}
.quote-card__body {
  padding: 60px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quote-card__label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.quote-card__text {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 32px;
}
.quote-card__author { font-size: 15px; color: rgba(255,255,255,.85); }
.quote-card__author strong { display: block; color: #fff; font-size: 17px; }
.quote-card__img { position: relative; overflow: hidden; }
.quote-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ================================================================
   PARTNERS CERTIFICADOS
   ================================================================ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: 50px;
}
.partner-card {
  background: transparent;
  border: none;
  border-radius: var(--r-card);
  padding: 24px 16px;
  text-align: center;
  transition: transform .3s ease;
}
.partner-card:hover { transform: translateY(-4px); }
.partner-logo-wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.partner-logo-wrap img { height: 64px; width: auto; max-width: 180px; object-fit: contain; }
.partner-logo-wrap img[alt="Udemy"],
.partner-logo-wrap img[alt="Platzi"] { height: 44px; }
.partner-logo-wrap img[alt="Kommo"] { height: 29px; }
.partner-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  color: var(--c-accent);
  background: rgba(255,102,0,.1);
  border-radius: 30px;
  padding: 4px 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Partner logo SVG fallbacks */
.partner-logo-hubspot  { color: #FF7A59; font-size: 36px; font-weight: 700; font-family: var(--font-heading); }
.partner-logo-bitrix   { color: #0073CC; font-size: 30px; font-weight: 700; font-family: var(--font-heading); }
.partner-logo-kommo    { color: #8E4FE8; font-size: 30px; font-weight: 700; font-family: var(--font-heading); }
.partner-logo-manychat { color: #0084FF; font-size: 30px; font-weight: 700; font-family: var(--font-heading); }

/* ================================================================
   MARCAS QUE CONFÍAN
   ================================================================ */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 50px;
}
.brand-slot {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 24px 20px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  filter: grayscale(100%) opacity(.55);
}
.brand-slot:hover {
  filter: grayscale(0%) opacity(1);
  border-color: var(--c-accent);
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(234,139,89,.15);
}
.brand-slot img { width: 100%; height: 60px; object-fit: contain; display: block; }
.brand-name {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-meta);
  text-align: center;
  letter-spacing: .5px;
}

/* ================================================================
   CTA MASCOTA PILL
   ================================================================ */
.cta-mascota {
  background: var(--c-accent);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-mascota__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.cta-mascota__text {
  flex: 1;
  padding: 60px 0;
  text-align: left;
}
.cta-mascota__img {
  display: block;
  height: 280px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  align-self: flex-end;
}
.cta-mascota h2 {
  color: #fff;
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -1px;
  margin-bottom: 32px;
}
.cta-mascota p { display: none; }
@media (max-width: 768px) {
  .cta-mascota__inner { flex-direction: column; align-items: center; text-align: center; }
  .cta-mascota__text { padding: 50px 0 0; text-align: center; }
  .cta-mascota__img { height: 180px; align-self: center; }
}

/* Variante simple: h2 + botón al mismo nivel, sin imagen mascota */
.cta-mascota--simple .cta-mascota__inner {
  align-items: center;
  justify-content: space-between;
  padding: var(--section-py) 0;
  gap: 48px;
}
.cta-mascota--simple .cta-mascota__inner h2 {
  margin-bottom: 0;
  flex: 1;
  text-align: left;
}

/* CTA mascota button — mismo estilo que hero */
.cta-mascota .btn--white {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.cta-mascota .btn--white:hover {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.8);
}

/* Nosotros hero CTA — mismo estilo que hero home */
.svc-hero__cta .btn--outline-white {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.svc-hero__cta .btn--outline-white:hover {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.8);
}
.svc-hero__cta .btn--ghost-white {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.svc-hero__cta .btn--ghost-white:hover {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.8);
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--c-dark);
  border-top: 1px solid var(--c-dark-border);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding: 80px 0 50px;
}
.footer-col__logo {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: inline-block;
}
.footer-col__logo span { color: var(--c-accent); }
.footer-col p { font-size: 15px; color: var(--c-dark-text); line-height: 1.7; margin-bottom: 0; }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 22px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 15px; color: var(--c-dark-text); transition: color .3s; }
.footer-col ul li a:hover { color: var(--c-accent); }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px;
  background: var(--c-dark2);
  border: 1px solid var(--c-dark-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-dark-text);
  font-size: 16px;
  text-decoration: none;
  transition: all .3s;
}
.footer-social a:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--c-dark-border);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 14px; color: var(--c-dark-meta); margin: 0; }
.footer-bottom a { color: var(--c-dark-meta); }
.footer-bottom a:hover { color: var(--c-accent); }

/* ================================================================
   PAGE HERO (páginas internas)
   ================================================================ */
.page-hero {
  background: var(--c-dark);
  padding: calc(var(--header-h) + 60px) 0 70px;
  text-align: center;
  border-bottom: 1px solid var(--c-dark-border);
}
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p  { color: var(--c-dark-text); font-size: 18px; max-width: 600px; margin: 0 auto; }
.page-hero .breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; list-style: none;
  font-size: 13px; color: var(--c-dark-meta);
  margin-bottom: 20px;
}
.page-hero .breadcrumb a { color: var(--c-dark-meta); }
.page-hero .breadcrumb a:hover { color: var(--c-accent); }
.page-hero .breadcrumb li + li::before { content: '/'; margin-right: 8px; }

/* ================================================================
   PÁGINA DE SERVICIO
   ================================================================ */
.service-page { padding: 80px 0; }
.service-page__cover {
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: 60px;
  aspect-ratio: 21/9;
  max-height: 480px;
}
.service-page__cover img { width: 100%; height: 100%; object-fit: cover; }
.service-page__body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}
.service-page__main h2 { font-size: 32px; margin: 2em 0 .8em; }
.service-page__main h2:first-child { margin-top: 0; }
.service-page__main p { color: var(--c-text); font-size: 16px; line-height: 1.75; }
.service-page__main ul { margin-bottom: 1.4em; }
.service-page__main li { margin-bottom: .6em; color: var(--c-text); }

.service-sidebar-box {
  background: var(--c-dark);
  border-radius: var(--r-card);
  padding: 40px 36px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.service-sidebar-box h3 { color: #fff; font-size: 22px; margin-bottom: 12px; }
.service-sidebar-box p  { color: var(--c-dark-text); font-size: 15px; margin-bottom: 24px; }
.service-sidebar-box .btn { width: 100%; }
.service-phone {
  display: flex; align-items: center; gap: 10px;
  margin-top: 20px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.service-phone::before { content: '📞'; font-size: 18px; }

/* ================================================================
   BLOQUES DE SERVICIO (data-driven, mismo lenguaje visual del home)
   ================================================================ */
.svc-block { overflow: hidden; }

/* Intro */
.svc-intro {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 60px;
  align-items: center;
}
.svc-intro__text h2 { margin-bottom: 20px; }
.svc-intro__text p { color: var(--c-text); font-size: 17px; line-height: 1.75; margin-bottom: 32px; }
.svc-intro__img {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.svc-intro__img img { width: 100%; height: 100%; object-fit: cover; }

/* Checklist (items con título + descripción) */
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 50px;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.check-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checklist-item div { color: var(--c-text); font-size: 15.5px; line-height: 1.65; }
.checklist-item strong { color: var(--c-title); }

/* Why-list (línea simple con check) */
.why-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; max-width: 800px; }
.why-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 16px; color: var(--c-text); margin: 0; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.team-member {
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.team-member__icon { font-size: 36px; }
.team-member__role { font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--c-title); }

/* Team con foto (página Nosotros) */
.team-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-photo-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.team-photo-card__img {
  width: 70%;
  margin: 0 auto;
  aspect-ratio: 1/1;
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--c-bg2);
}
.team-photo-card__img img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-card__name { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--c-title); }
.team-photo-card__role { font-size: 14px; color: var(--c-accent); font-weight: 600; }
@media (min-width: 769px) {
  .team-photo-grid .team-photo-card:last-child { grid-column: 2; }
}

/* PDF CTA cards (página Nosotros) */
.pdf-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.pdf-cta-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 32px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--r-card);
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  text-decoration: none;
  color: var(--c-dark);
  transition: box-shadow .25s, transform .25s;
}
.pdf-cta-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
  transform: translateY(-3px);
  color: var(--c-dark);
}
.pdf-cta-card__icon { color: var(--c-accent); }
.pdf-cta-card__body h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: var(--c-title); }
.pdf-cta-card__body p { font-size: 15px; color: var(--c-meta); margin: 0; line-height: 1.6; }
.pdf-cta-card__btn {
  display: inline-block;
  margin-top: auto;
  font-weight: 700;
  font-size: 14px;
  color: var(--c-accent);
  letter-spacing: .5px;
}
@media (max-width: 680px) {
  .pdf-cta-grid { grid-template-columns: 1fr; }
}

/* Image block con caption */
.img-block { border-radius: var(--r-card); overflow: hidden; }
.img-block img { width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.img-block__caption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--c-meta);
  font-style: italic;
}

/* Stats strip (reusa hero__stats-grid sobre fondo oscuro independiente) */
.stats-strip { background: #111111; padding: 60px 0; }
.stats-strip__grid { background: transparent; border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-card); }

/* ================================================================
   BOTÓN GHOST BLANCO (variante secundaria sobre fondos naranjas)
   ================================================================ */
.btn--ghost-white {
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.35);
}
.btn--ghost-white:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn--outline {
  background: transparent;
  color: var(--c-accent);
  border: 2px solid var(--c-accent);
}
.btn--outline:hover { background: var(--c-accent); color: #fff; }

/* ================================================================
   HERO DE PÁGINAS DE SERVICIO / PORTAFOLIO (estética home)
   ================================================================ */
.svc-hero {
  position: relative;
  background: var(--c-accent);
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.svc-hero .hero-circles span { border-color: rgba(255,255,255,.12); }
.svc-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 80px;
  padding-bottom: 80px;
  width: 100%;
}
.svc-hero__bread {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.svc-hero__bread a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
.svc-hero__bread a:hover { color: #fff; }
.svc-hero__num {
  font-size: 100px;
  font-weight: 900;
  color: rgba(255,255,255,.12);
  line-height: 1;
  margin-bottom: -20px;
  letter-spacing: -4px;
  user-select: none;
}
.svc-hero__cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.pf-pill {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.svc-hero__title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 0 0 20px;
  max-width: 820px;
}
.svc-hero__tagline {
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255,255,255,.82);
  margin: 0 0 40px;
  max-width: 600px;
  line-height: 1.5;
}
.svc-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Intro row (texto + imagen) */
.svc-intro-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.svc-intro-row__text .section-badge { justify-content: flex-start; }
.svc-intro-row__text h2 { margin-top: 16px; }
.svc-intro-row__text p { color: var(--c-text); margin-bottom: 32px; line-height: 1.75; font-size: 17px; }
.svc-intro-row__img img {
  width: 100%;
  border-radius: var(--r-card);
  object-fit: cover;
  max-height: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
}
@media (max-width: 900px) {
  .svc-hero__num { font-size: 60px; }
  .svc-intro-row { grid-template-columns: 1fr; gap: 40px; }
  .svc-intro-row__img { order: -1; }
}

/* ================================================================
   BLOG — SINGLE POST
   ================================================================ */
.post-hero {
  background: var(--c-dark);
  padding: calc(var(--header-h) + 50px) 0 60px;
}
.post-hero__bread {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 24px;
}
.post-hero__bread a { color: rgba(255,255,255,.6); text-decoration: none; }
.post-hero__bread a:hover { color: #fff; }
.post-cat-badge {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  text-decoration: none;
  margin-bottom: 20px;
  transition: background .2s;
}
.post-cat-badge:hover { background: #d4784a; }
.post-hero__title {
  font-size: clamp(30px, 4.5vw, 60px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0 0 32px;
  max-width: 900px;
}
.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.6);
  font-size: 14px;
  flex-wrap: wrap;
}
.post-hero__author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.8);
}
.post-hero__author img { border-radius: 50%; object-fit: cover; }
.post-hero__dot { color: rgba(255,255,255,.25); font-size: 18px; }

.post-thumb-wrap { background: var(--c-dark); padding: 0 0 60px; }
.post-thumb-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--r-card);
  display: block;
}

.post-body { max-width: 780px; margin: 0 auto; }
.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--c-text);
}
.post-content h2 { font-size: 28px; font-weight: 700; margin: 48px 0 16px; color: var(--c-title); }
.post-content h3 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; color: var(--c-title); }
.post-content p { margin-bottom: 24px; }
.post-content img { max-width: 100%; border-radius: 12px; margin: 24px 0; }
.post-content ul, .post-content ol { padding-left: 28px; margin-bottom: 24px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  border-left: 4px solid var(--c-accent);
  margin: 32px 0;
  padding: 20px 28px;
  background: rgba(234,139,89,.06);
  border-radius: 0 12px 12px 0;
  font-size: 19px;
  font-style: italic;
  color: var(--c-dark);
}
.post-content a { color: var(--c-accent); text-decoration: underline; }

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 40px 0; }
.post-tag {
  background: var(--c-light);
  color: var(--c-text);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.post-tag:hover { background: var(--c-accent); color: #fff; }

.post-author-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--c-light);
  border-radius: var(--r-card);
  padding: 28px;
  margin-top: 48px;
}
.post-author-card img { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.post-author-card__label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--c-accent); font-weight: 700; display: block; margin-bottom: 4px; }
.post-author-card__body strong { font-size: 18px; color: var(--c-title); display: block; margin-bottom: 8px; }
.post-author-card__body p { font-size: 14px; color: var(--c-text); margin: 0; }

/* ================================================================
   PORTAFOLIO — ARCHIVE
   ================================================================ */
.pf-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 52px;
}
.pf-filter {
  background: transparent;
  border: 2px solid var(--c-dark-border, rgba(0,0,0,.12));
  color: var(--c-text);
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.pf-filter:hover, .pf-filter.is-active {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pf-card { border-radius: var(--r-card); overflow: hidden; position: relative; }
.pf-card__link { display: block; text-decoration: none; position: relative; }
.pf-card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--c-light); }
.pf-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.pf-card__link:hover .pf-card__img img { transform: scale(1.06); }
.pf-card__img--placeholder { background: linear-gradient(135deg, var(--c-accent) 0%, #d4784a 100%); }
.pf-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity .35s ease;
}
.pf-card__link:hover .pf-card__overlay { opacity: 1; }
.pf-card__overlay-inner { padding: 28px; width: 100%; }
.pf-card__cat { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--c-accent); font-weight: 700; margin-bottom: 8px; }
.pf-card__title { font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.pf-card__client { font-size: 14px; color: rgba(255,255,255,.7); display: block; margin-bottom: 14px; }
.pf-card__cta { font-size: 14px; font-weight: 700; color: var(--c-accent); }

@media (max-width: 900px) { .pf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pf-grid { grid-template-columns: 1fr; } }

/* ================================================================
   PORTAFOLIO — SINGLE
   ================================================================ */
.pf-featured-img { padding: 0 0 60px; background: var(--c-dark); }
.pf-featured-img__el { width: 100%; max-height: 580px; object-fit: cover; border-radius: var(--r-card); display: block; }

.pf-single-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}
.pf-single-content { font-size: 17px; line-height: 1.8; color: var(--c-text); }
.pf-single-content h2 { font-size: 26px; font-weight: 700; color: var(--c-title); margin: 36px 0 12px; }
.pf-single-content p { margin-bottom: 20px; }
.pf-single-content img { max-width: 100%; border-radius: 12px; margin: 20px 0; }

.pf-detail-box {
  background: var(--c-dark);
  border-radius: var(--r-card);
  padding: 36px 28px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.pf-detail-box__title {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 700;
  margin: 0 0 28px;
}
.pf-detail-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.pf-detail-row:last-of-type { border-bottom: none; }
.pf-detail-row__label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.4); font-weight: 600; }
.pf-detail-row__value { color: rgba(255,255,255,.88); font-size: 15px; font-weight: 500; }
.pf-detail-box__ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.pf-detail-box__ctas .btn { text-align: center; justify-content: center; }

@media (max-width: 900px) {
  .pf-single-layout { grid-template-columns: 1fr; }
  .pf-detail-box { position: static; }
}

/* ================================================================
   PÁGINA CONTACTO
   ================================================================ */
.contact-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-accent);
  text-align: center;
  padding-top: var(--header-h);
}
.contact-hero__overlay { display: none; }
.contact-hero__content {
  position: relative;
  z-index: 2;
  padding: 90px 20px;
}
.contact-hero__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 18px;
}
.contact-hero__title {
  font-size: clamp(52px, 9vw, 100px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -2px;
  margin: 0;
  line-height: 1;
}

/* Dark section base */
.contact-dark-section { background: var(--c-dark); padding: 70px 0; }

/* White section (form + map) */
.contact-white-section { background: #fff; padding: 70px 0; }

/* Info boxes row */
.contact-info-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-info-box {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  transition: border-color .25s;
}
.contact-info-box:hover { border-color: var(--c-accent); }
.contact-info-box__icon { color: var(--c-accent); margin-bottom: 16px; display: flex; justify-content: center; }
.contact-info-box__title {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.contact-info-box__value,
a.contact-info-box__value {
  color: rgba(255,255,255,.8);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
a.contact-info-box__value:hover { color: #fff; }

/* Form + map grid */
.contact-form-section { border-top: 1px solid rgba(0,0,0,.07); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-col-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--c-dark);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 36px;
}
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-white-section .contact-form input,
.contact-white-section .contact-form textarea {
  width: 100%;
  padding: 18px 24px;
  background: #f5f5f5;
  color: var(--c-dark);
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 50px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s, background .2s;
  box-sizing: border-box;
  outline: none;
}
.contact-white-section .contact-form textarea {
  border-radius: 20px;
  resize: vertical;
  min-height: 150px;
}
.contact-white-section .contact-form input::placeholder,
.contact-white-section .contact-form textarea::placeholder { color: rgba(0,0,0,.4); }
.contact-white-section .contact-form input:focus,
.contact-white-section .contact-form textarea:focus {
  border-color: var(--c-accent);
  background: #fff;
  color: var(--c-dark);
}
.contact-dark-section .contact-form input,
.contact-dark-section .contact-form textarea {
  width: 100%;
  padding: 18px 24px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  color: #fff;
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .2s, background .2s;
  box-sizing: border-box;
}
.contact-dark-section .contact-form textarea {
  border-radius: 20px;
  resize: vertical;
  min-height: 150px;
}
.contact-dark-section .contact-form input::placeholder,
.contact-dark-section .contact-form textarea::placeholder { color: rgba(255,255,255,.65); }
/* autofill override to prevent white browser background */
.contact-dark-section .contact-form input:-webkit-autofill,
.contact-dark-section .contact-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px #595757 inset !important;
  -webkit-text-fill-color: #fff !important;
}
.contact-dark-section .contact-form input:focus,
.contact-dark-section .contact-form textarea:focus {
  border-color: var(--c-accent);
  background: rgba(255,255,255,.09);
  color: #fff;
}
.contact-form__btn {
  align-self: flex-start;
  background: var(--c-accent);
  color: #fff;
  border: none;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-heading);
  transition: background .2s, transform .2s;
  margin-top: 8px;
}
.contact-form__btn:hover { background: #d4784a; transform: translateY(-2px); }
.contact-notice {
  padding: 16px 22px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 15px;
}
.contact-notice--success { background: rgba(37,211,102,.12); color: #25D366; border: 1px solid rgba(37,211,102,.25); }
.contact-notice--error   { background: rgba(239,68,68,.12);  color: #f87171;  border: 1px solid rgba(239,68,68,.25); }
.contact-map iframe { width: 100%; height: 460px; border-radius: 16px; border: none; filter: grayscale(30%); }

/* CTA final */
.contact-cta {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?w=1920&q=80') center/cover no-repeat;
  text-align: center;
}
.contact-cta__overlay { position: absolute; inset: 0; background: rgba(78,77,77,.82); }
.contact-cta__content { position: relative; z-index: 2; padding: 90px 20px; }
.contact-cta__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 18px;
}
.contact-cta__title {
  font-size: clamp(32px, 5.5vw, 70px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin: 0 0 36px;
  line-height: 1.05;
}
.contact-cta__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.8);
  font-size: 16px;
}
.contact-cta__row a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color .2s;
  display: flex;
  align-items: center;
}
.contact-cta__row a:hover { color: var(--c-accent); }
.contact-cta__sep { color: rgba(255,255,255,.25); font-size: 20px; }

/* Responsive */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-info-boxes { grid-template-columns: 1fr; gap: 16px; }
  .contact-map iframe { height: 320px; }
}

/* ================================================================
   BLOG / ARCHIVE
   ================================================================ */
/* El hero ya maneja el espacio del header; blog-layout no necesita margin-top */
.blog-layout {
  padding: 80px 0;
}
/* Cuando no hay hero (ej. blog como front page), el header fixed lo cubre */
.blog-layout--no-hero {
  margin-top: var(--header-h);
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
}
.blog-grid--full { grid-template-columns: 1fr; }
.posts-list { display: flex; flex-direction: column; gap: 50px; }

/* ── Blog cards (grid de 3 columnas en relacionados) ─────── */
.blog-grid.related-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: #fff;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.12);
}
.blog-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--c-light);
  flex-shrink: 0;
}
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; display: block; }
.blog-card:hover .blog-card__thumb img { transform: scale(1.05); }
.blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--c-text);
  opacity: .7;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.blog-card__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-accent);
}
.blog-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-title);
  line-height: 1.35;
  margin: 0 0 10px;
}
.blog-card__title a { color: inherit; text-decoration: none; transition: color .2s; }
.blog-card__title a:hover { color: var(--c-accent); }
.blog-card__excerpt {
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.post-card { }
.post-card__thumb {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 24px;
  background: var(--c-bg2);
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--c-meta);
  margin-bottom: 12px;
}
.post-cat {
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 600;
  color: var(--c-accent);
  background: rgba(255,102,0,.1);
  padding: 4px 12px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}
.post-card h2 { font-size: 26px; margin-bottom: 10px; }
.post-card h2 a { color: var(--c-title); transition: color .3s; }
.post-card h2 a:hover { color: var(--c-accent); }
.post-card .excerpt { color: var(--c-meta); margin-bottom: 20px; }
.read-more {
  font-family: var(--font-heading);
  font-size: 14px; font-weight: 600;
  color: var(--c-accent);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .3s;
}
.read-more::after { content: '→'; }
.read-more:hover { color: var(--c-hover); gap: 10px; }

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 60px;
}
.pagination a, .pagination .page-numbers {
  font-family: var(--font-heading);
  font-size: 15px; font-weight: 500;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  text-decoration: none;
  transition: all .3s;
}
.pagination a:hover, .pagination .current {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar { display: flex; flex-direction: column; gap: 36px; }
.widget {
  background: var(--c-bg2);
  border-radius: var(--r-card);
  padding: 28px;
}
.widget-title {
  font-family: var(--font-heading);
  font-size: 17px; font-weight: 600;
  color: var(--c-title);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--c-accent);
}
.widget ul { list-style: none; }
.widget ul li { border-bottom: 1px solid var(--c-border); padding: 8px 0; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { font-size: 15px; color: var(--c-text); transition: color .3s; }
.widget ul li a:hover { color: var(--c-accent); }
.widget_search input { border-radius: var(--r-btn); padding: 12px 20px; }

/* ================================================================
   SINGLE POST
   ================================================================ */
.single-layout {
  padding: 80px 0;
  margin-top: var(--header-h);
}
.single-content { max-width: 780px; }
.single-header { margin-bottom: 40px; }
.single-thumb {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 16/7;
  margin-bottom: 50px;
}
.single-thumb img { width: 100%; height: 100%; object-fit: cover; }
.entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--c-text);
}
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 { font-size: 28px; margin-top: 2em; }
.entry-content h3 { font-size: 22px; margin-top: 1.8em; }
.entry-content ul, .entry-content ol { margin-left: 1.4em; margin-bottom: 1.4em; }
.entry-content blockquote {
  border-left: 4px solid var(--c-accent);
  padding: 1.2em 1.6em;
  background: var(--c-bg2);
  border-radius: 0 8px 8px 0;
  color: var(--c-text);
  font-style: italic;
}

/* ================================================================
   COMENTARIOS
   ================================================================ */
.comments-wrap { margin-top: 60px; padding-top: 60px; border-top: 1px solid var(--c-border); }
.comments-title { font-size: 28px; margin-bottom: 30px; }
.comment-list { list-style: none; margin: 0 0 50px; }
.comment-item { padding: 24px 0; border-bottom: 1px solid var(--c-border); }
.comment-header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.comment-header img { border-radius: 50%; }
.comment-author-name { font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: var(--c-title); }
.comment-date { font-size: 13px; color: var(--c-meta); }
.comment-text { font-size: 15px; color: var(--c-text); line-height: 1.7; }
.comment-form-wrap h3 { font-size: 24px; margin-bottom: 28px; }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.comment-form .full-row { grid-column: 1 / -1; }
.comment-form input, .comment-form textarea {
  font-family: var(--font-body);
  font-size: 15px; width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-input);
  background: var(--c-bg);
  color: var(--c-text); outline: none;
  transition: border-color .3s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--c-accent); }
.comment-form textarea { min-height: 130px; resize: vertical; }

/* ================================================================
   404
   ================================================================ */
.page-404 {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 80px 20px;
  margin-top: var(--header-h);
  background: var(--c-dark);
}
.page-404__code {
  font-family: var(--font-heading);
  font-size: clamp(120px, 20vw, 220px);
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 20px;
}
.page-404 h2 { color: #fff; font-size: 32px; margin-bottom: 14px; }
.page-404 p  { color: var(--c-dark-text); margin-bottom: 36px; }

/* ================================================================
   FORMULARIOS Y CONTACTO
   ================================================================ */
input[type="text"], input[type="email"], input[type="tel"],
input[type="url"], input[type="search"], textarea, select {
  font-family: var(--font-body);
  font-size: 15px; width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-input);
  background: var(--c-bg);
  color: var(--c-text); outline: none;
  transition: border-color .3s;
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--c-accent); }
textarea { min-height: 140px; resize: vertical; }

/* ================================================================
   SEARCH
   ================================================================ */
.search-layout {
  padding: 80px 0;
  margin-top: var(--header-h);
}
.search-bar { display: flex; gap: 10px; max-width: 580px; margin-bottom: 50px; }
.search-bar input { flex: 1; border-radius: var(--r-btn); padding: 14px 22px; }
.search-bar button {
  padding: 14px 30px; background: var(--c-accent); color: #fff;
  border: none; border-radius: var(--r-btn); cursor: pointer;
  font-family: var(--font-heading); font-weight: 500; font-size: 15px;
  transition: background .3s;
}
.search-bar button:hover { background: var(--c-hover); }

/* ================================================================
   MARQUEE KEYFRAME (usado por .ticker-big__track y .diag-track)
   ================================================================ */
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================================
   FOOTER EXTRA STYLES
   ================================================================ */
.footer-bottom-wrap { border-top: 1px solid var(--c-dark-border); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1200px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  :root { --section-py: 70px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid.related-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid .sidebar { display: none; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat { border-left: none; }
  .stats-grid .stat:nth-child(odd) { border-right: 1px solid var(--c-border); }
  .quote-card { grid-template-columns: 1fr; }
  .quote-card__img { height: 300px; }
  .service-page__body { grid-template-columns: 1fr; }
  .service-sidebar-box { position: static; }
  .hero__title { font-size: clamp(30px, 5.5vw, 56px); }
  .hero__stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__stat:nth-child(2) { border-right: none; }
  .hero__stat { border-bottom: 1px solid rgba(255,255,255,.08); }
  .about-top-row { grid-template-columns: 1fr; gap: 20px; }
  .about-photos-row { height: 360px; }
  .svc-row { grid-template-columns: 50px 1fr 60px; }
  .svc-desc { display: none; }
  .svc-intro { grid-template-columns: 1fr; gap: 30px; }
  .svc-intro__img { order: -1; }
  .checklist-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__stat-num { font-size: 36px; }
}
@media (max-width: 768px) {
  :root { --section-py: 55px; }
  .container { padding: 0 20px; }
  #menu-principal { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-top .footer-col:nth-child(2),
  .footer-top .footer-col:nth-child(3) { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .comment-form { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat { border-left: none; }
  .quote-card__body { padding: 40px 30px; }
  .hero__title { letter-spacing: -1px; font-size: clamp(30px, 8vw, 48px); }
  .hero__container { padding: 60px 20px; }
  .hero__stats-grid { grid-template-columns: 1fr 1fr; }
  .about-photos-row { grid-template-columns: 1fr 1fr; height: 300px; }
  .about-photo:nth-child(3) { display: none; }
  .diag-marquee-wrap { height: 220px; }
  .diag-band--dark   { transform: rotate(-6deg); }
  .diag-band--orange { transform: rotate(6deg); }
  .diag-track span { font-size: 22px; }

  /* Blog / single responsive */
  .blog-grid { grid-template-columns: 1fr; gap: 40px; }
  .blog-grid .sidebar { display: none; }
  .blog-grid.related-grid { grid-template-columns: 1fr; }
  .post-hero { padding: calc(var(--header-h) + 30px) 0 40px; }
  .post-hero__title { font-size: clamp(24px, 7vw, 40px); letter-spacing: -1px; }
  .post-hero__meta { gap: 8px; font-size: 13px; }
  .post-body { padding: 0; }
  .post-author-card { flex-direction: column; gap: 14px; }
  .post-author-card img { width: 60px; height: 60px; }

  /* Portafolio responsive */
  .pf-single-layout { grid-template-columns: 1fr; }
  .pf-detail-box { position: static; }

  /* Hero naranja responsive */
  .svc-hero { min-height: auto; }
  .svc-hero__inner { padding-top: 60px; padding-bottom: 60px; }
  .svc-hero__num { font-size: 60px; }
  .svc-hero__title { font-size: clamp(32px, 8vw, 52px); letter-spacing: -1px; }
  .svc-hero__tagline { font-size: 16px; }
  .svc-hero__cta { flex-direction: column; gap: 10px; }
  .svc-hero__cta .btn { width: 100%; text-align: center; justify-content: center; }

  /* Servicio intro row */
  .svc-intro-row { grid-template-columns: 1fr; gap: 36px; }
  .svc-intro-row__img { order: -1; }

  /* Team responsive */
  .team-photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  h1 { letter-spacing: -.5px; }
  .hero__stats-grid { grid-template-columns: 1fr 1fr; }
  .hero__stat { padding: 24px 20px; }
  .about-photos-row { grid-template-columns: 1fr; height: auto; }
  .about-photo { height: 220px !important; }
  .svc-row { grid-template-columns: 1fr 44px; }
  .svc-num { display: none; }

  /* Blog cards en móvil */
  .blog-grid.related-grid { grid-template-columns: 1fr; }
  .post-hero__meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .post-hero__dot { display: none; }
  .post-tags { gap: 6px; }

  /* Portafolio cards en móvil */
  .pf-grid { grid-template-columns: 1fr; }
  .pf-filters { gap: 8px; }
  .pf-filter { font-size: 13px; padding: 7px 16px; }

  /* Team en móvil */
  .team-photo-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ================================================================
   FLOATING WHATSAPP BUTTON
   ================================================================ */
.floating-wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none;
}
.floating-wa:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,.7); }
.floating-wa svg { width: 35px; height: 35px; fill: #fff; display: block; }

/* ================================================================
   HITOS — sección independiente (antes dentro del hero)
   ================================================================ */
.hitos-section {
  background: var(--c-dark);
}
.hitos-section .hero__stats-grid {
  border-top: 1px solid rgba(255,255,255,.1);
}
.hitos-section .hero__stat {
  text-align: center;
  justify-content: center;
}
.hitos-section .hero__stat-top {
  justify-content: center;
}

/* ================================================================
   NOSOTROS — CTA final blanco
   ================================================================ */
.nosotros-cta-final {
  text-align: center;
  padding: var(--section-py) 0;
}
.nosotros-cta-avatar {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 auto 28px;
  object-fit: contain;
}
.nosotros-cta-final h2 {
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .hitos-section .hero__stats-grid { grid-template-columns: 1fr 1fr; }
  .videos-grid--reel { grid-template-columns: 1fr; }
  .videos-grid--reel .video-wrap { padding-bottom: 177.78%; }
}

/* ================================================================
   OCULTAR BOTÓN SCROLL-TO-TOP DE PLUGINS
   ================================================================ */
#scroll-to-top,
#scrolltop,
#scrollTop,
#back-to-top,
#backtotop,
#scrollUp,
#scroll-up,
#totop,
#toTop,
#go-top,
#goTop,
#wpfront-scroll-top-container,
.scroll-to-top,
.scrolltop,
.scrollTop,
.back-to-top,
.backtotop,
.scrollup,
.scrollUp,
.to-the-top,
.to-top,
.toTop,
.go-top,
.goTop,
.ast-scroll-top,
.generate-back-to-top,
.neve-scroll,
.wpfront-scroll-top-container,
[id*="scroll-top"],
[id*="scrolltop"],
[id*="back-to-top"],
[id*="backtotop"],
[id*="totop"],
[id*="to-top"],
[class*="scroll-to-top"],
[class*="scrolltop"],
[class*="back-to-top"],
[class*="backtotop"],
[class*="totop"],
[class*="to-top"],
[class*="scroll_top"],
[id*="scroll_top"] {
  display: none !important;
}
