/* =====================================================================
   HOME MODERNEE — rediseño de la página de inicio (cuerpo, no la cabecera)
   Estilo basado en plantilla Modernee: tema oscuro + titulares geométricos.
   Adaptado a marca Webenhoras: base navy oscuro + acento TEAL #00A88E.
   Scope: .hm-page (solo la home; el resto del sitio no se ve afectado).
   2026-06-25
   ===================================================================== */
.hm-page {
    --hm-bg: #0a0f1a;
    --hm-bg2: #0e1525;
    --hm-card: #121a2b;
    --hm-line: rgba(255, 255, 255, .08);
    --hm-teal: #00A88E;
    --hm-teal-soft: rgba(0, 168, 142, .12);
    --hm-ink: #ffffff;
    --hm-mut: #94a3b8;
    background: var(--hm-bg);
    color: var(--hm-mut);
    font-family: 'DM Sans', system-ui, sans-serif;
    overflow-x: hidden;
}
.hm-page h1, .hm-page h2, .hm-page h3, .hm-page h4, .hm-page .hm-display {
    font-family: 'Space Grotesk', 'DM Sans', sans-serif;
    color: var(--hm-ink);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.05;
}
.hm-page p { line-height: 1.7; }
.hm-page strong { color: #cdd8e6; }
.hm-wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
.hm-pad { padding: 100px 0; }
.hm-eyebrow { display: inline-block; color: var(--hm-teal); font-weight: 700; text-transform: uppercase; letter-spacing: 3px; font-size: 13px; margin-bottom: 18px; }
.hm-teal { color: var(--hm-teal); }
.hm-sec-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.hm-sec-head h2 { font-size: clamp(30px, 4vw, 46px); }
.hm-sec-head p { font-size: 19px; margin-top: 16px; }

/* Botones */
.hm-btn { display: inline-flex; align-items: center; gap: 9px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px; padding: 16px 32px; border-radius: 100px; text-decoration: none; transition: transform .25s, background .25s, box-shadow .25s; }
.hm-btn.solid { background: var(--hm-teal); color: #04201b; box-shadow: 0 14px 34px rgba(0, 168, 142, .30); }
.hm-btn.solid:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(0, 168, 142, .42); color: #04201b; }
.hm-btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); }
.hm-btn.ghost:hover { border-color: var(--hm-teal); color: var(--hm-teal); }

/* ---------- HERO ---------- */
.hm-hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--hm-bg); background-size: cover; background-repeat: no-repeat; }
.hm-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hm-hero .hm-wrap { z-index: 2; width: 100%; }
.hm-hero-content { max-width: 600px; text-align: left; }
.hm-hero h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 700; }
.hm-hero h1 .u { color: var(--hm-teal); }
.hm-hero .hm-lead { font-size: clamp(17px, 1.5vw, 21px); color: #aeb9c9; margin: 26px 0 38px; max-width: 500px; }
.hm-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hm-hero-meta { margin-top: 34px; display: flex; align-items: center; gap: 12px; color: #8a97aa; font-size: 14px; }
.hm-hero-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hm-teal); box-shadow: 0 0 0 4px rgba(0,168,142,.18); }
@media (min-width: 992px) {
    /* padding-top: reserva el alto del header transparente para que el contenido
       centrado del hero nunca suba por debajo de él (eyebrow pisando el logo). FIX 2026-06-28. */
    .hm-hero { background-image: url("/assets/images/hero/hero-pc.webp"); background-position: center center; box-sizing: border-box; padding-top: 96px; padding-bottom: 40px; }
    .hm-hero::before { background: linear-gradient(95deg, var(--hm-bg) 30%, rgba(10,15,26,.65) 48%, rgba(10,15,26,0) 64%); }
}
@media (max-width: 991.98px) {
    .hm-hero { min-height: 100vh; align-items: flex-start; padding-top: 64px; padding-bottom: 40px; background-image: url("/assets/images/hero/hero-mobile.webp"); background-position: center top; }
    .hm-hero::before { background: linear-gradient(180deg, var(--hm-bg) 4%, rgba(10,15,26,.55) 32%, rgba(10,15,26,0) 56%); }
    .hm-hero-content { max-width: 640px; margin: 0 auto; text-align: center; }
    .hm-hero .hm-lead { margin-left: auto; margin-right: auto; }
    .hm-hero-btns, .hm-hero-meta { justify-content: center; }
}
@media (max-width: 767.98px) {
    .hm-hero { padding-top: 40px; }
    .hm-hero-btns .hm-btn { padding: 13px 24px; font-size: 15px; }
}

