:root {
  --navbar-h: 36px;
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --dua-yellow: #FACF0E;

  --dua-violet:#772BFF;
  --dua-text:#111827;
  --dua-muted:#6B7280;
  --dua-gradient: linear-gradient(135deg,#5CB6C2 0%,#F9AD17 18%,#F25D36 32%,#B7676C 46%,#B43A75 60%,#7738A2 77%,#50B4CE 100%);
}
body { font-family: var(--font-main); background: #fff; }


/* Force header navbar to stay fixed, even if other CSS tries to override .fixed-top */
header.dua-header.navbar-underline{
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
}



.dua-header { z-index: 1050; }
.dua-logo { height: 29px; object-fit: contain; }
.dua-header .nav-link { color: #231513; font-size: 18px; font-weight: 400; }
.dua-contacto { font-size: 20px; }

.hero-section { padding-top:110px; var(--navbar-h); background: #fff; }
.hero-wrap { /*max-width: 1140px;*/ position: relative; overflow: visible; }
.hero-img { display: block; width: 100%;  margin-top: 50px; height: auto; }
.hero-content { position: absolute; top: 102px; left: 50%; transform: translateX(-50%); width: min(940px, 100%); text-align: center; }
.hero-title { font-weight: 700; font-size: 58px; }
.hero-subtitle { font-weight: 400; font-size: 52px; }
.hero-text { font-weight: 400; font-size: 27px; max-width: 820px; margin: 0.6rem auto 0; }

.quienes-section { padding-top: 100px; padding-bottom: 60px; }
.quienes-icon { width: 70px; }
.quienes-title { font-weight: 700; font-size: 31.52px; color: #231513; }
.quienes-text { font-size: 20px; color: #231513; margin-bottom: 1.15rem; }

.servicios-section { padding-top: 60px; padding-bottom: 60px; }
.servicios-title { font-weight: 700; font-size: 31.52px; color: #231513; }
.servicio-item { display: flex; justify-content: space-between; align-items: center; border-bottom: 1.4px solid #231513; padding: 16px 0 14px; gap: 1rem; }
.servicio-text { font-size: 20px; color: #231513; }
.servicio-plus { font-size: 38px; color: #231513; }

.enfoque-section { background: var(--dua-yellow); padding: 55px 0; }
.enfoque-logo { width: 70px; }
.enfoque-title { font-weight: 700; font-size: 31.52px; color: #231513; }
.enfoque-head {font-size:21.5px;}
.enfoque-card { position: relative; width: 100%; max-width: 300px; display: block; }
.enfoque-shape { width: 100%; height: auto; display: block; }
.enfoque-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: 31.52px; color: #231513; }
.enfoque-foot { margin-top: 48px; font-size: 21.5px; color: #231513; }
.texto-enfoque {font-size: 20px;}

.equipo-section { padding-top: 60px; padding-bottom: 80px; background: #fff; }
.equipo-icon { width: 70px; }
.equipo-title { font-weight: 700; font-size: 31.52px; color: #231513; }
.equipo-card { width: 100%; max-width: 300px; }
.equipo-photo, .equipo-shape { width: 100%; height: auto; display: block; }
.equipo-text { font-size: 20px; color: #231513; }

.contacto-section { background: #000; padding: 60px 0 50px; color: #fff; }
.contacto-logo { width: 120px; }
.contacto-icon { width: 60px; height: 60px; object-fit: contain; }
.contacto-trama { width: 100%; max-width: 450px; height: auto; display: block; }
.contacto-left { min-height: 420px; }
.contacto-right { display: flex; align-items: flex-start; }
.contacto-form { width: 100%; }
.contacto-input { background: #d9d9d9; border: none; border-radius: 11px; color: #515151; font-size: 18px; padding: 18px 20px; }
.contacto-input::placeholder { color: #515151; }
.contacto-textarea { min-height: 160px; }
.btn-contacto { background: #FACF0E; color: #000; border: none; border-radius: 999px; padding: 10px 32px; font-weight: 600; font-size: 16px; }

@media (min-width: 1200px) {
  .contacto-left { display: flex; flex-direction: column; }
  .contacto-trama-wrap { margin-top: auto; display: flex; align-items: flex-end; }
  .contacto-trama { margin-bottom: 0; }
}


/* Servicios Accordion */
.dua-accordion .accordion-item { border-bottom: 1.4px solid #231513; border-top: none; background: transparent; }
.dua-accordion .accordion-item:first-child {  border-top: none; }
.dua-accordion .accordion-button { 
  padding: 18px 0; 
  font-size: 20px; 
  color: #231513; 
  background: transparent; 
  box-shadow: none; 
}
.dua-accordion .accordion-button::after {
  background-image: none;
  content: '+';
  margin-left: auto;
  font-size: 38px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .2s ease;
  color: #231513;
}
.dua-accordion .accordion-button:not(.collapsed)::after {
  content: '–';
  transform: rotate(0deg);
}
.dua-accordion .accordion-button:focus { box-shadow: none; }
.dua-accordion .accordion-body { padding: 0 0 18px 0; color: #231513; font-size: 18px; }



/* === Minimal HERO adjustment: background spans 12 columns, no side padding === */
.hero-wrap {
  background-image: url('../img/hero-dua.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain; /* no recortes, ocupa el ancho del container (12 cols) */
  aspect-ratio: 1159/429;
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.hero-img { display: none !important; } /* por si hubiera reglas residuales */



/* === Center everything inside hero-section === */
.hero-section{ text-align: center; }
.hero-wrap{
  display: grid;
  place-items: center;
}
/* Make overlay/content participate in centering grid instead of absolute offsets */
.hero-content{
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: min(940px, 100%) !important;
  margin: 0 auto !important;
  padding: 24px 16px;
  text-align: center !important;
}



/* === Precise centering for hero === */
.hero-section{ text-align: center; }
.hero-wrap{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background-position: center !important; /* no top bias */
}
.hero-content{
  position: static !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: min(940px, 100%) !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  padding: 24px 16px;
}
.hero-title, .hero-subtitle, .hero-text{
  margin-left: auto !important;
  margin-right: auto !important;
}



/* === HERO typography: Tablet & Mobile exact sizes (from Figma) === */
/* Tablet: 768–991.98px */
@media (min-width: 768px) and (max-width: 991.98px){
  .hero-section .hero-title{ font-size: 36px; }
  .hero-section .hero-subtitle{ font-size: 32.5px; }
  .hero-section .hero-text{ font-size: 16.5px; }
}

/* Mobile: <=767.98px */
@media (max-width: 767.98px){
  .hero-section .hero-title{ font-size: 50px; }
  .hero-section .hero-subtitle{ font-size: 45px; }
  .hero-section .hero-text{ font-size: 16px; }
}



/* === Header menu typography === */
/* Desktop (>=992px) */
@media (min-width: 992px){
  .dua-header .nav-link,
  .dua-header .dua-contacto{ font-size: 20px !important; }
}

/* Tablet (768–991.98px) */
@media (min-width: 768px) and (max-width: 991.98px){
  .dua-header .nav-link,
  .dua-header .dua-contacto{ font-size: 12.5px !important; }
}



/* === Unified header logo: single source scaled per breakpoint === */
:root{ --logo-h: 32px; } /* Desktop default */
.dua-logo{ height: var(--logo-h); width: auto; object-fit: contain; image-rendering: auto; }

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px){
  :root{ --logo-h: 26px; }
}

/* Mobile */
@media (max-width: 767.98px){
  :root{ --logo-h: 24px; }
}



/* === Header logo: exact sizes per breakpoint === */
/* Desktop default */
:root{
  --logo-w: 95px;
  --logo-h: 28.69px;
}
.dua-logo{
  width: var(--logo-w);
  height: var(--logo-h);
  object-fit: contain;
  display: block; /* avoids baseline gaps */
}

/* Tablet (768–991.98px) */
@media (min-width: 768px) and (max-width: 991.98px){
  :root{
    --logo-w: 59.42px;
    --logo-h: 17.95px;
  }
}

/* Mobile (<=767.98px) */
@media (max-width: 767.98px){
  :root{
    --logo-w: 110px;
    --logo-h: 33px;
  }
}



/* === Container widths: keep Bootstrap 5 defaults (no custom override) === */

/* === Mobile hamburger menu === */
@media (max-width: 767.98px){
  .dua-header .collapse#duaMenu{
    position: fixed;
    top: var(--navbar-h);
    left: 0; right: 0;
    background: #fff;
    padding: 12px 16px;
    border-top: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    z-index: 1049;
  }
  .dua-header .collapse#duaMenu .nav-link{
    display: block;
    padding: .6rem 0;
    font-size: 18px;
    color: #231513;
  }
  .dua-header .collapse#duaMenu .nav-link:focus{
    outline: 2px solid #231513;
    outline-offset: 2px;
  }
}



/* === Full-screen mobile overlay menu (no scroll) === */
@media (max-width: 767.98px){
  .dua-overlay[hidden]{ display: none !important; }
  .dua-overlay{
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .dua-overlay-inner{ width: 100%; max-width: 576px; padding: 24px; }
  .dua-overlay-nav{ display: flex; flex-direction: column; gap: 12px; align-items: center; }
  .dua-overlay-nav a{
    font-size: 28px;
    line-height: 1.15;
    color: #231513;
    text-decoration: none;
  }
  .dua-overlay-nav a:focus{ outline: 2px solid #231513; outline-offset: 2px; }
  body.menu-open{ overflow: hidden !important; touch-action: none; }
  /* Put the header above overlay trigger area when open? keep overlay above everything */
}



/* === Overlay background set to brand yellow === */
@media (max-width: 767.98px){
  .dua-overlay{
    background: var(--dua-yellow) !important;
  }
}



/* === Header CONTACTO alignment fix and mobile hide === */
.dua-header .dua-contacto{ margin: 0 !important; line-height: 1.1; }
@media (max-width: 767.98px){
  .dua-header .dua-contacto{ display: none !important; }
}

/* === Overlay close button and behavior === */
@media (max-width: 767.98px){
  .dua-overlay-close{
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 32px;
    background: transparent;
    border: 0;
    line-height: 1;
  }
}



/* === Header alignment (Desktop/Tablet) === */
@media (min-width: 768px){
  .dua-header .container-xl > .row{ height: var(--navbar-h); align-items: center !important; }
  .dua-header .dua-menu .nav-link{
    display: inline-flex;
    align-items: center;
    height: var(--navbar-h);
    padding-top: 0; padding-bottom: 0;
  }
  .dua-header .dua-contacto{
    display: inline-flex !important;
    align-items: center !important;
    height: var(--navbar-h);
    padding-top: 0; padding-bottom: 0;
    margin: 0 !important;
  }
}

/* === Overlay close button (GUT-like) === */
@media (max-width: 767.98px){
  .dua-overlay-close{
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
  }
  .dua-overlay-close i{
    font-size: 32px;
    color: #231513;
    line-height: 1;
  }
  .dua-overlay-close:focus{
    outline: 2px solid #231513;
    outline-offset: 2px;
  }
}



/* === Overlay robustness: lock scroll, stable viewport === */
@media (max-width: 767.98px){
  .dua-overlay{
    position: fixed;
    inset: 0;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overscroll-behavior: contain;
    touch-action: none;
  }
  .dua-overlay-inner{ max-height: 100dvh; overflow: auto; }
  body.menu-open{
    position: fixed;
    width: 100%;
    overflow: hidden !important;
  }
}



/* === Mobile overlay animation (GUT-like) === */
@media (max-width: 767.98px){
  .dua-overlay{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity .36s ease, transform .36s ease, visibility 0s linear .36s;
  }
  .dua-overlay.open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    transition: opacity .36s ease, transform .36s ease;
  }
  .dua-overlay-nav a{
    opacity: 0;
    transform: translateY(12px);
  }
  .dua-overlay.open .dua-overlay-nav a{
    animation: duaMenuItem .44s cubic-bezier(.2,.8,.2,1) forwards;
  }
  .dua-overlay.open .dua-overlay-nav a:nth-child(1){ animation-delay: .05s; }
  .dua-overlay.open .dua-overlay-nav a:nth-child(2){ animation-delay: .10s; }
  .dua-overlay.open .dua-overlay-nav a:nth-child(3){ animation-delay: .15s; }
  .dua-overlay.open .dua-overlay-nav a:nth-child(4){ animation-delay: .20s; }
  .dua-overlay.open .dua-overlay-nav a:nth-child(5){ animation-delay: .25s; }
  .dua-overlay.open .dua-overlay-nav a:nth-child(6){ animation-delay: .30s; }
  @keyframes duaMenuItem{
    to{ opacity:1; transform: none; }
  }
  /* Respect user preference */
  @media (prefers-reduced-motion: reduce){
    .dua-overlay{ transition: none; transform: none; }
    .dua-overlay-nav a, .dua-overlay.open .dua-overlay-nav a{ animation: none; opacity: 1; transform: none; }
  }
}



/* === Header above overlay to keep toggler clickable === */
.dua-header{ z-index: 2100; }
@media (max-width: 767.98px){
  .dua-overlay{ z-index: 2000; }
}

/* === Morphing hamburger -> X (same spot) === */
#duaHamburger{
  width: 44px; height: 44px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
#duaHamburger .burger-lines,
#duaHamburger .burger-lines::before,
#duaHamburger .burger-lines::after{
  content: "";
  position: absolute;
  width: 24px; height: 2px;
  background: #231513;
  transition: transform .28s ease, opacity .2s ease, top .28s ease, bottom .28s ease;
  border-radius: 1px;
}
#duaHamburger .burger-lines{}
#duaHamburger .burger-lines::before{ top: -7px; }
#duaHamburger .burger-lines::after{ bottom: -7px; }

/* Open state */
#duaHamburger.is-open .burger-lines{ transform: rotate(45deg); }
#duaHamburger.is-open .burger-lines::before{
  transform: rotate(-90deg);
  top: 0;
}
#duaHamburger.is-open .burger-lines::after{
  transform: rotate(-90deg);
  bottom: 0;
}



/* === Toggler morph (precise centered X) === */
#duaHamburger{ width:44px; height:44px; position:relative; display:inline-flex; align-items:center; justify-content:center; }
#duaHamburger .burger-lines,
#duaHamburger .burger-lines::before,
#duaHamburger .burger-lines::after{
  content:"";
  position:absolute;
  left:50%; top:50%;
  width:24px; height:2px;
  background:#231513;
  border-radius:1px;
  transform-origin:50% 50%;
  transition:transform .24s ease, opacity .18s ease;
}
#duaHamburger .burger-lines{ transform:translate(-50%,-50%); }
#duaHamburger .burger-lines::before{ transform:translate(-50%, calc(-50% - 7px)); }
#duaHamburger .burger-lines::after{  transform:translate(-50%, calc(-50% + 7px)); }

/* Open state → perfect X */
#duaHamburger.is-open .burger-lines{ opacity:0; }
#duaHamburger.is-open .burger-lines::before{ transform:translate(-50%,-50%) rotate(45deg); }
#duaHamburger.is-open .burger-lines::after{  transform:translate(-50%,-50%) rotate(-45deg); }



/* === Overlay above header so yellow covers logo === */
@media (max-width: 767.98px){
  .dua-overlay{ z-index: 2300 !important; } /* header is 2100; overlay must win */
  .dua-overlay-close{
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
  }
  .dua-overlay-close i{ font-size: 28px; color: #231513; line-height: 1; }
  .dua-overlay-close:focus{ outline: 2px solid #231513; outline-offset: 2px; }
}



/* === Mobile-only: remove unintended horizontal scroll (minimal change) === */
@media (max-width: 767.98px){
  html, body{ max-width:100%; overflow-x:hidden !important; }
  /* Guard common offenders */
  .hero-wrap, .hero-bg, .container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl{
    max-width:100% !important; width:100% !important; margin-left:0; margin-right:0;
  }
  img, svg, video{ max-width:100%; height:auto; }
  /* If any child spills via transforms/abs-pos, clip at hero level */
  .hero-wrap, .hero-bg{ overflow:hidden; }
  /* Avoid gutters causing overflow on tiny widths */
  .row{ --bs-gutter-x: 1rem; }
}



/* === Global H3 sizes per design === */
/* Desktop (>=992px) */
@media (min-width: 992px){
  h3{ font-size: 31px; }
}
/* Tablet (768–991.98px) */
@media (min-width: 768px) and (max-width: 991.98px){
  h3{ font-size: 20px; }
}
/* Mobile (<=767.98px) */
@media (max-width: 767.98px){
  h3{ font-size: 20px; }
}



/* === HERO mobile: allow content to define height (avoid cut text) === */
@media (max-width: 767.98px){
  .hero-wrap{
    aspect-ratio: auto !important;   /* unlock fixed ratio */
    min-height: unset !important;
    height: auto !important;
    background-position: center top !important;
    background-size: contain !important;
    overflow: visible !important;     /* don't clip taller content */
    padding-top: 12px;                /* small breath under header */
  }
  .hero-bg, .hero-section{ overflow: visible !important; }
  .hero-content, .hero-overlay{
    position: static !important;
    margin: 0 auto !important;
    text-align: center !important;
    padding: 0 16px;
  }
}



/* === Minimal anchor-safe mobile overlay lock === */
section { scroll-margin-top: calc(var(--navbar-h) + 8px); }
@media (max-width: 767.98px){
  body.menu-open{ overflow: hidden !important; }
}



/* Anchor offset + simple lock (LOCAL QA hardfix) */
section { scroll-margin-top: calc(var(--navbar-h) + 8px); }
@media (max-width: 767.98px){
  body.menu-open { overflow: hidden !important; }
}

\n
/* Anchor offset + simple lock */
section { scroll-margin-top: calc(var(--navbar-h) + 8px); }
@media (max-width: 767.98px){
  body.menu-open { overflow: hidden !important; }
}
\n

/* Ensure overlay sits above header and links are visible */
.dua-overlay{ z-index: 1100; }
.dua-overlay .nav-link{ display:block; }

\n
/* Anchor offset + simple lock (transition-safe) */
section { scroll-margin-top: calc(var(--navbar-h) + 8px); }
@media (max-width: 767.98px){
  body.menu-open { overflow: hidden !important; }
}
\n

/* Mobile-only centering for everything inside .contacto-left */
@media (max-width: 767.98px){
  .contacto-left{ text-align:center; }
  .contacto-left .contacto-logo{ display:block; margin-left:auto; margin-right:auto; }
  .contacto-left .contacto-social{ justify-content:center !important; }
  .contacto-left .col-12{ display:flex; justify-content:center; }
  .contacto-left .col-12 > *{ max-width: 100%; }
}



/* === Mobile: center the entire Contacto section === */
@media (max-width: 767.98px){
  #contacto{ text-align: center; }
  #contacto .row{ justify-content: center !important; }
  #contacto .contacto-left,
  #contacto .contacto-right{ text-align: center; }

  /* Center common blocks */
  #contacto .contacto-logo{ display:block; margin-left:auto; margin-right:auto; }
  #contacto .contacto-social{ justify-content:center !important; }
  #contacto .contacto-trama-wrap,
  #contacto .contacto-trama{ display:block; margin-left:auto; margin-right:auto; }

  /* Form column alignment */
  #contacto .contacto-right{ align-items:center !important; }
  #contacto .contacto-right .col-12{ display:flex; justify-content:center; }
  #contacto .contacto-right > *{ width:100%; max-width:560px; margin-left:auto; margin-right:auto; }

  /* Keep input text left-aligned while the section is centered */
  #contacto .contacto-right input,
  #contacto .contacto-right textarea,
  #contacto .contacto-right select{ text-align:left; }
  #contacto .contacto-right .btn{ display:inline-flex; margin-left:auto; margin-right:auto; }
}



/* Mobile: add vertical spacing between form (.contacto-right) and left column (.contacto-left) */
@media (max-width: 767.98px){
  #contacto .contacto-left{ margin-top: 2rem; } /* 32px space above icons/logo/trama */
}



/* === Mobile-only typography for section titles and paragraphs === */
@media (max-width: 767.98px){
  /* Section H3 titles */
  #quienes h3, #servicios h3, #enfoque h3, #equipo h3, #contacto h3{ font-size: 20px; }
  /* Section paragraphs */
  #quienes p, #servicios p, #enfoque p, #equipo p, #contacto p{ font-size: 14.5px; }
}

/* === Mobile: FORCE Servicios accordion to 14.5px and Enfoque card text to 21px === */
@media (max-width: 767.98px){
  /* Servicios: accordion headers (buttons) */
  #servicios .accordion .accordion-button,
  #servicios .accordion .accordion-button p{
    font-size: 14.5px !important;
    line-height: 1.35;
  }
  /* Servicios: accordion body content */
  #servicios .accordion .accordion-body,
  #servicios .accordion .accordion-body p,
  #servicios .accordion .accordion-body li{
    font-size: 14.5px !important;
    line-height: 1.5;
  }
  /* Enfoque cards: label/text */
  #enfoque .enfoque-card .enfoque-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: 31.52px; color: #231513; }
}



/* === Mobile & Tablet: limit Equipo card images to 224.02px and center === */
@media (max-width: 991.98px){
  #equipo .equipo-photo,
  #equipo .equipo-card img{
    max-width: 224.02px;
    width: auto;
    height: auto;
    display: block;
    
    
  }
}



/* Section inner shell to avoid edge-hugging on mobile/tablet */
@media (max-width: 767.98px){
  .dua-shell{ padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 768px) and (max-width: 991.98px){
  .dua-shell{ padding-left: 24px; padding-right: 24px; }
}
@media (min-width: 992px){
  .dua-shell{ padding-left: 0; padding-right: 0; }
}



@media (max-width: 991.98px){
  #equipo .equipo-photo{ margin-left: 0 !important; margin-right: 0 !important; }
}



/* Guard: ensure nested spacer columns have no side padding */
.dua-nested-spacer-row > [class*="col-"]{ padding-left:0 !important; padding-right:0 !important; }



@media (max-width: 767.98px){
  .hero-wrap{ background-size: cover !important; }
}


/* Mobile: Contacto con padding horizontal simétrico */
@media (max-width: 767.98px){
  #contacto .container-xl.px-0{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}


/* Mobile: ajustar gap bajo el H3 de Enfoque */
@media (max-width: 767.98px){
  #enfoque .row.align-items-center.mb-5{
    margin-bottom: 1rem !important;
  }
}



/* === Mobile: Enfoque left-aligned (override any center) === */
@media (max-width: 767.98px){
  #enfoque .col-lg-4.d-flex,
  #enfoque .row .d-flex,
  #enfoque .enfoque-card { position: relative; width: 100%; max-width: 300px; display: block; }
}



/* === Mobile: reset Enfoque rows to default start alignment === */
@media (max-width: 767.98px){
  #enfoque .row{ justify-content: flex-start !important; }
}


/* Mobile: ensure Enfoque items align left, no centering */
@media (max-width: 767.98px){
  #enfoque .row.g-4 .col-lg-4{ display: flex; }
  #enfoque .row.g-4 .col-lg-4{ justify-content: flex-start !important; }
}


/* Safety: Enfoque columns left-justified */
@media (max-width: 767.98px){
  #enfoque .row.g-4 > .col-lg-4{ justify-content:flex-start !important; }
}


/* === Mobile: Servicios accordion lines span into the left spacer (col-2) === */
@media (max-width: 767.98px){
  #servicios .dua-accordion .accordion-item{
    position: relative;
    border-top: none !important;
    border-bottom: none !important;
  }
  #servicios .dua-accordion .accordion-item::after{
    content: "";
    position: absolute;
    left: calc(-100% * 2 / 12);
    right: 0;
    bottom: 0;
    height: 1.4px;
    background: #231513;
  }
  #servicios .dua-accordion .accordion-item:last-child::after{
    display: none;
  }
}



/* === Mobile: add bottom black line after the last accordion item (Identidad y desarrollo de marca) === */
@media (max-width: 767.98px){
  #servicios .dua-accordion .accordion-item:last-child::after{
    display: block !important;
    content: "";
    position: absolute;
    left: calc(-100% * 2 / 12);
    right: 0;
    bottom: -1.4px;
    height: 1.4px;
    background: #231513;
  }
}



/* === Unified accordion lines (all viewports) === */
#servicios .dua-accordion .accordion-item {
  position: relative;
  border: none !important;
}

/* Common line style for all separators */
#servicios .dua-accordion .accordion-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.4px;
  background: #231513;
}

/* Extend lines fully across left spacer in mobile view */
@media (max-width: 767.98px){
  #servicios .dua-accordion .accordion-item::after{
    left: calc(-100% * 2 / 12);
    right: 0;
  }
}

/* Keep final line visible across all devices */
#servicios .dua-accordion .accordion-item:last-child::after {
  display: block !important;
}


/* === Mobile: Enfoque cards fixed width (~130.63px), centered, tidy wrapping === */
@media (max-width: 767.98px){
  /* Reset any previous offset so we can center cleanly within col-10 */
  #enfoque .row.g-4{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 12px;              /* row-gap:16px, column-gap:12px */
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* Each column becomes a fixed block around 3.5 cols ≈ 130.63px */
  #enfoque .row.g-4 > .col-lg-4{
    flex: 0 0 auto;
    width: 130.63px;
    max-width: 130.63px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex;
    justify-content: center;
  }
  /* Ensure the card fills its column width neatly */
  #enfoque .enfoque-card{
    width: 100%;
    max-width: 130.63px;
  }
}


/* === Mobile: Enfoque -> one card per row, aligned to left baseline === */
@media (max-width: 767.98px){
  #enfoque .row.g-4{
    display: flex;
    flex-wrap: wrap;
    row-gap: 16px;
  }
  #enfoque .row.g-4 > .col-lg-4{
    flex: 0 0 100% !important;
    max-width: 100% !important;
    display: flex;
    justify-content: flex-start !important; /* mantener guía izquierda */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* The card can have its natural max-width (remove previous fixed width) */
  #enfoque .enfoque-card{
    width: auto !important;
    max-width: 100% !important;
  }
}


/* === Desktop Enfoque: center cards and unify sizes === */
@media (min-width: 992px){
  #enfoque .row.g-4 > .col-lg-4{
    display: flex;
    justify-content: center;
  }
  #enfoque .enfoque-card{
    width: 230px;
    max-width: 230px;
    position: relative;
  }
  #enfoque .enfoque-shape{
    width: 100%;
    height: auto;
    display: block;
  }
  #enfoque .enfoque-text{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}


/* === Desktop Enfoque: equal-height cards and baseline-aligned shapes === */
@media (min-width: 992px){
  /* Center each col content and keep equal vertical reference */
  #enfoque .row.g-4 > .col-lg-4{
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }
  /* Equal card size for the three items */
  #enfoque .enfoque-card{
    position: relative;
    width: 300px;          /* unified visual width */
    height: 360px;         /* equal height to align baseline */
  }
  /* Place the white shape anchored to the bottom baseline */
  #enfoque .enfoque-card picture,
  #enfoque .enfoque-shape{
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
  }
  /* Center text over the shape area */
  #enfoque .enfoque-text{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}


