/* =========================================================
   AdQuali Consultoría — hoja de estilos compartida
   Contiene SOLO lo que se repite en todas las páginas:
   tipografías, colores de marca, cabecera, pie de página,
   botones, tarjetas, formularios y animaciones base.
   El diseño propio de cada página va en su propio archivo HTML.
   ========================================================= */

/* --- Tipografías (archivos locales, sin servicios externos) --- */
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/Fraunces-400-normal.woff2') format('woff2')}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/Fraunces-500-normal.woff2') format('woff2')}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/Fraunces-600-normal.woff2') format('woff2')}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/Manrope-400-normal.woff2') format('woff2')}
@font-face{font-family:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/Manrope-500-normal.woff2') format('woff2')}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/Manrope-600-normal.woff2') format('woff2')}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/Manrope-700-normal.woff2') format('woff2')}

/* --- Tokens de marca --- */
:root{
  --background:#FCFAF6;
  --foreground:#172330;
  --card:#FFFFFF;
  --primary:#1F2D3B;
  --primary-foreground:#FBF8F4;
  --secondary:#F3EDE6;
  --muted:#F4EFE9;
  --muted-foreground:#596471;
  --accent:#FFE5D2;
  --brand:#E76C2B;
  --brand-strong:#D05418;
  --brand-foreground:#FDFBF9;
  --ink:#101B28;
  --ink-foreground:#F5F1EC;
  --ink-muted:#9CA6B1;
  --border:#E3DDD5;
  --input:#DCD6CF;
  --shadow-soft:0 1px 2px rgba(16,27,40,.06), 0 12px 32px -12px rgba(16,27,40,.18);
  --shadow-brand:0 14px 30px -12px rgba(231,108,43,.55);
  --gradient-ink:linear-gradient(160deg,#101B28 0%,#34292B 140%);
  --radius:6px;
}

/* --- Base --- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--background);color:var(--foreground);font-family:'Manrope',ui-sans-serif,system-ui,sans-serif;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4{font-family:'Fraunces',ui-serif,Georgia,serif;font-weight:500;letter-spacing:-.02em;line-height:1.12;margin:0}
p{margin:0}
ul{margin:0;padding:0;list-style:none}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit}
svg{display:block}

.container{margin-inline:auto;width:100%;max-width:76rem;padding-inline:1.5rem}
.section{padding-block:6rem}
.section-tight{padding-block:5rem}
.eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--brand)}
.lead{font-size:1.125rem;line-height:1.75;color:var(--muted-foreground)}
.title-xl{font-size:clamp(2.25rem,4.6vw,3.5rem);color:var(--primary)}
.title-lg{font-size:clamp(2rem,3.6vw,3rem);color:var(--primary)}
.text-muted{color:var(--muted-foreground)}
.center{text-align:center}

/* --- Cabecera --- */
.site-header{position:sticky;top:0;z-index:40;background:rgba(252,250,246,.9);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid rgba(227,221,213,.7)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:5rem;gap:1rem}
.brand{display:inline-flex;align-items:center;gap:.75rem;color:var(--primary)}
.brand-mark{height:2.25rem;width:auto}
.brand-mark .mark-a{fill:var(--brand)}
.brand-mark .mark-b{fill:currentColor}
.brand-text{display:flex;flex-direction:column;line-height:1}
.brand-name{font-family:'Fraunces',serif;font-size:1.5rem;font-weight:500;letter-spacing:-.01em}
.brand-sub{margin-top:.25rem;font-size:.6rem;font-weight:600;letter-spacing:.42em;opacity:.8}
.nav{display:none;align-items:center;gap:2rem}
.nav a{font-size:.875rem;font-weight:600;color:var(--muted-foreground);transition:color .2s}
.nav a:hover{color:var(--primary)}
.nav a.active{color:var(--primary);text-decoration:underline;text-decoration-color:var(--brand);text-decoration-thickness:2px;text-underline-offset:8px}
.menu-btn{display:inline-flex;align-items:center;justify-content:center;height:2.5rem;width:2.5rem;border:0;background:none;border-radius:var(--radius);color:var(--primary);cursor:pointer}
.mobile-nav{border-top:1px solid var(--border);background:var(--background)}
.mobile-nav[hidden]{display:none}
.mobile-nav a{display:block;padding:.75rem 0;font-size:1rem;font-weight:600;color:var(--muted-foreground)}
.mobile-nav a.active{color:var(--brand)}
@media (min-width:768px){
  .nav{display:flex}
  .menu-btn{display:none}
  .mobile-nav{display:none}
}

/* --- Botones --- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;white-space:nowrap;border-radius:var(--radius);font-size:.875rem;font-weight:500;cursor:pointer;border:1px solid transparent;transition:background-color .2s,color .2s,border-color .2s,transform .2s}
.btn svg{width:1rem;height:1rem;flex:none}
.btn-md{height:2.25rem;padding-inline:1rem}
.btn-lg{height:2.5rem;padding-inline:2rem}
.btn-xl{height:3rem;padding-inline:1.75rem;font-size:1rem}
.btn-brand{background:var(--brand);color:var(--brand-foreground);font-weight:600;box-shadow:var(--shadow-brand)}
.btn-brand:hover{background:var(--brand-strong);transform:translateY(-2px)}
.btn-outline{background:var(--background);border-color:var(--input);box-shadow:var(--shadow-soft)}
.btn-outline:hover{background:var(--accent)}
.btn-ink-outline{border-color:rgba(245,241,236,.3);color:var(--ink-foreground);font-weight:600}
.btn-ink-outline:hover{background:rgba(245,241,236,.1)}
.btn-block{width:100%}

/* --- Tarjetas y bloques --- */
.card{background:var(--card);border:1px solid var(--border);border-radius:.5rem;box-shadow:var(--shadow-soft)}
.section-ink{background:var(--gradient-ink);color:var(--ink-foreground)}
.section-ink h2,.section-ink h3{color:var(--ink-foreground)}
.section-soft{background:rgba(243,237,230,.6)}
.badge{display:inline-block;border:1px solid rgba(245,241,236,.2);border-radius:999px;padding:.25rem .75rem;font-size:.75rem;font-weight:600;letter-spacing:.04em}
.list-check{display:grid;gap:.75rem}
.list-check li{display:flex;gap:.75rem}
.list-check svg{width:1rem;height:1rem;flex:none;margin-top:.35rem;color:var(--brand)}
.divider{border:0;border-top:1px solid var(--border);margin:0}

/* --- Formularios --- */
.field{display:flex;flex-direction:column;gap:.5rem}
.field label,.field legend{font-size:.875rem;font-weight:500}
.field input,.field textarea{width:100%;font:inherit;color:var(--foreground);background:var(--card);border:1px solid var(--input);border-radius:var(--radius);padding:.5rem .75rem}
.field textarea{resize:vertical;min-height:7rem}
.field input:focus,.field textarea:focus{outline:2px solid var(--brand);outline-offset:1px;border-color:var(--brand)}
.field .error{font-size:.75rem;color:#B42318;display:none}
.field.invalid input,.field.invalid textarea{border-color:#B42318}
.field.invalid .error{display:block}

/* --- Pie de página --- */
.site-footer{background:var(--gradient-ink);color:var(--ink-foreground)}
.footer-grid{display:grid;gap:3rem;padding-block:4rem}
.footer-grid .brand{color:var(--ink-foreground)}
.footer-about{margin-top:1.5rem;max-width:24rem;font-size:.875rem;line-height:1.7;color:var(--ink-muted)}
.footer-title{font-size:.75rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--brand);font-family:'Manrope',sans-serif}
.footer-list{margin-top:1.25rem;display:grid;gap:.75rem;font-size:.875rem;color:var(--ink-muted)}
.footer-list a:hover{color:var(--ink-foreground)}
.footer-contact li{display:flex;gap:.75rem}
.footer-contact svg{width:1rem;height:1rem;flex:none;margin-top:.3rem;color:var(--brand)}
.footer-bottom{border-top:1px solid rgba(245,241,236,.1)}
.footer-bottom-inner{display:flex;flex-direction:column;gap:.5rem;padding-block:1.5rem;font-size:.75rem;color:var(--ink-muted)}
@media (min-width:640px){.footer-bottom-inner{flex-direction:row;justify-content:space-between}}
@media (min-width:768px){.footer-grid{grid-template-columns:1.4fr 1fr 1fr}}

/* --- Animaciones --- */
.rise{animation:rise-in .8s cubic-bezier(.2,.7,.2,1) both}
.rise-2{animation-delay:.1s}
.rise-3{animation-delay:.2s}
@keyframes rise-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.reveal{opacity:0;transform:translateY(14px);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1)}
.reveal.is-visible{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .rise,.reveal{animation:none;opacity:1;transform:none;transition:none}
}


/* =========================================================
   AJUSTE VISUAL ADQUALI — réplica de las referencias Lovable
   Mantiene HTML independiente y recursos locales.
   ========================================================= */
:root{
  --background:#FCFAF6;
  --foreground:#202D3A;
  --primary:#202D3A;
  --brand:#EB6A28;
  --brand-strong:#D95B1D;
  --secondary:#F5F0E9;
  --muted:#F5F0E9;
  --muted-foreground:#66717D;
  --border:#E7E0D8;
  --gradient-ink:linear-gradient(120deg,#111D29 0%,#20212A 100%);
}
body{font-size:14px;line-height:1.55}
.container{max-width:76rem;padding-inline:1.5rem}
.section{padding-block:4rem}
.section-tight{padding-block:3.5rem}
.eyebrow{font-size:10px;letter-spacing:.2em}
.title-xl{font-size:clamp(2.25rem,4vw,2.8rem);line-height:1.12}
.title-lg{font-size:clamp(1.9rem,3vw,2.35rem)}
.lead{font-size:14px;line-height:1.65}
.site-header{height:56px}
.header-inner{height:56px;max-width:76rem}
.brand{gap:8px}
.brand-mark{height:27px}
.brand-name{font-size:18px}
.brand-sub{font-size:7px;letter-spacing:.35em;margin-top:3px}
.nav{gap:1.35rem}
.nav a{font-size:12px;font-weight:500}
.nav .btn{font-size:11px}
.btn-md{height:32px;padding-inline:13px}
.btn-lg{height:36px;padding-inline:16px}
.btn-xl{height:42px;padding-inline:18px;font-size:13px}
.card{border-radius:5px;box-shadow:0 5px 14px rgba(16,27,40,.08)}
.footer-grid{gap:2.5rem;padding-block:3rem;max-width:76rem}
.footer-about{font-size:12px;line-height:1.65;margin-top:1rem}
.footer-title{font-size:10px}
.footer-list{font-size:12px;gap:.55rem;margin-top:1rem}
.footer-bottom-inner{font-size:10px;padding-block:1rem}
@media(min-width:768px){
  .section{padding-block:4rem}
  .section-tight{padding-block:3.5rem}
  .footer-grid{grid-template-columns:1.3fr 1fr 1fr}
}
@media(max-width:767px){
  .site-header{height:auto;min-height:56px}
  .header-inner{height:56px}
  .section,.section-tight{padding-block:2.75rem}
  .footer-grid{padding-block:2.5rem}
}

/* Inicio */
.page-home .hero-inner{padding-block:3.5rem;min-height:0}
.page-home .hero-copy{max-width:440px}
.page-home .hero-title{font-size:clamp(2.45rem,5vw,3.25rem);margin-top:.9rem;line-height:1.04}
.page-home .hero-lead{font-size:14px;line-height:1.6;margin-top:1rem;max-width:390px}
.page-home .hero-actions{margin-top:1.5rem}
.page-home .pillars{padding-block:.8rem;gap:.5rem 1rem}
.page-home .pillars span{font-size:11px}
.page-home .hero-img-desk,.page-home .hero-fade{height:100%}
@media(min-width:1024px){
 .page-home .hero-inner{min-height:335px;padding-block:0}
 .page-home .hero-img-desk,.page-home .hero-fade{width:60%}
}
.page-home .section{padding-block:3.25rem}
.page-home .clients li{height:5rem}
.page-home .clients img{max-height:4rem}

/* Nosotros: cabecera, tarjetas, directora y socios */
.page-about .about{margin-top:1.5rem;gap:12px}
.page-about .about .card{padding:1.2rem 1.35rem}
.page-about .about .n{font-size:1.8rem}
.page-about .about p{font-size:13px;line-height:1.55;margin-top:.45rem}
.page-about .director{grid-template-columns:180px 1fr;gap:64px;align-items:start}
.page-about .photo{max-width:170px;margin:0}
.page-about .photo img{aspect-ratio:4/5;object-fit:cover;object-position:top}
.page-about .director .title-lg{font-size:2rem}
.page-about .director .list-check{gap:.65rem;margin-top:1.1rem!important}
.page-about .director .list-check li{font-size:12px;line-height:1.5;gap:.5rem}
.page-about .badges{margin-top:1.25rem}
.page-about .badge{font-size:9px;padding:3px 8px}
.page-about .clients{margin-top:2rem;gap:1.5rem}
.page-about .clients li{height:5.5rem}
.page-about .clients img{max-height:4rem}
@media(max-width:767px){
 .page-about .director{grid-template-columns:1fr;gap:2rem}
 .page-about .photo{margin-inline:auto}
}

/* Servicios */
.page-services .srv{gap:2.5rem}
.page-services .srv h2{font-size:1.75rem}
.page-services .srv p,.page-services .srv li{font-size:12px;line-height:1.55}
.page-services .srv img{border-radius:4px}
.page-services .standards{margin-top:2.5rem}
.page-services .standards>div{padding:1rem}
.page-services .standards h3{font-size:14px}
.page-services .standards ul{font-size:11px}
.page-services .training{gap:1rem}
.page-services .training .card{padding:1.25rem}
.page-services .training h3{font-size:15px}
.page-services .training li{font-size:12px}

/* Metodología */
.page-method .layout{gap:3rem}
.page-method .wheel{max-width:245px}
.page-method .wheel-grid{gap:3px}
.page-method .wheel-grid .k{font-size:2.4rem}
.page-method .wheel-grid .e{font-size:9px}
.page-method .wheel-core span{font-size:13px}
.page-method .phva-list{gap:.65rem}
.page-method .phva-list li{grid-template-columns:2rem 1fr;gap:.8rem;padding:.5rem}
.page-method .phva-list .k{font-size:1.8rem}
.page-method .phva-list h2{font-size:1.1rem}
.page-method .phva-list p{font-size:12px;line-height:1.5}
.page-method .stages{margin-top:2rem}
.page-method .stages>li{padding:1.25rem}
.page-method .stages .n{font-size:2.8rem}
.page-method .stages h3{font-size:14px;margin-top:1rem}
.page-method .stages p.t{font-size:11px;line-height:1.5}
@media(min-width:1024px){.page-method .layout{grid-template-columns:.9fr 1.2fr}}

/* Contacto */
.page-contact .contact-grid{grid-template-columns:.78fr 1.15fr;gap:2.5rem;padding-top:4.2rem;padding-bottom:4.2rem}
.page-contact .info{gap:1rem}
.page-contact .info-card{padding:1rem;gap:.75rem}
.page-contact .info-card .ico{width:2rem;height:2rem}
.page-contact .info-card .lb{font-size:9px}
.page-contact .info-card .vl{font-size:12px;line-height:1.5}
.page-contact .qr{padding:.9rem;gap:.9rem}
.page-contact .qr img{width:4rem;height:4rem}
.page-contact .qr p{font-size:11px}
.page-contact form.frm{padding:1.4rem;gap:1rem}
.page-contact .field{gap:.25rem}
.page-contact .field label,.page-contact .field legend{font-size:11px}
.page-contact .field input{height:31px;padding:.35rem .6rem;font-size:12px}
.page-contact .field textarea{min-height:5.2rem;font-size:12px}
.page-contact .chip{font-size:10px;padding:.35rem .7rem}
.page-contact .frm .btn{font-size:12px}
@media(max-width:767px){
 .page-contact .contact-grid{grid-template-columns:1fr;gap:1.5rem;padding-block:2.5rem}
}