/* ---------- VALUES (3 columnas) ---------- */
.hm-values { border-top: 1px solid var(--hm-line); }
.hm-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.hm-value { padding: 16px 36px; border-left: 1px solid var(--hm-line); }
.hm-value:first-child { border-left: 0; padding-left: 0; }
.hm-value .hm-vh { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.hm-value h3 { font-size: 26px; }
.hm-value .ar { color: var(--hm-teal); font-size: 22px; flex: 0 0 auto; }
.hm-value p { margin-top: 14px; font-size: 15px; }

/* ---------- TOOLS / plataformas ---------- */
.hm-tools { padding: 56px 0; border-top: 1px solid var(--hm-line); border-bottom: 1px solid var(--hm-line); }
.hm-tools .lbl { text-align: center; color: #6b7689; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 26px; }
.hm-tools-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 42px; }
.hm-tools-row span { display: inline-flex; align-items: center; gap: 10px; color: #7e8aa0; font-weight: 600; font-size: 19px; opacity: .8; transition: opacity .25s, color .25s; }
.hm-tools-row span i { font-size: 24px; }
.hm-tools-row span:hover { opacity: 1; color: #cdd8e6; }

/* ---------- SERVICES (tarjetas oscuras) ---------- */
.hm-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hm-scard { background: var(--hm-card); border: 1px solid var(--hm-line); border-radius: 18px; padding: 34px; text-decoration: none; display: block; transition: transform .3s, border-color .3s, background .3s; }
.hm-scard:hover { transform: translateY(-6px); border-color: rgba(0, 168, 142, .5); background: #16203450; }
.hm-scard .ic { width: 58px; height: 58px; border-radius: 14px; background: var(--hm-teal-soft); color: var(--hm-teal); display: grid; place-items: center; font-size: 24px; margin-bottom: 20px; }
.hm-scard h3 { font-size: 21px; margin-bottom: 10px; }
.hm-scard p { font-size: 15px; margin: 0; }
.hm-scard .more { color: var(--hm-teal); font-weight: 600; font-size: 14px; margin-top: 18px; display: inline-block; font-family: 'Space Grotesk', sans-serif; }

/* ---------- STATS ---------- */
.hm-stats { background: var(--hm-bg2); border-top: 1px solid var(--hm-line); border-bottom: 1px solid var(--hm-line); }
.hm-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hm-stat { text-align: center; }
.hm-stat .n { font-family: 'Space Grotesk', sans-serif; font-size: clamp(40px, 5vw, 60px); font-weight: 700; color: #fff; line-height: 1; }
.hm-stat .n b { color: var(--hm-teal); font-weight: 700; }
.hm-stat .l { margin-top: 10px; font-size: 15px; color: #8a97aa; }

/* ---------- STATEMENT (gran frase) ---------- */
.hm-statement { text-align: center; }
.hm-statement .hm-display { font-size: clamp(30px, 5vw, 60px); max-width: 1000px; margin: 0 auto; line-height: 1.12; }

/* ---------- SHOWCASE (vitrina de trabajos) ---------- */
.hm-show-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hm-show { border-radius: 16px; overflow: hidden; border: 1px solid var(--hm-line); background: var(--hm-card); transition: transform .3s, border-color .3s; }
.hm-show:hover { transform: translateY(-6px); border-color: rgba(0,168,142,.5); }
.hm-show .shot { aspect-ratio: 16/10; overflow: hidden; }
.hm-show .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.hm-show .cap { padding: 20px 22px; }
.hm-show .cap span { color: var(--hm-teal); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.hm-show .cap h3 { font-size: 18px; margin: 8px 0 4px; }
.hm-show .cap p { font-size: 14px; margin: 0; }

/* ---------- WHY (4 ventajas) ---------- */
.hm-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.hm-why-card { background: var(--hm-card); border: 1px solid var(--hm-line); border-radius: 18px; padding: 36px 26px; text-align: center; }
.hm-why-card .ic { width: 70px; height: 70px; border-radius: 50%; background: var(--hm-teal-soft); color: var(--hm-teal); display: grid; place-items: center; font-size: 28px; margin: 0 auto 20px; }
.hm-why-card h3 { font-size: 20px; margin-bottom: 12px; }
.hm-why-card p { font-size: 15px; margin: 0; }

/* ---------- TEXT (SEO block) ---------- */
.hm-text { background: var(--hm-bg2); border-top: 1px solid var(--hm-line); }
.hm-text .box { max-width: 860px; margin: 0 auto; }
.hm-text h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 22px; }
.hm-text h3 { font-size: 22px; margin: 30px 0 10px; }
.hm-text p { font-size: 16px; }

/* ---------- FAQ ---------- */
.hm-faq .box { max-width: 820px; margin: 0 auto; }
.hm-faq details { background: var(--hm-card); border: 1px solid var(--hm-line); border-radius: 14px; padding: 0 26px; margin-bottom: 14px; transition: border-color .25s; }
.hm-faq details[open] { border-color: rgba(0,168,142,.45); }
.hm-faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 18px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: "+"; color: var(--hm-teal); font-size: 26px; font-weight: 400; flex: 0 0 auto; transition: transform .25s; }
.hm-faq details[open] summary::after { transform: rotate(45deg); }
.hm-faq .ans { padding: 0 0 22px; font-size: 15px; }

/* ---------- CTA ---------- */
.hm-cta-band { background: linear-gradient(120deg, #00A88E 0%, #0d6e5e 100%); border-radius: 28px; padding: 64px 40px; text-align: center; position: relative; overflow: hidden; }
.hm-cta-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 14px; }
.hm-cta-band p { color: rgba(255, 255, 255, .92); font-size: 19px; margin-bottom: 30px; }
.hm-cta-band .hm-btn.solid { background: #04201b; color: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.25); }
.hm-cta-band .hm-btn.solid:hover { background: #0a2e27; color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .hm-pad { padding: 70px 0; }
    .hm-values-grid, .hm-services-grid, .hm-show-grid { grid-template-columns: 1fr 1fr; }
    .hm-why-grid, .hm-stats-grid { grid-template-columns: 1fr 1fr; gap: 30px 22px; }
    .hm-value { border-left: 0; padding: 16px 0; border-top: 1px solid var(--hm-line); }
    .hm-value:first-child { padding-left: 0; }
}
@media (max-width: 600px) {
    .hm-values-grid, .hm-services-grid, .hm-show-grid, .hm-why-grid { grid-template-columns: 1fr; }
    .hm-tools-row { gap: 26px; }
    .hm-cta-band { padding: 48px 24px; }
}
