/*
 Theme Name: ARTIKKEL Child
 Theme URI:  https://www.artikkel.com.mx
 Description: Child theme de Kadence — Classic Editor global, galería 3–8 imágenes con drag&drop, detalles, columnas custom, Quick Edit, dashboard widget, checklist, auto-bootstrap, fix logos cliente responsive.
 Author:     ARTIKKEL S.A. de C.V.
 Author URI: https://www.artikkel.com.mx
 Template:   kadence
 Version:    1.5.0
 Text Domain: artikkel-child
 License:    Proprietary
*/

/* ==========================================================================
   VARIABLES
   ========================================================================== */
:root {
  --font:        'DM Sans', sans-serif;
  --black:       #1a1a1a;
  --white:       #ffffff;
  --gray-bg:     #f5f5f3;
  --border:      #e0e0e0;
  --section-pad: 140px;
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   BASE RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  margin: 0;
}

p { margin: 0; }

button { font-family: var(--font); }

/* ==========================================================================
   NAV
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 3rem;
}

.nav-logo {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 1rem;
  right: 3rem;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--black);
  text-decoration: none;
  line-height: 1;
}

.nav-links a:hover { text-decoration: underline; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active { opacity: 1; }

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
}

.hero-small-text {
  position: absolute;
  top: 5rem;
  left: 44%;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 200px;
  line-height: 1.5;
  z-index: 2;
}

.hero-title-block {
  position: absolute;
  bottom: 5rem;
  left: 3rem;
  max-width: 65%;
  z-index: 2;
}

.hero-title {
  font-family: var(--font);
  font-size: clamp(3.5rem, 7.5vw, 6.25rem);
  font-weight: 500;
  line-height: 1.0;
  color: var(--white);
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0;
}

.hero-caption {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.75rem;
}

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 3rem;
  display: flex;
  gap: 0.4rem;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s;
  padding: 0;
}

.hero-dot.active { background: var(--white); }

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro-section {
  padding: var(--section-pad) 3rem;
  background: var(--white);
}

.intro-text {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 400;
  max-width: 820px;
  line-height: 1.35;
  color: var(--black);
}

/* ==========================================================================
   SERVICIOS CON ICONOS
   ========================================================================== */
.services-icon-section {
  padding: 0 3rem var(--section-pad);
  background: var(--white);
}

.services-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.service-icon-item svg {
  width: 72px;
  height: 72px;
  display: block;
  margin-bottom: 1.5rem;
}

.service-icon-item h3 {
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.service-icon-item p {
  font-size: 0.875rem;
  font-weight: 300;
  color: #666;
  line-height: 1.65;
}

.service-link-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  margin-top: 1rem;
}

/* ==========================================================================
   PORTFOLIO PREVIEW
   ========================================================================== */
.portfolio-preview {
  padding: var(--section-pad) 3rem;
  background: var(--white);
}

.pp-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.pp-header h2 {
  font-size: 2rem;
  font-weight: 400;
  margin: 0;
}

.view-more {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--black);
}

/* ==========================================================================
   PORTFOLIO PREVIEW — Bento grid + overlay editorial
   ========================================================================== */

.pp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}

/* Tile destacado: 2 columnas × 2 filas */
.p-item--hero {
  grid-column: span 2;
  grid-row: span 2;
}

.pp-grid .p-item {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;          /* fallback mientras carga la imagen */
}

.pp-grid .p-item a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.pp-grid .p-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s cubic-bezier(0.33, 0.02, 0, 0.93);
}

.pp-grid .p-item:hover img,
.pp-grid .p-item:focus-within img {
  transform: scale(1.05);
}

/* --- Overlay editorial -------------------------------------------------- */
.p-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.45) 35%,
    rgba(0, 0, 0, 0) 65%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  color: #ffffff;
  pointer-events: none;
}

.pp-grid .p-item:hover .p-overlay,
.pp-grid .p-item:focus-within .p-overlay {
  opacity: 1;
}

/* Etiqueta de categoría */
.p-overlay-cat {
  display: block;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.6rem;
  transform: translateY(8px);
  transition: transform 0.45s cubic-bezier(0.33, 0.02, 0, 0.93) 0.05s;
}

/* Título del proyecto */
.p-overlay-title {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.6rem;
  color: #ffffff;
  letter-spacing: -0.01em;
  transform: translateY(8px);
  transition: transform 0.45s cubic-bezier(0.33, 0.02, 0, 0.93) 0.1s;
}

/* CTA "Ver proyecto" */
.p-overlay-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease 0.15s, transform 0.45s cubic-bezier(0.33, 0.02, 0, 0.93) 0.15s;
}

.pp-grid .p-item:hover .p-overlay-cat,
.pp-grid .p-item:focus-within .p-overlay-cat,
.pp-grid .p-item:hover .p-overlay-title,
.pp-grid .p-item:focus-within .p-overlay-title {
  transform: translateY(0);
}