/* === Desktop Enfoque (compact + centered): reduce vertical whitespace and center shapes === */
@media (min-width: 992px){
  /* Center columns vertically to a common middle line */
  #enfoque .row.g-4{
    align-items: center;
  }
  #enfoque .row.g-4 > .col-lg-4{
    display: flex;
    justify-content: center;
    align-items: center;
  }
  /* Compact, consistent card box */
  #enfoque .enfoque-card{
    position: relative;
    width: 260px;       /* ligeramente más angosto para mejor proporción */
    height: 280px;      /* más bajo para quitar aire arriba/abajo */
  }
  /* Center the white shape inside the card (both axes) */
  #enfoque .enfoque-card picture,
  #enfoque .enfoque-shape{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
  }
  /* Text perfectly centered over the shape */
  #enfoque .enfoque-text{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}


/* === Mobile: hero background fully visible (no cut) === */
@media (max-width: 767.98px){
  .hero-wrap{
    background-size: contain !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
  }
}

/* Desktop: ajustar tamaño de textos clave en ENFOQUE a 20px */
@media (min-width: 992px){
  .enfoque-section .enfoque-head,
  .enfoque-section .enfoque-foot{
    font-size: 20px;
  }
}


/* === CTA button and navbar underline imported from index_menu_underline === */

