/*
Theme Name: HiloContable
Theme URI: https://hilocontable.com
Author: HiloContable
Description: Landing page profesional para servicios contables especializados en empresas de confección.
Version: 1.5.0
Text Domain: hilocontable
*/

:root{
  --hc-ink:#0F172A;
  --hc-ink-2:#18242f;
  --hc-cream:#FAF7F2;
  --hc-white:#ffffff;
  --hc-thread:#D4A259;
  --hc-thread-dark:#a76d28;
  --hc-teal:#315f61;
  --hc-muted:#6B7280;
  --hc-border:#e5dfd4;
  --hc-shadow:0 18px 55px rgba(16,24,32,.10);
  --hc-radius:22px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--hc-white);color:var(--hc-ink);line-height:1.6}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.hc-container{width:min(1160px,calc(100% - 40px));margin-inline:auto}
.hc-section{padding:88px 0}
.hc-section--cream{background:var(--hc-cream)}
.hc-section--ink{background:var(--hc-ink);color:var(--hc-white)}
.hc-eyebrow{font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;font-weight:800;color:var(--hc-thread);margin-bottom:12px}
h1,h2,h3{line-height:1.08;margin:0 0 18px;letter-spacing:-.035em}
h1{font-size:clamp(2.75rem,7vw,5.8rem);max-width:850px}
h2{font-size:clamp(2.1rem,4.5vw,3.8rem);max-width:800px}
h3{font-size:1.35rem}
p{margin:0 0 18px;color:var(--hc-muted)}
.hc-section--ink p{color:#cbd2d8}
.hc-lead{font-size:clamp(1.08rem,2vw,1.35rem);max-width:760px}
.hc-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:14px 22px;border-radius:999px;font-weight:800;border:1px solid transparent;transition:.2s ease;cursor:pointer}
.hc-btn--primary{background:var(--hc-thread);color:#16100a}
.hc-btn--primary:hover{background:#d89b4b;transform:translateY(-1px)}
.hc-btn--secondary{border-color:#d6d9dc;background:rgba(255,255,255,.75)}
.hc-btn--secondary:hover{border-color:var(--hc-thread)}
.hc-section--ink .hc-btn--secondary{color:white;border-color:#49545e;background:transparent}
.hc-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.hc-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.93);backdrop-filter:blur(14px);border-bottom:1px solid rgba(20,25,30,.07)}
.hc-nav{height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.hc-brand{display:flex;align-items:center;gap:11px;font-size:1.18rem;font-weight:900;letter-spacing:-.03em}
.hc-mark{width:40px;height:40px;border-radius:13px;border:2px solid var(--hc-ink);display:grid;place-items:center;position:relative;overflow:hidden}
.hc-mark:before{content:"";width:28px;height:15px;border:2px solid var(--hc-thread);border-radius:50%;transform:rotate(-18deg);position:absolute}
.hc-mark:after{content:"";height:46px;width:2px;background:var(--hc-ink);transform:rotate(38deg);position:absolute;right:9px;top:-4px}
.hc-menu{display:flex;align-items:center;gap:24px;font-size:.94rem;font-weight:700}
.hc-menu a:hover{color:var(--hc-thread-dark)}
.hc-menu-toggle{display:none;border:0;background:none;font-size:1.6rem}
.hc-hero{padding:86px 0 64px;overflow:hidden;position:relative}
.hc-hero:before{content:"";position:absolute;inset:-20% -20% auto 48%;height:560px;background:radial-gradient(circle at center,rgba(200,138,61,.18),transparent 60%);pointer-events:none}
.hc-hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:center}
.hc-hero h1 em{font-family:Georgia,serif;font-weight:500;color:var(--hc-thread-dark)}
.hc-proof{display:flex;flex-wrap:wrap;gap:18px;margin-top:34px;padding-top:24px;border-top:1px solid var(--hc-border)}
.hc-proof span{font-size:.9rem;font-weight:750;color:#44515a}
.hc-thread-card{min-height:520px;border-radius:34px;background:var(--hc-ink);position:relative;overflow:hidden;box-shadow:var(--hc-shadow);padding:34px;color:white;display:flex;flex-direction:column;justify-content:flex-end}
.hc-thread-card:before,.hc-thread-card:after{content:"";position:absolute;border:3px solid var(--hc-thread);border-radius:50%;opacity:.86}
.hc-thread-card:before{width:420px;height:190px;top:40px;left:-90px;transform:rotate(-16deg)}
.hc-thread-card:after{width:310px;height:310px;top:100px;right:-130px;transform:rotate(28deg)}
.hc-thread-line{position:absolute;inset:0;background:linear-gradient(138deg,transparent 0 49%,rgba(255,255,255,.14) 49.2% 49.45%,transparent 49.6%);transform:scale(1.4)}
.hc-card-label{position:relative;z-index:2;font-size:.78rem;text-transform:uppercase;letter-spacing:.14em;color:#e8ba78;font-weight:800}
.hc-card-title{position:relative;z-index:2;font-size:2rem;line-height:1.12;max-width:400px;font-weight:800;margin-top:8px}
.hc-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:40px}
.hc-grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:28px;margin-top:40px}
.hc-card{border:1px solid var(--hc-border);border-radius:var(--hc-radius);padding:26px;background:white;box-shadow:0 8px 24px rgba(16,24,32,.04)}
.hc-card .hc-num{width:44px;height:44px;border-radius:14px;background:var(--hc-cream);color:var(--hc-thread-dark);font-weight:900;display:grid;place-items:center;margin-bottom:18px}
.hc-dark-card{background:#16212b;border:1px solid #27343f;border-radius:var(--hc-radius);padding:28px}
.hc-list{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:10px}
.hc-list li{display:flex;gap:10px;align-items:flex-start;color:#4d5962}
.hc-list li:before{content:"✓";font-weight:900;color:var(--hc-thread-dark)}
.hc-section--ink .hc-list li{color:#d8dde1}
.hc-pain{display:grid;grid-template-columns:.9fr 1.1fr;gap:50px;align-items:start}
.hc-pain-stack{display:grid;gap:14px}
.hc-pain-item{padding:19px 20px;border:1px solid var(--hc-border);border-radius:16px;background:white;font-weight:750}
.hc-services-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:40px}
.hc-service{padding:24px;border:1px solid var(--hc-border);border-radius:18px;background:white}
.hc-service small{color:var(--hc-thread-dark);font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.hc-plans{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:44px;align-items:stretch}
.hc-plan{border:1px solid var(--hc-border);border-radius:24px;padding:30px;background:white;display:flex;flex-direction:column}
.hc-plan--featured{border:2px solid var(--hc-thread);box-shadow:0 22px 70px rgba(200,138,61,.17);transform:translateY(-8px)}
.hc-plan-badge{display:inline-flex;align-self:flex-start;background:#f7e8d3;color:#744719;border-radius:999px;padding:6px 10px;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em;margin-bottom:15px}
.hc-plan .hc-btn{margin-top:auto}
.hc-kpi-band{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#2a343e;border:1px solid #2a343e;border-radius:22px;overflow:hidden;margin-top:44px}
.hc-kpi{background:#141e27;padding:25px}
.hc-kpi strong{display:block;font-size:1.25rem;color:white}
.hc-kpi span{font-size:.88rem;color:#9fabB5}
.hc-process{counter-reset:steps;display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:40px}
.hc-step{counter-increment:steps;border-top:2px solid var(--hc-border);padding-top:18px}
.hc-step:before{content:"0" counter(steps);display:block;color:var(--hc-thread-dark);font-weight:900;margin-bottom:10px}
.hc-about{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}
.hc-about-visual{border-radius:28px;background:linear-gradient(160deg,var(--hc-ink),#283844);min-height:470px;padding:30px;color:white;display:flex;align-items:flex-end;position:relative;overflow:hidden}
.hc-about-visual:before{content:"";position:absolute;width:360px;height:360px;border:2px solid var(--hc-thread);border-radius:50%;top:-130px;right:-80px}
.hc-about-visual p{position:relative;z-index:2;color:#d8dee3;font-size:1.12rem}
.hc-form-wrap{display:grid;grid-template-columns:.8fr 1.2fr;gap:40px;align-items:start}
.hc-form-shell{background:white;border-radius:24px;padding:28px;color:var(--hc-ink);box-shadow:var(--hc-shadow)}
.hc-form-placeholder{border:1px dashed #c8c3ba;border-radius:16px;padding:26px;background:#fbfaf7;color:#606c75}
.hc-faq{display:grid;gap:12px;margin-top:34px}
.hc-faq details{border:1px solid var(--hc-border);border-radius:16px;padding:18px 20px;background:white}
.hc-faq summary{cursor:pointer;font-weight:850}
.hc-faq details p{padding-top:12px;margin:0}
.hc-footer{background:#0c141b;color:#d9dfe4;padding:52px 0 24px}
.hc-footer-grid{
    display:grid;
    grid-template-columns:1.6fr 1fr 1fr 1fr;
    gap:40px;
}
.hc-footer a{color:#d9dfe4}
.hc-footer small{display:block;border-top:1px solid #25313a;margin-top:34px;padding-top:20px;color:#87939c}
.hc-float-wa{position:fixed;right:20px;bottom:20px;z-index:90;background:#202e36;color:white;padding:13px 17px;border-radius:999px;box-shadow:0 12px 35px rgba(0,0,0,.2);font-weight:800}
@media(max-width:920px){
 .hc-menu{display:none;position:absolute;top:76px;left:0;right:0;background:white;padding:22px 20px;border-bottom:1px solid var(--hc-border);flex-direction:column;align-items:flex-start}
 .hc-menu.is-open{display:flex}.hc-menu-toggle{display:block}
 .hc-hero-grid,.hc-pain,.hc-about,.hc-form-wrap{grid-template-columns:1fr}
 .hc-thread-card{min-height:380px}
 .hc-grid-3,.hc-plans{grid-template-columns:1fr}
 .hc-grid-2,.hc-services-grid{grid-template-columns:1fr}
 .hc-process{grid-template-columns:1fr 1fr}
 .hc-kpi-band{grid-template-columns:1fr 1fr}
 .hc-plan--featured{transform:none}
}
@media(max-width:600px){
 .hc-container{width:min(100% - 28px,1160px)}.hc-section{padding:66px 0}.hc-hero{padding-top:58px}
 .hc-process,.hc-kpi-band,.hc-footer-grid{grid-template-columns:1fr}
 .hc-actions{flex-direction:column}.hc-btn{width:100%}
}

/* Fluent Forms — integración visual HiloContable */
.hc-form-placeholder{border:0;padding:0;background:transparent}
.hc-form-shell .ff-el-group{margin-bottom:15px}
.hc-form-shell .ff-el-input--label label{font-weight:750;color:#4f5d67;font-size:.92rem}
.hc-form-shell .ff-el-form-control{
  width:100%;min-height:46px;border:1px solid #d9d7d2!important;border-radius:10px!important;
  background:#fff!important;color:var(--hc-ink)!important;padding:10px 12px!important;box-shadow:none!important
}
.hc-form-shell textarea.ff-el-form-control{min-height:108px}
.hc-form-shell .ff-el-form-control:focus{border-color:var(--hc-thread)!important;box-shadow:0 0 0 3px rgba(200,138,61,.12)!important;outline:0}
.hc-form-shell .ff-btn-submit,
.hc-form-shell button[type="submit"]{
  background:var(--hc-thread)!important;color:#16100a!important;border:0!important;border-radius:999px!important;
  min-height:48px!important;padding:12px 24px!important;font-weight:850!important;box-shadow:none!important;transition:.2s ease
}
.hc-form-shell .ff-btn-submit:hover,
.hc-form-shell button[type="submit"]:hover{background:#d89b4b!important;transform:translateY(-1px)}
.hc-form-shell .ff-message-success{border:1px solid #d7eadf!important;background:#f3fbf6!important;color:#24533a!important;border-radius:12px!important;padding:14px!important}
.hc-form-shell .error.text-danger{color:#b42318!important}
.hc-form-shell .ff-el-is-error .ff-el-form-control{border-color:#d92d20!important}

/* Mejoras finas de lectura */
.hc-service,.hc-card,.hc-plan,.hc-pain-item{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.hc-service:hover,.hc-card:hover,.hc-plan:not(.hc-plan--featured):hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(16,24,32,.07);border-color:#d7c8b1}
.hc-pain-item:hover{border-color:#d7c8b1}
@media(min-width:1400px){.hc-container{width:min(1240px,calc(100% - 64px))}}

/* v1.3 — páginas internas y página de conversión */
.hc-page-section{min-height:58vh;background:linear-gradient(180deg,#fff 0%,#fbfaf7 100%)}
.hc-page-container{max-width:960px}
.hc-page-title{font-size:clamp(2.6rem,6vw,4.8rem);max-width:900px}
.hc-page-content{font-size:1.05rem}
.hc-page-content h2,.hc-page-content h3{margin-top:34px}
.hc-page-content a{color:var(--hc-thread-dark);text-decoration:underline;text-underline-offset:3px}
.hc-thanks{padding:96px 0;background:linear-gradient(135deg,var(--hc-cream) 0%,#fff 62%);min-height:70vh;display:flex;align-items:center}
.hc-thanks-card{max-width:820px;margin:0 auto;text-align:center;background:#fff;border:1px solid var(--hc-border);border-radius:32px;padding:56px;box-shadow:var(--hc-shadow)}
.hc-thanks-icon{width:68px;height:68px;margin:0 auto 22px;border-radius:50%;display:grid;place-items:center;background:#eef7f1;color:#276749;font-size:2rem;font-weight:900}
.hc-thanks h1{font-size:clamp(2.7rem,6vw,4.8rem);max-width:760px;margin-inline:auto}
.hc-thanks .hc-lead{margin-inline:auto}
.hc-thanks p{max-width:690px;margin-inline:auto}
.hc-thanks-actions{justify-content:center}
.hc-thanks-note{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:34px;padding-top:24px;border-top:1px solid var(--hc-border);color:var(--hc-muted)}
.hc-thanks-note strong{color:var(--hc-ink)}
@media(max-width:600px){.hc-thanks{padding:60px 0}.hc-thanks-card{padding:34px 22px;border-radius:24px}}


/* v1.4 — identidad visual definitiva e imágenes de marca */
.hc-brand--header{display:block;line-height:0}
.hc-brand--header img{display:block;width:auto;height:42px;max-width:220px;object-fit:contain}
.hc-brand--footer{display:inline-flex;align-items:center;gap:11px;color:#fff}
.hc-brand--footer img{width:42px;height:42px;object-fit:contain;filter:drop-shadow(0 3px 12px rgba(212,162,89,.18))}
.hc-brand--footer span{color:#fff;font-size:1.18rem;font-weight:900;letter-spacing:-.03em}
.hc-hero-visual{margin:0;position:relative;border-radius:34px;overflow:hidden;box-shadow:0 24px 64px rgba(15,23,42,.18);min-height:520px;background:var(--hc-cream)}
.hc-hero-visual picture,.hc-hero-visual img{display:block;width:100%;height:100%}
.hc-hero-visual img{position:absolute;inset:0;object-fit:cover}
.hc-hero-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 52%,rgba(15,23,42,.58) 100%);pointer-events:none}
.hc-hero-visual figcaption{position:absolute;z-index:2;left:24px;right:24px;bottom:22px;display:flex;gap:8px;flex-wrap:wrap}
.hc-hero-visual figcaption span{padding:7px 11px;border:1px solid rgba(255,255,255,.32);border-radius:999px;background:rgba(15,23,42,.58);backdrop-filter:blur(8px);color:#fff;font-size:.77rem;font-weight:800;letter-spacing:.03em}
.hc-difference-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:54px;align-items:center}
.hc-difference-visual{margin:0;border-radius:28px;overflow:hidden;border:1px solid #2a3744;box-shadow:0 24px 70px rgba(0,0,0,.22);aspect-ratio:3/2}
.hc-difference-visual img{display:block;width:100%;height:100%;object-fit:cover}
.hc-about-visual{background:linear-gradient(145deg,#101a26 0%,#223241 100%)}
.hc-about-visual:before{border-color:rgba(212,162,89,.72)}
.hc-about-mark{position:absolute;width:260px;height:260px;right:-34px;top:-28px;object-fit:contain;opacity:.16;filter:saturate(.8)}
.hc-about-quote{position:relative;z-index:2;max-width:480px}
.hc-about-quote p{font-size:1.32rem;line-height:1.45;margin-bottom:14px}
.hc-about-quote span{display:block;color:#D4A259;font-size:.79rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.hc-footer .hc-brand{width:max-content}
@media(max-width:920px){
 .hc-hero-visual{min-height:520px;max-width:720px}
 .hc-difference-grid{grid-template-columns:1fr;gap:32px}
 .hc-difference-visual{max-width:760px}
}
@media(max-width:600px){
 .hc-brand--header img{height:36px;max-width:188px}
 .hc-hero-visual{min-height:500px;border-radius:26px}
 .hc-hero-visual figcaption{left:16px;right:16px;bottom:16px}
 .hc-hero-visual figcaption span{font-size:.71rem;padding:6px 9px}
 .hc-difference-visual{border-radius:22px}
 .hc-about-mark{width:220px;height:220px}
}


/* v1.5 — refinamientos responsive y conversión */
[id]{scroll-margin-top:92px}

/* Hero: en móvil la fotografía aparece inmediatamente después de los CTA. */
.hc-hero-grid{
  grid-template-areas:
    "copy visual"
    "proof visual";
  grid-template-rows:auto auto;
  row-gap:0;
}
.hc-hero-copy{grid-area:copy;min-width:0}
.hc-hero-visual{grid-area:visual;align-self:stretch}
.hc-proof{grid-area:proof;align-self:start}

/* WhatsApp: icono + texto en escritorio, botón compacto en móvil. */
.hc-float-wa{display:inline-flex;align-items:center;gap:9px;min-height:48px}
.hc-float-wa svg{width:21px;height:21px;display:block;flex:0 0 auto}
.hc-float-wa:focus-visible{outline:3px solid rgba(212,162,89,.45);outline-offset:3px}

/* La imagen de diferenciación gana peso visual sin competir con el texto. */
.hc-difference-visual{min-height:360px}

@media(max-width:920px){
  .hc-hero-grid{
    grid-template-columns:1fr;
    grid-template-areas:"copy" "visual" "proof";
    gap:28px;
  }
  .hc-hero-visual{width:100%;min-height:440px;max-width:none}
  .hc-proof{margin-top:0;padding-top:20px}
  .hc-difference-visual{min-height:0;aspect-ratio:16/10;width:100%;max-width:none}
}

@media(max-width:600px){
  /* Ritmo más compacto para tráfico móvil de campañas. */
  .hc-section{padding:54px 0}
  .hc-hero{padding:42px 0 46px}
  .hc-hero-grid{gap:22px}
  .hc-hero h1{font-size:clamp(3rem,15vw,4.15rem);line-height:1.01;margin-bottom:16px}
  .hc-hero .hc-lead{font-size:1.06rem;line-height:1.55}
  .hc-actions{margin-top:24px;gap:10px}
  .hc-btn{min-height:50px;padding:13px 18px}
  .hc-hero-visual{min-height:0;aspect-ratio:4/3;border-radius:24px;box-shadow:0 18px 45px rgba(15,23,42,.16)}
  .hc-hero-visual img{object-position:center 42%}
  .hc-hero-visual figcaption{gap:6px;left:12px;right:12px;bottom:12px}
  .hc-hero-visual figcaption span{font-size:.66rem;padding:5px 8px}
  .hc-proof{gap:8px 14px;padding-top:17px}
  .hc-proof span{font-size:.79rem}

  .hc-difference-grid{gap:24px}
  .hc-difference-visual{aspect-ratio:4/3;border-radius:20px;box-shadow:0 18px 45px rgba(0,0,0,.25)}
  .hc-difference-visual img{object-position:center}
  .hc-kpi-band{margin-top:26px}
  .hc-kpi{padding:18px 20px}

  .hc-services-grid,.hc-grid-2,.hc-plans{gap:14px}
  .hc-service,.hc-card,.hc-plan{padding:22px}
  .hc-process{gap:12px;margin-top:30px}
  .hc-step{padding-top:15px}
  .hc-faq{margin-top:26px}
  .hc-faq details{padding:16px}
  .hc-form-wrap{gap:26px}

  .hc-float-wa{
    width:56px;height:56px;min-height:56px;padding:0;right:14px;bottom:14px;
    justify-content:center;border-radius:50%;box-shadow:0 10px 28px rgba(0,0,0,.24)
  }
  .hc-float-wa svg{width:26px;height:26px}
  .hc-float-wa .hc-wa-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
}
@media (max-width: 900px){
    .hc-footer-grid{
        grid-template-columns:1fr 1fr;
        gap:36px 28px;
    }
}

@media (max-width: 600px){
    .hc-footer-grid{
        grid-template-columns:1fr;
        gap:28px;
    }
}