.pp-grid .p-item:hover .p-overlay-cta,
.pp-grid .p-item:focus-within .p-overlay-cta {
  opacity: 1;
  transform: translateY(0);
}

/* --- Tile destacado: tipografía más grande y más padding -------------- */
.p-item--hero .p-overlay {
  padding: 2.75rem;
}

.p-item--hero .p-overlay-title {
  font-size: 1.85rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 90%;
}

.p-item--hero .p-overlay-cta {
  font-size: 11px;
}

/* ==========================================================================
   ACCORDION
   ========================================================================== */
.accordion-section-wrap {
  padding: var(--section-pad) 3rem;
  background: var(--white);
}

.accordion-section {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 4rem;
  align-items: start;
}

.accordion-intro {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  max-width: 320px;
  line-height: 1.35;
  color: var(--black);
}

.accordion-list { width: 100%; }

.accordion-item { border-bottom: 1px solid var(--border); }

.accordion-item:first-child { border-top: 1px solid var(--border); }

.accordion-header {
  display: flex;
  align-items: baseline;
  padding: 1.5rem 0;
  cursor: pointer;
  gap: 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.acc-num {
  font-size: 11px;
  color: #999;
  min-width: 24px;
  font-weight: 400;
}

.acc-title {
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  font-weight: 400;
  flex: 1;
  color: var(--black);
  font-family: var(--font);
}

.acc-arrow {
  font-size: 0.9rem;
  color: var(--black);
  margin-left: auto;
  transition: transform 0.3s var(--ease);
}

.accordion-item.active .acc-arrow { transform: rotate(45deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-body { max-height: 500px; }

.accordion-body p {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  padding: 0 0 1.5rem 2.5rem;
  margin: 0;
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats-section-wrap {
  padding: var(--section-pad) 3rem;
  background: var(--white);
}

.stats-section {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 4rem;
  align-items: start;
}

.stats-intro {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 400;
  max-width: 340px;
  line-height: 1.4;
  color: var(--black);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
}

.stat-number {
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  color: var(--black);
}

.stat-suffix {
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 300;
  margin-left: 0.1rem;
}

.stat-label {
  font-size: 12px;
  color: #999;
  font-weight: 300;
}

/* ==========================================================================
   BLOG / NEWS
   ========================================================================== */
.news-section-wrap {
  padding: var(--section-pad) 3rem;
  background: var(--gray-bg);
}

.news-section {
  display: grid;
  grid-template-columns: 25% 75%;
  gap: 3rem;
}

.news-title {
  font-size: 2rem;
  font-weight: 400;
  color: var(--black);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-img-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.news-img-wrap img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.news-card:hover .news-img-wrap img { transform: scale(1.04); }

.date-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--black);
  color: var(--white);
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.25rem;
  z-index: 1;
}

.date-day {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.date-month {
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-cat {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 0.4rem;
  display: block;
}

.news-card h4 {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--black);
  margin: 0;
}

/* ==========================================================================
   CLIENTES
   ========================================================================== */
.clientes-section {
  padding: var(--section-pad) 3rem;
  background: var(--white);
}

.clientes-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #999;
  margin-bottom: 3rem;
  text-align: center;
  display: block;
}

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.cliente-item {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  transition: background 0.2s;
}

.cliente-item:hover { background: #f9f9f9; }

.cliente-nombre {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  text-align: center;
  transition: color 0.2s;
}

.cliente-item:hover .cliente-nombre { color: var(--black); }

/* Logos cliente: contenidos por celda, altura uniforme, contain */
.cliente-logo {
    max-width: 150px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: grayscale(15%);
    opacity: 0.88;
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}
.cliente-item:hover .cliente-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.03);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 80px 3rem 40px;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

.footer-email {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--black);
  display: block;
  text-decoration: none;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.footer-email:hover { text-decoration: underline; }

.footer-desc {
  font-size: 12px;
  color: #999;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--black);
  margin-bottom: 1rem;
  display: block;
}

.footer-col p,
.footer-col a {
  font-size: 13px;
  color: var(--black);
  display: block;
  line-height: 2.2;
  text-decoration: none;
}

.footer-col a:hover { text-decoration: underline; }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: #999;
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-25px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal-left.visible {
  opacity: 1;
  transform: none;
}

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* ==========================================================================
   RESPONSIVE — max-width 768px
   ========================================================================== */
@media (max-width: 768px) {

  :root { --section-pad: 80px; }

  .nav-links { display: none; }

  .hero-title { font-size: clamp(2.5rem, 11vw, 4rem); line-height: 1.05; }

  .hero-title-block { left: 1.5rem; bottom: 4rem; max-width: 90%; }

  .hero-small-text { display: none; }

  .hero-dots { left: 1.5rem; }

  .intro-section,
  .services-icon-section,
  .portfolio-preview,
  .accordion-section-wrap,
  .stats-section-wrap,
  .news-section-wrap,
  .clientes-section {
    padding: var(--section-pad) 1.5rem;
  }

  .services-icon-grid { grid-template-columns: repeat(2, 1fr); }

  .accordion-section { grid-template-columns: 1fr; gap: 2rem; }

  .stats-section { grid-template-columns: 1fr; gap: 2rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .news-section { grid-template-columns: 1fr; gap: 2rem; }

  .news-grid { grid-template-columns: 1fr; }

  .pp-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
    gap: 12px;
  }

  .p-item--hero {
    grid-column: span 2;
    grid-row: span 2;
  }

  .p-item--hero .p-overlay {
    padding: 1.75rem;
  }

  .p-item--hero .p-overlay-title {
    font-size: 1.4rem;
  }

  .p-overlay       { padding: 1.25rem; }
  .p-overlay-title { font-size: 1rem; }
  .p-overlay-cat   { font-size: 9px; letter-spacing: 0.18em; }

  .clientes-grid { grid-template-columns: repeat(2, 1fr); }
  .cliente-item { min-height: 110px; padding: 1.25rem 1rem; }
  .cliente-logo { max-width: 110px; max-height: 56px; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .site-footer { padding: 60px 1.5rem 30px; }

  .footer-bottom { flex-direction: column; gap: 0.5rem; }

  /* Nosotros page */
  .nosotros-grid  { grid-template-columns: 1fr !important; gap: 3rem !important; }
  .equipo-grid    { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .quote-section  { padding: 60px 1.5rem !important; }
  .nosotros-section,
  .equipo-section { padding: 60px 1.5rem !important; }
}

/* ==========================================================================
   TIMELINE — página Nuestra Historia
   ========================================================================== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

/* Línea vertical izquierda */
.timeline::before {
  content: '';
  position: absolute;
  top: 0.6rem;
  left: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.t-item {
  position: relative;
  padding: 0 0 3rem 2rem;
}

/* Punto en la línea */
.t-item::before {
  content: '';
  position: absolute;
  left: -0.3rem;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  background: var(--border);
  transition: background 0.3s;
}

.t-item.active::before,
.t-item:hover::before {
  background: var(--black);
}

.t-year {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--black);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.t-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #999;
  margin-bottom: 0.75rem;
}

.t-text {
  font-size: 0.9rem;
  font-weight: 300;
  color: #555;
  line-height: 1.7;
  max-width: 420px;
}

/* Estado activo: año en negro puro, label con color */
.t-item.active .t-year  { color: var(--black); }
.t-item.active .t-label { color: var(--black); }
.t-item.active .t-text  { color: #333; }


/* ==========================================================================
   OVERRIDE KADENCE — Accordion
   Neutraliza los estilos azules / de foco que Kadence aplica a botones
   y elementos interactivos dentro del accordion.
   ========================================================================== */

/* Estado activo y hover — forzar blanco sin sombras ni azules */
.accordion-item.active .accordion-header,
.accordion-item.active,
.accordion-header:focus,
.accordion-header:hover,
.accordion-item .accordion-header[aria-expanded="true"] {
  background:       #ffffff !important;
  background-color: #ffffff !important;
  color:            #1a1a1a !important;
  border-color:     #e0e0e0 !important;
  box-shadow:       none    !important;
  outline:          none    !important;
}

/* Texto del título activo */
.accordion-item.active .acc-title {
  color: #1a1a1a !important;
}

/* Número del ítem activo */
.accordion-item.active .acc-num {
  color: #999999 !important;
}

/* Evitar accent-color azul heredado */
.accordion-item * {
  accent-color: unset;
}

/* Cursor pointer en el header (ahora es div, no button) */
.accordion-header {
  cursor: pointer !important;
  user-select: none;
}

/* Anillo de foco accesible con teclado — reemplaza el outline azul de Kadence */
.accordion-header:focus-visible {
  outline: 2px solid #1a1a1a !important;
  outline-offset: 2px !important;
}

/* Neutralizar estilos propios de bloques Kadence Accordion si existen */
.wp-block-kadence-accordion .kb-accordion-panel-inner,
.kb-accordion-head,
.kb-accordion-head button,
.kb-accordion-title {
  background:       transparent !important;
  background-color: transparent !important;
  box-shadow:       none        !important;
}

/* ==========================================================================
   OVERRIDE KADENCE — Header / Nav residual
   Oculta cualquier header que Kadence inyecte y que no sea el nuestro.
   Evita el espacio blanco sobre el hero cuando ambos headers coexisten.
   ========================================================================== */

/* Ocultar header de Kadence si coexiste con el nuestro.
   Nuestro header tiene data-artikkel-header="true", los de Kadence no. */
.site-header:not([data-artikkel-header]),
#masthead:not([data-artikkel-header]) {
  display: none !important;
}

/* Admin bar de WordPress: compensar su altura cuando está visible */
.admin-bar .artikkel-nav {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  .admin-bar .artikkel-nav { top: 46px !important; }
}

/* El hero arranca desde el borde superior del viewport (detrás del nav fijo) */
.hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* En la home, el wrapper #page y <main> no deben tener padding-top extra */
body.is-home #page,
body.is-home .site,
body.is-home main#main-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Neutralizar padding-top que Kadence pone en body directamente */
body.kadence-theme,
body.kadence-child-theme {
  padding-top: 0 !important;
}

/* El padding-top: 60px del nav fijo se gestiona desde header.php <style> inline,
   que tiene mayor prioridad de carga que los estilos de Kadence */


/* ==========================================================================
   ARCHICON DELTA — Correcciones de paridad visual
   Valores extraídos directamente de archicon.qodeinteractive.com/assets/css/main.css
   y grid.css. Cada bloque documenta la diferencia exacta corregida.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TIPOGRAFÍA — Archicon: 15px / 400 / 1.667em vs tu sitio: 16px / 300 / 1.6
   -------------------------------------------------------------------------- */
body {
  font-size: 15px;       /* Archicon: 15px  ← era 16px */
  font-weight: 400;      /* Archicon: 400   ← era 300  */
  line-height: 1.667em;  /* Archicon: 1.667 ← era 1.6  */
  color: #000000;        /* Archicon: puro negro ← era #1a1a1a */
}

/* Escala tipográfica global — Archicon usa 400 para todos los headings */
h1, .h1 {
  font-size: 60px;
  font-weight: 500;          /* DM Sans — 500 para presencia sin serif */
  line-height: 1em;
  letter-spacing: -0.025em;
  margin: 25px 0;
}

h2, .h2 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.125em;
  letter-spacing: -0.025em;
  margin: 25px 0;
}

h3, .h3 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.143em;
  letter-spacing: -0.025em;
  margin: 25px 0;
}

h4, .h4 {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.305em;
  letter-spacing: -0.025em;
  margin: 25px 0;
}

h5, .h5 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.556em;
  letter-spacing: -0.025em;
  margin: 25px 0;
}

h6, .h6 {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.467em;
  letter-spacing: 0;
  text-transform: uppercase; /* Archicon usa h6 como etiqueta de sección */
  margin: 25px 0;
}

/* Hero refinado para DM Sans (sin serif) — peso 500, line-height compacto */
.hero-title {
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.025em;
}

/* Responsive headings — Archicon */
@media (max-width: 680px) {
  h1, .h1 { font-size: 45px; }
  h2, .h2 { font-size: 30px; }
}

/* --------------------------------------------------------------------------
   2. ACCENT COLOR — Archicon: #f94e41 (coral/rojo)
   Añadir variable y aplicarla a CTAs, links activos, elementos de énfasis
   -------------------------------------------------------------------------- */
:root {
  --accent: #f94e41; /* Archicon primary CTA color */
}

/* Botón CTA — Archicon: padding: 19px 44px, font-size: 16px, uppercase, #f94e41 */
.btn-cta,
.service-link-text,
a.cta-link {
  background-color: var(--accent);
  color: #ffffff;
  padding: 19px 44px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease-out, color 0.3s ease-out;
}

.btn-cta:hover { background-color: #d43d31; color: #ffffff; }

/* service-link-text en tu sitio es solo texto con underline — Archicon tiene botón primario.
   Mantener el estilo actual más neutro: */
.service-link-text {
  background-color: transparent;
  color: var(--black);
  padding: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   3. CONTENEDOR CENTRADO — Archicon: max-width 1100px, margin 0 auto
   Tu sitio usa padding lateral directo. Añadir container para consistencia.
   -------------------------------------------------------------------------- */
.qodef-content-grid,
.site-container {
  width: 1100px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 30px; /* fallback lateral en viewports < 1100px */
  box-sizing: border-box;
}

@media (max-width: 1200px) { .qodef-content-grid, .site-container { width: 960px; } }
@media (max-width: 1024px) { .qodef-content-grid, .site-container { width: 90%; } }
@media (max-width: 680px)  { .qodef-content-grid, .site-container { width: 86%; } }

/* --------------------------------------------------------------------------
   4. SECCIÓN INTRO — Archicon: padding 130px 0 (via container)
   Tu sitio: 140px 3rem. Corregir vertical y añadir max-width al texto.
   -------------------------------------------------------------------------- */
.intro-section {
  padding: 130px 3rem;  /* Archicon: 130px ← era 140px */
}

.intro-text {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.35;
  max-width: 820px;     /* Mantener */
  font-weight: 400;     /* Archicon headings: 400 ← era 400, OK */
}

/* --------------------------------------------------------------------------
   5. PORTAFOLIO HOME — bento en home (1 hero + 5 small)
   Ya tiene estilos propios en PORTFOLIO PREVIEW bento block.
   Este delta solo asegura consistencia del hover.
   -------------------------------------------------------------------------- */
.pp-grid img,
.news-img-wrap img {
  transition: transform 0.5s ease;
}

.news-card:hover .news-img-wrap img {
  transform: scale(1.1);  /* Archicon: 1.1 ← era 1.04 */
}

/* --------------------------------------------------------------------------
   6. PORTAFOLIO PAGE — Spec del usuario
   gap 2rem, altura fija 260px, hover scale 1.03
   -------------------------------------------------------------------------- */
.portfolio-grid {
  gap: 2rem;           /* Spec: 2rem ← era 2.5rem, luego 20px */
}

.p-img-wrap img {
  height: 260px;       /* Spec: fija ← era auto + aspect-ratio */
  aspect-ratio: auto;
  transition: transform 0.5s ease;  /* Spec: suave ← era 1s cubic-bezier */
}

.p-item:hover .p-img-wrap img {
  transform: scale(1.03); /* Spec: 1.03 ← era 1.1 */
}

/* Título de proyecto — Archicon: ~23px (h4) ← tu sitio: 16px */
.p-title {
  font-size: 18px;     /* Compromiso: 18px (entre 16px tuyo y 23px Archicon) */
  font-weight: 400;
  line-height: 1.3em;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   7. BLOG / NEWS — Archicon: blog-item margin-bottom 92px, media margin-bottom 36px
   Tu sitio: news-card gap 2rem, news-img margin-bottom 1rem
   -------------------------------------------------------------------------- */
.news-grid {
  gap: 3rem;           /* Archicon gutter-normal: 30px por item = 30px gap */
}

.news-img-wrap {
  margin-bottom: 1.25rem; /* Archicon: 36px ← era 1rem (16px) */
}

/* --------------------------------------------------------------------------
   8. FORMULARIO — Archicon: input border-bottom, padding 8px 0, margin 0 0 29px
   Aplica a cualquier formulario en el sitio
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0;
  padding: 8px 0;
  margin: 0 0 29px;
  background: transparent;
  font-family: var(--font);
  font-size: 15px;
  color: #000000;
  outline: none;
  width: 100%;
  transition: border-color 0.3s ease-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-bottom-color: #000000;
}

/* --------------------------------------------------------------------------
   9. FOOTER — Páginas internas tienen footer mínimo.
   Archicon mantiene footer completo en todas las páginas.
   Mejorar el footer de páginas internas:
   -------------------------------------------------------------------------- */
footer:not(.site-footer) {
  padding: 40px 3rem;      /* Archicon: footer más generoso ← era 2rem 3rem */
  background: #ffffff;
  border-top: 1px solid var(--border);
  font-size: 13px;         /* ← era 11px */
  color: #666;
}

/* --------------------------------------------------------------------------
   10. SWIPER / SLIDER DOTS — Archicon: gap 20px, margin-top 30px
   Tu sitio: hero-dots gap 0.4rem (6.4px), bottom: 1.5rem
   -------------------------------------------------------------------------- */
.hero-dots {
  gap: 20px;           /* Archicon: 20px ← era 0.4rem (6.4px) */
}

.hero-dot {
  width: 8px;          /* Archicon: 8px ← era 10px */
  height: 8px;
  border-radius: 0;    /* Archicon: cuadrado (no circular) */
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-dot.active {
  background: var(--white);
  transform: scaleY(1); /* Archicon anima scaleY */
}

/* --------------------------------------------------------------------------
   11. SERVICIOS — Ajuste de tamaños internos
   Archicon service title ≈ h3 (28px). Tu sitio: 1.15rem (18.4px)
   -------------------------------------------------------------------------- */
.service-icon-item h3 {
  font-size: 1.4rem;   /* Acercarse a Archicon 28px ← era 1.15rem */
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.service-icon-item p {
  font-size: 14px;     /* Archicon body: 15px, párrafos secundarios ~13-14px */
  line-height: 1.667em; /* Archicon body line-height */
  color: #555;
}

/* --------------------------------------------------------------------------
   12. STATS — Archicon-style: números ligeros, gran tamaño
   Tu sitio ya está muy cercano. Pequeños ajustes:
   -------------------------------------------------------------------------- */
.stat-number {
  font-weight: 300;    /* OK ✓ */
  border-bottom: 1px solid var(--border); /* OK ✓ */
}

.stat-label {
  font-size: 13px;     /* Archicon body 15px; labels secundarios ~13px ← era 12px */
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   13. FILTROS PORTAFOLIO — Archicon: filter links con border-bottom activo
   Tu sitio: underline. Muy similar, pequeño ajuste:
   -------------------------------------------------------------------------- */
.filter-btn {
  font-size: 14px;     /* Archicon nav/filter: 14px ← era 13px */
  letter-spacing: 0.06em;
  padding: 0.6rem 0;
  color: rgba(0, 0, 0, 0.4);
  transition: color 0.3s ease-out;
}

.filter-btn:hover,
.filter-btn.active {
  color: #000000;
  text-decoration: none;
  border-bottom: 1px solid #000000; /* Archicon: border activo en lugar de underline */
  text-underline-offset: unset;
}

/* --------------------------------------------------------------------------
   14. CLIENTES — Ajuste de grid gutter
   Archicon usa border-collapse efecto (gap: 1px con background border)
   Tu sitio ya lo hace igual ✓ — solo ajustar hover
   -------------------------------------------------------------------------- */
.cliente-item {
  min-height: 100px;   /* Archicon: items más altos ← era 90px */
  transition: background 0.3s ease-out; /* Archicon: ease-out */
}


/* ==========================================================================
   VISUAL AUDIT FIXES — Basado en comparación screenshot sección por sección
   ========================================================================== */

/* --------------------------------------------------------------------------
   FIX-1 CRÍTICA: LINKS AZULES — Kadence sobreescribe color de links con
   su paleta global. Forzar negro en todas las zonas críticas.
   -------------------------------------------------------------------------- */

/* ==========================================================================
   KADENCE OVERRIDE — Forzar valores base correctos
   Debug: body color = rgb(45,55,72) [Kadence] · body font-size = 17px [Kadence]
   Global a color = rgb(240,240,241) [nearly invisible Kadence palette-highlight]
   ========================================================================== */
body {
  color:       #000000   !important;  /* Kadence ponía rgb(45,55,72) */
  font-size:   15px      !important;  /* Kadence ponía 17px */
  font-weight: 400       !important;
  line-height: 1.667em   !important;
}

/* Link global: Kadence usa --global-palette-highlight = casi blanco.
   Forzar negro como default, luego secciones específicas lo mantienen. */
a,
a:visited {
  color: #000000 !important;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Excepción: links en admin bar de WP — no tocar */
#wpadminbar a,
#wpadminbar a:visited,
#wpadminbar a:hover {
  color: inherit !important;
}

/* Footer: email grande, links sociales, aviso de privacidad */
.site-footer a,
.site-footer a:visited,
.footer-email,
.footer-email:visited {
  color: #000000 !important;
  text-decoration: none !important;
}

.site-footer a:hover {
  text-decoration: underline !important;
  color: #000000 !important;
}

/* News cards: títulos de proyectos en azul → negro */
.news-card h4 a,
.news-card h4 a:visited,
.news-card h3 a,
.news-card h3 a:visited {
  color: #000000 !important;
  text-decoration: none !important;
}

.news-card h4 a:hover,
.news-card h3 a:hover {
  text-decoration: underline !important;
}

/* Accordion: cuerpo del item expandido */
.accordion-body p,
.accordion-body p a,
.accordion-body a {
  color: #555555 !important;
}

.accordion-body strong {
  color: #000000 !important;
}

/* Portfolio preview: links de imágenes */
.pp-grid .p-item a,
.pp-grid .p-item a:visited {
  color: inherit !important;
}

/* --------------------------------------------------------------------------
   FIX-2 CRÍTICA: HERO GAP — Kadence inyecta padding-top en el main wrapper.
   El hero debe arrancar inmediatamente bajo el nav fijo (y=60px en producción).
   -------------------------------------------------------------------------- */
main#main-content,
.site main,
#primary,
#page > .site-content,
.entry-content > *:first-child {
  padding-top: 0 !important;
  margin-top:  0 !important;
}

/* Asegurar que el hero comienza justo al nivel del top del document flow */
.hero {
  margin-top: -60px !important; /* Compensar cualquier padding residual de Kadence */
}

/* Admin bar: cuando está activa (solo desarrollo/admin), compensar */
.admin-bar .hero {
  margin-top: calc(-60px + 32px) !important;
}

@media screen and (max-width: 782px) {
  .admin-bar .hero { margin-top: calc(-60px + 46px) !important; }
}

/* --------------------------------------------------------------------------
   FIX-4 ALTA: PORTFOLIO PREVIEW — fondo gris como Archicon
   Archicon: background #f0f1ef. Tu sitio: blanco. El cambio crea contraste.
   -------------------------------------------------------------------------- */
.portfolio-preview {
  background: #f0f1ef;        /* Archicon portfolio section bg ← era #ffffff */
}

/* --------------------------------------------------------------------------
   FIX-5 ALTA: INTRO TEXT — más negra, más peso visual
   La fuente DM Sans 400 aparece gris. Subir peso y forzar color.
   -------------------------------------------------------------------------- */
.intro-text {
  color: #000000 !important;
  font-weight: 500;           /* Más masa visual ← era 400 (se veía gris) */
}

/* --------------------------------------------------------------------------
   FIX-6 ALTA: ICONOS DE SERVICIOS — demasiado grandes vs Archicon (~28px)
   Reducir de 72px a 40px: más sutil, el texto toma protagonismo.
   -------------------------------------------------------------------------- */
.service-icon-item svg {
  width: 40px;                /* Archicon ~28-32px ← era 72px */
  height: 40px;
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   FIX-7 ALTA: STATS COUNTER — evitar que se vean "0+" al cargar
   Forzar color negro y opacity visible desde el start
   -------------------------------------------------------------------------- */
.stat-number {
  color: #000000 !important;
}

.stat-number [data-counter] {
  color: #000000 !important;
}

/* Los elementos de stats NO deben tener reveal opacity:0 — son números,
   el usuario necesita verlos inmediatamente */
.stats-grid .reveal {
  opacity: 1   !important;
  transform: none !important;
  transition: none !important;
}

/* --------------------------------------------------------------------------
   FIX-8 MEDIA: PORTFOLIO PREVIEW HEADER COMPOSITION
   Archicon: título arriba + VIEW MORE debajo (column). Tu sitio: row.
   -------------------------------------------------------------------------- */
.pp-header {
  flex-direction: column;     /* Archicon: column ← era row */
  align-items: flex-start;    /* alinear al borde izquierdo */
  gap: 0.5rem;
  margin-bottom: 3rem;        /* más espacio antes del grid ← era 2.5rem */
}

.pp-header h2 {
  font-size: 1.8rem;          /* Archicon "Projects Preview" ≈ h3 size */
  font-weight: 400;
  margin: 0;
}

.view-more {
  color: #000000 !important;
}

/* --------------------------------------------------------------------------
   FIX-9 MEDIA: NEWS SECTION fondo y link colors
   -------------------------------------------------------------------------- */
.news-section-wrap {
  background: #f5f5f3;        /* Confirmar que se aplica */
}

/* --------------------------------------------------------------------------
   FIX-10 BAJA: FOOTER COL TITLES — asegurar negro, no azul
   -------------------------------------------------------------------------- */
.footer-col-title {
  color: #000000 !important;
}

.footer-bottom span,
.footer-bottom a {
  color: #999999 !important;
  text-decoration: none !important;
}


/* ==========================================================================
   ARCHICON HEADER v2 — Reemplaza el header anterior (.artikkel-nav)
   Patrón: header transparente sobre hero / sólido en scroll + side area
   ========================================================================== */

:root { --qodef-header-h: 80px; }

/* --- Base del header ----------------------------------------------- */
.qodef-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--qodef-header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
  transition: background 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}

/* Home, antes de scroll: transparente con texto blanco */
body.is-home:not(.qodef-has-scrolled) .qodef-header {
  background: transparent;
  border-bottom-color: transparent;
  color: #ffffff;
}

.qodef-header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-sizing: border-box;
}

/* --- Logo --------------------------------------------------------- */
.qodef-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.qodef-logo:hover { opacity: 0.75; }

.qodef-logo-mark {
  flex-shrink: 0;
  transition: transform 0.5s var(--ease);
}

.qodef-logo:hover .qodef-logo-mark { transform: rotate(-90deg); }

/* --- Side area opener (icono + label) ------------------------------ */
.qodef-header-right {
  display: flex;
  align-items: center;
}

.qodef-side-opener {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  background: none;
  border: none;
  padding: 0.75rem 0;
  cursor: pointer;
  color: inherit;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.qodef-side-opener:hover { opacity: 0.7; }

.qodef-opener-lines {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 14px;
}

.qodef-opener-lines span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
  transform-origin: center;
}

/* Animar el icono a X cuando el side area está abierto */
body.qodef-side-opened .qodef-opener-lines span:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
}
body.qodef-side-opened .qodef-opener-lines span:nth-child(2) {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* Cambio de label MENÚ → CLOSE */
.qodef-opener-label::before { content: "MENÚ"; }
body.qodef-side-opened .qodef-opener-label::before { content: "CLOSE"; }


/* --- Side area (off-canvas) --------------------------------------- */
.qodef-side-area {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 0.55s;
}

.qodef-side-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.5s ease;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}

.qodef-side-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: #2a2a2a;
  color: #ffffff;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 6rem 3.5rem 3rem;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.qodef-side-opened .qodef-side-area {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s linear 0s;
}

body.qodef-side-opened .qodef-side-overlay { opacity: 1; }

body.qodef-side-opened .qodef-side-panel  { transform: translateX(0); }


/* --- Botón cerrar ------------------------------------------------ */
.qodef-side-close {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.3s ease;
}

.qodef-side-close:hover { opacity: 1; }

.qodef-side-close span {
  position: absolute;
  width: 24px;
  height: 1.5px;
  background: currentColor;
}

.qodef-side-close span:first-child { transform: rotate(45deg); }
.qodef-side-close span:last-child  { transform: rotate(-45deg); }


/* --- Menú del panel --------------------------------------------- */
.qodef-side-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 3rem;
}

.qodef-side-menu-item {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.95rem 0;
  font-family: var(--font);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.35s ease, padding-left 0.4s var(--ease);
}

.qodef-side-menu-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.qodef-side-menu-item:hover,
.qodef-side-menu-item.is-current {
  color: #ffffff;
  padding-left: 0.6rem;
}

.qodef-side-menu-num {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  min-width: 1.6rem;
  transition: color 0.35s ease;
}

.qodef-side-menu-item:hover .qodef-side-menu-num,
.qodef-side-menu-item.is-current .qodef-side-menu-num {
  color: rgba(255, 255, 255, 0.7);
}


/* --- Info de contacto (al fondo) -------------------------------- */
.qodef-side-info {
  margin-top: auto;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.qodef-side-info-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.85rem;
  display: block;
}

.qodef-side-info a {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
  width: fit-content;
}

.qodef-side-info a:hover { color: #ffffff; }

.qodef-side-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.qodef-side-social a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.qodef-side-social a:hover { color: #ffffff; }


/* --- Lock scroll del body cuando el side está abierto ----------- */
body.qodef-side-opened { overflow: hidden; }


/* --- Compensar admin bar de WordPress --------------------------- */
.admin-bar .qodef-header { top: 32px; }

@media screen and (max-width: 782px) {
  .admin-bar .qodef-header { top: 46px; }
}


/* --- Hero: vuelve a sangría completa en home (header transparente) -- */
body.is-home .hero { margin-top: 0 !important; }


/* --- Responsive ------------------------------------------------- */
@media (max-width: 1024px) {
  .qodef-header-inner { padding: 0 1.75rem; }

  /* Clientes tablet — 4 cols sigue, pero logos un poco más chicos */
  .clientes-section { padding: var(--section-pad) 2rem; }
  .cliente-item     { min-height: 120px; padding: 1.5rem 1rem; }
  .cliente-logo     { max-width: 130px; max-height: 60px; }
}

@media (max-width: 900px) {
  /* Paso intermedio: 3 columnas para evitar logos apretados antes del mobile breakpoint */
  .clientes-grid    { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .qodef-header-inner { padding: 0 1.25rem; }
  .qodef-opener-label { display: none; }            /* solo icono en móvil */
  .qodef-side-area    { max-width: 100%; }
  .qodef-side-panel   { padding: 5rem 1.75rem 2rem; }
  .qodef-side-menu-item { padding: 0.8rem 0; }
}

@media (max-width: 480px) {
  /* Mobile pequeño — logos aún más compactos */
  .cliente-item { min-height: 90px; padding: 1rem 0.75rem; }
  .cliente-logo { max-width: 90px;  max-height: 48px; }
}


/* ==========================================================================
   KADENCE HEADER — Neutralización defensiva
   Por si la acción PHP no remueve todo el markup, garantizamos que ningún
   header/elemento de Kadence coexista con el nuestro (causa del bug del
   "botón de menú duplicado" en móvil).
   ========================================================================== */
#masthead,
.site-header,
#mobile-header,
.site-mobile-header-wrap,
#mobile-drawer,
.popup-drawer,
.menu-toggle-open,
.menu-toggle-close,
.kadence-header-notice,
.site-above-header-wrap,
.site-below-header-wrap {
  display: none !important;
}

/* Asegurar que ningún <header> distinto al nuestro sea visible */
header:not(#qodef-header):not(.qodef-header) {
  display: none !important;
}


/* ==========================================================================
   MENÚ HAMBURGUESA — Blindaje de color dentro del panel
   El body global define color:#000 !important (l.1389) que sobreescribe
   los colores del panel. Este bloque restaura los colores correctos con
   !important para que el menú sea legible sobre el fondo #2a2a2a.
   ========================================================================== */

.qodef-side-panel,
.qodef-side-panel a,
.qodef-side-panel span,
.qodef-side-panel button,
.qodef-side-panel nav a,
.qodef-side-panel ul li a {
  color: #ffffff !important;
}

/* Links del menú (INICIO, NOSOTROS...) — blanco al 85% */
.qodef-side-panel .qodef-side-menu-item {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Hover/current — blanco puro + pequeño shift de padding */
.qodef-side-panel .qodef-side-menu-item:hover,
.qodef-side-panel .qodef-side-menu-item.is-current {
  color: #ffffff !important;
}

/* Números (01, 02...) — gris muy tenue al 25% */
.qodef-side-panel .qodef-side-menu-num {
  color: rgba(255, 255, 255, 0.25) !important;
  font-size: 11px !important;
}

.qodef-side-panel .qodef-side-menu-item:hover .qodef-side-menu-num,
.qodef-side-panel .qodef-side-menu-item.is-current .qodef-side-menu-num {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Label "CONTACTO" — gris medio 40% */
.qodef-side-panel .qodef-side-info-label {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Email, teléfonos — gris 50% */
.qodef-side-panel .qodef-side-info a {
  color: rgba(255, 255, 255, 0.5) !important;
}

.qodef-side-panel .qodef-side-info a:hover {
  color: #ffffff !important;
}

/* Redes sociales (Instagram, LinkedIn...) — gris 40% */
.qodef-side-panel .qodef-side-social a {
  color: rgba(255, 255, 255, 0.4) !important;
}

.qodef-side-panel .qodef-side-social a:hover {
  color: #ffffff !important;
}

/* X de cierre — gris claro 60% */
.qodef-side-panel .qodef-side-close {
  color: rgba(255, 255, 255, 0.6) !important;
}

.qodef-side-panel .qodef-side-close:hover {
  color: #ffffff !important;
}

/* Bordes separadores — sutiles */
.qodef-side-panel .qodef-side-menu-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.qodef-side-panel .qodef-side-menu-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.qodef-side-panel .qodef-side-info {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.qodef-side-panel .qodef-side-social {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