.btn-dua{border-radius:12px; padding:.85rem 1.25rem; font-weight:700; min-height:52px; -webkit-tap-highlight-color:transparent;}
.btn-dua-primary{background:var(--dua-yellow); color:#111; transition:background .25s ease, box-shadow .25s ease, transform .06s ease;}
.btn-dua-primary:hover{background:linear-gradient(180deg,#FFE173 0%, #FACF0E 100%); box-shadow:0 10px 28px rgba(250,207,14,.35); transform:translateY(-1px);}
.btn-dua-primary:active{transform:translateY(0); box-shadow:0 6px 16px rgba(250,207,14,.25);}
.btn-dua-outline{background:linear-gradient(#fff,#fff) padding-box, var(--dua-gradient) border-box; border:2px solid transparent; color:#111; font-size: 20px;}


/* Option B: Gradient underline (bar remains white/translucent) */
.navbar-underline{
  position: relative;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(120%) blur(8px);
}
.navbar-underline::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height: 2px;
  background: var(--dua-gradient);
  opacity: .95;
}
.navbar-underline .nav-link{
  position: relative;
  color: #111;

}

.navbar-underline .nav-link:hover,
.navbar-underline .nav-link:focus,
.navbar-underline .nav-link:active{
  font-weight: 700;
}

.navbar-underline .nav-link.active{
  font-weight: 700;
}

/* Overlay / mobile menu: current section */
.dua-overlay-nav .nav-link.active{
  font-weight: 700;
}
/* .navbar-underline .nav-link::after{
  content:"";
  position:absolute; left:.5rem; right:.5rem; bottom:.35rem;
  height: 2px;
  background: var(--dua-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .15s ease;
}
.navbar-underline .nav-link:hover::after,
.navbar-underline .nav-link:focus::after,
.navbar-underline .nav-link.active::after{
  transform: scaleX(1);
}*/





/* =========================================
   Accesibilidad y utilitarios
   ========================================= */
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================================
   Animaciones de aparición por scroll
   ========================================= */
[data-animate]{
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .6s ease-out,
    transform .6s ease-out;
  transition-delay: var(--dua-animate-delay, 0s);
  will-change: opacity, transform;
}

[data-animate].is-visible{
  opacity: 1;
  transform: none;
}

/* Respeto a usuarios con "reducir movimiento" */
@media (prefers-reduced-motion: reduce){
  [data-animate]{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================
   Botones outline DUA (Hero + Contacto)
   ========================================= */
.btn-dua-outline:hover,
.btn-dua-outline:focus{
  background: linear-gradient(#fff,#fff) padding-box, var(--dua-yellow) border-box;
  color: var(--dua-yellow);
}
