:root {
  --bg: #071018;
  --bg-deep: #03090e;
  --panel: #0d1821;
  --panel-soft: #101f2a;
  --text: #f5f8fa;
  --muted: #a9b4bd;
  --line: #223441;
  --accent: #10bcb5;
  --accent-strong: #0aa59f;
  --accent-soft: rgba(16, 188, 181, .12);
  --max: 1180px;
  --radius: 18px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 0%, rgba(16,188,181,.10), transparent 28rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; }

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 40px), 850px);
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 9, 14, .88);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  letter-spacing: .14em;
}

.brand-main {
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-sub {
  color: var(--accent);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .2em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: #dce5ea;
  text-decoration: none;
  font-weight: 600;
  font-size: .94rem;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: white;
}

.hero {
  padding: 105px 0 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  gap: 70px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 25px;
  font-size: clamp(2.65rem, 6vw, 5.3rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.hero-text {
  max-width: 760px;
  margin-bottom: 34px;
  color: #c1cbd2;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 750;
}

.btn-primary {
  color: #021012;
  background: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #20d1c8;
}

.btn-secondary {
  color: white;
  border-color: var(--line);
  background: rgba(255,255,255,.02);
}

.hero-panel {
  position: relative;
  padding: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(16,188,181,.09), transparent 42%),
    var(--panel);
  box-shadow: 0 30px 70px rgba(0,0,0,.28);
}

.signal-line {
  width: 52px;
  height: 3px;
  margin-bottom: 50px;
  background: var(--accent);
}

.hero-panel p {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .17em;
}

.hero-panel strong {
  display: block;
  margin-bottom: 18px;
  font-size: 1.6rem;
  line-height: 1.2;
}

.hero-panel span {
  color: var(--muted);
}

.section {
  padding: 95px 0;
  border-top: 1px solid rgba(255,255,255,.055);
}

.section-alt {
  background: rgba(255,255,255,.018);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 44px;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  text-align: center;
}

.section-heading h2,
.contact-card h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.section-heading > p:last-child,
.contact-card p {
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}

.feature-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.feature-index {
  display: block;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(250px,.7fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.product-copy {
  padding: clamp(30px,5vw,58px);
}

.product-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 25px;
}

.product-name {
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: .2em;
}

.product-by {
  color: var(--accent);
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .15em;
}

.product-copy h3 {
  margin-bottom: 15px;
  font-size: clamp(1.8rem,3vw,2.6rem);
}

.product-copy > p {
  max-width: 720px;
  color: var(--muted);
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 26px 0 32px;
  padding: 0;
  list-style: none;
}

.product-features li {
  padding: 8px 12px;
  border: 1px solid #28404d;
  border-radius: 999px;
  color: #d8e2e8;
  background: rgba(255,255,255,.02);
  font-size: .88rem;
}

.product-mark {
  display: grid;
  place-items: center;
  min-height: 320px;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle, rgba(16,188,181,.18), transparent 55%),
    #08131b;
}

.product-mark span {
  display: grid;
  width: 145px;
  height: 145px;
  place-items: center;
  border: 1px solid rgba(16,188,181,.42);
  border-radius: 30px;
  color: var(--accent);
  background: rgba(16,188,181,.06);
  font-size: 4rem;
  font-weight: 850;
}

.contact-section {
  padding-top: 40px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 35px;
  align-items: center;
  padding: clamp(30px,5vw,55px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(115deg, rgba(16,188,181,.08), transparent 50%),
    var(--panel);
}

.contact-card p {
  max-width: 700px;
  margin-bottom: 0;
}

.contact-email {
  color: var(--accent);
  font-size: clamp(1rem,2vw,1.25rem);
  font-weight: 800;
  text-decoration: none;
}

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

.site-footer {
  padding: 58px 0 30px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 35px;
}

.footer-grid strong {
  color: white;
  letter-spacing: .08em;
}

.footer-grid p { margin: 8px 0 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 15px 22px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 35px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.055);
  font-size: .86rem;
}

.legal-page {
  min-height: 70vh;
  padding: 70px 0 100px;
}

.legal-page .legal-box {
  max-width: 900px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.legal-page h1 {
  font-size: clamp(2rem,4vw,3.2rem);
  line-height: 1.1;
}

.legal-page h2 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-warning {
  padding: 14px 16px;
  border: 1px solid #765c1b;
  border-radius: 9px;
  color: #ffe7a8 !important;
  background: rgba(118,92,27,.22);
}

@media (max-width: 850px) {
  .hero-grid,
  .product-card,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 75px; }

  .product-mark {
    min-height: 230px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .contact-email {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .container,
  .narrow {
    width: min(calc(100% - 28px), var(--max));
  }

  .header-inner { min-height: 68px; }

  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #071018;
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
  }

  .main-nav.is-open { display: flex; }

  .main-nav a {
    padding: 12px 10px;
    border-radius: 8px;
  }

  .main-nav a:hover { background: rgba(255,255,255,.035); }

  .hero {
    padding: 58px 0 65px;
  }

  h1 { font-size: 2.55rem; }

  .hero-panel { padding: 26px; }

  .section { padding: 70px 0; }

  .section-heading { margin-bottom: 30px; }

  .footer-grid {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}


/* ==========================================================
   ENTILZA V1.2 · IDENTIDAD CORPORATIVA
   ========================================================== */

.brand-logo {
    display: inline-flex;
    align-items: center;
    width: clamp(180px, 19vw, 245px);
    text-decoration: none;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 54px;
    object-fit: contain;
    object-position: left center;
}

.hero-symbol {
    display: block;
    width: min(190px, 62%);
    height: auto;
    margin: 0 auto 2.1rem;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .24));
}

.hero-panel {
    text-align: center;
}

.hero-panel .signal-line {
    display: none;
}

.product-mark img {
    display: block;
    width: min(190px, 55%);
    height: auto;
    filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .24));
}

.legal-identification {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .55rem 1.2rem;
    margin: 1.4rem 0;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255,255,255,.025);
}

.legal-identification dt {
    color: #f5f8fa;
    font-weight: 700;
}

.legal-identification dd {
    margin: 0;
    color: var(--muted);
}

.legal-page a {
    color: var(--accent);
}

.legal-page a:hover {
    text-decoration: underline;
}

@media (max-width: 680px) {
    .brand-logo {
        width: 165px;
    }

    .brand-logo img {
        max-height: 46px;
    }

    .legal-identification {
        grid-template-columns: 1fr;
        gap: .15rem;
    }

    .legal-identification dd {
        margin-bottom: .7rem;
    }
}


/* ==========================================================
   ENTILZA V1.3 · LOGO DE CABECERA MÁS PRESENTE
   Mantiene una cabecera contenida, pero aumenta la presencia
   visual del logotipo y elimina margen transparente del PNG.
   ========================================================== */

.header-inner {
    min-height: 86px;
}

.brand-logo {
    width: auto;
    height: 72px;
    flex: 0 0 auto;
}

.brand-logo img {
    width: auto;
    height: 100%;
    max-width: 255px;
    max-height: none;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 680px) {
    .header-inner {
        min-height: 74px;
    }

    .brand-logo {
        width: auto;
        height: 58px;
    }

    .brand-logo img {
        width: auto;
        height: 100%;
        max-width: 205px;
        max-height: none;
    }

    .main-nav {
        top: 74px;
    }
}


/* ==========================================================
   ENTILZA PRODUCCIÓN V1.1 · REDISEÑO ESPECÍFICO PARA MÓVIL
   Mantiene el diseño de escritorio aprobado.
   ========================================================== */

@media (max-width: 680px) {

    html {
        scroll-padding-top: 0;
    }

    body {
        overflow-x: hidden;
    }

    /* La cabecera deja de ser fija en móvil para no tapar contenido
       mientras se navega por una página larga. */
    .site-header {
        position: relative;
        top: auto;
        backdrop-filter: none;
    }

    .header-inner {
        min-height: 78px;
        gap: 14px;
    }

    .brand-logo {
        width: auto;
        height: 59px;
        max-width: calc(100% - 76px);
    }

    .brand-logo img {
        width: auto;
        height: 100%;
        max-width: 238px;
        max-height: none;
        object-fit: contain;
        object-position: left center;
    }

    .nav-toggle {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        border-radius: 11px;
    }

    .main-nav {
        top: 78px;
        left: 14px;
        right: 14px;
        z-index: 100;
    }


    /* PORTADA */
    .hero {
        padding: 48px 0 54px;
    }

    .hero-grid {
        gap: 34px;
    }

    .hero-copy .eyebrow {
        margin-bottom: 13px;
    }

    h1 {
        max-width: none;
        margin-bottom: 23px;
        font-size: clamp(2.15rem, 10.7vw, 2.65rem);
        line-height: 1.02;
        letter-spacing: -.042em;
        text-wrap: balance;
    }

    .hero-text {
        margin-bottom: 28px;
        font-size: 1.03rem;
        line-height: 1.68;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 11px;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 52px;
        padding: 13px 16px;
        text-align: center;
    }

    .hero-panel {
        padding: 28px 23px 30px;
        border-radius: 16px;
    }

    .hero-symbol {
        width: 128px;
        margin-bottom: 1.35rem;
    }

    .hero-panel p {
        margin-bottom: 7px;
        font-size: .72rem;
    }

    .hero-panel strong {
        margin-bottom: 10px;
        font-size: 1.3rem;
    }

    .hero-panel span {
        display: block;
        max-width: 280px;
        margin: 0 auto;
        font-size: .94rem;
        line-height: 1.55;
    }


    /* SECCIONES */
    .section {
        padding: 58px 0;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .section-heading h2,
    .contact-card h2 {
        margin-bottom: 13px;
        font-size: clamp(1.85rem, 8.7vw, 2.25rem);
        line-height: 1.08;
        text-wrap: balance;
    }

    .section-heading > p:last-child,
    .contact-card p {
        font-size: 1rem;
        line-height: 1.62;
    }

    .section-heading.centered {
        text-align: left;
    }


    /* QUÉ HACEMOS: tarjetas más densas */
    .feature-grid {
        gap: 13px;
    }

    .feature-card {
        padding: 22px 20px;
        border-radius: 13px;
    }

    .feature-index {
        margin-bottom: 12px;
        font-size: .7rem;
    }

    .feature-card h3 {
        margin-bottom: 8px;
        font-size: 1.08rem;
        line-height: 1.28;
    }

    .feature-card p {
        font-size: .96rem;
        line-height: 1.55;
    }


    /* FICHAJES: reducir drásticamente altura total */
    .product-card {
        display: block;
        border-radius: 16px;
    }

    .product-copy {
        padding: 27px 21px 25px;
    }

    .product-brand {
        gap: 8px;
        margin-bottom: 20px;
    }

    .product-name {
        font-size: 1.18rem;
        letter-spacing: .17em;
    }

    .product-by {
        font-size: .68rem;
        letter-spacing: .12em;
    }

    .product-copy h3 {
        margin-bottom: 14px;
        font-size: 1.85rem;
        line-height: 1.13;
    }

    .product-copy > p {
        font-size: .98rem;
        line-height: 1.58;
    }

    .product-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        margin: 22px 0 24px;
    }

    .product-features li {
        display: flex;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        padding: 9px 10px;
        border-radius: 11px;
        text-align: center;
        font-size: .82rem;
        line-height: 1.25;
    }

    .product-copy .btn {
        width: 100%;
        min-height: 52px;
    }

    /* En móvil el segundo símbolo gigante era redundante y añadía
       más de una pantalla de scroll sin información nueva. */
    .product-mark {
        display: none;
    }


    /* NUESTRA FORMA DE TRABAJAR */
    .narrow {
        width: min(calc(100% - 28px), var(--max));
    }

    .section-heading.centered .eyebrow,
    .section-heading.centered h2,
    .section-heading.centered p {
        text-align: left;
    }


    /* CONTACTO */
    .contact-section {
        padding-top: 26px;
    }

    .contact-card {
        gap: 22px;
        padding: 26px 22px;
        border-radius: 15px;
    }

    .contact-email {
        width: 100%;
        padding-top: 3px;
        font-size: 1.07rem;
        overflow-wrap: anywhere;
    }


    /* PIE */
    .site-footer {
        padding: 45px 0 25px;
    }

    .footer-grid {
        gap: 27px;
    }

    .footer-grid > div:first-child p {
        margin-top: 7px;
        font-size: .95rem;
    }

    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 13px 15px;
        width: 100%;
    }

    .footer-links a {
        font-size: .9rem;
        line-height: 1.35;
    }

    .footer-bottom {
        margin-top: 27px;
        padding-top: 18px;
        font-size: .8rem;
    }
}


/* Teléfonos especialmente estrechos */
@media (max-width: 390px) {

    .container,
    .narrow {
        width: min(calc(100% - 24px), var(--max));
    }

    .brand-logo {
        height: 54px;
    }

    .brand-logo img {
        max-width: 215px;
    }

    h1 {
        font-size: 2.05rem;
    }

    .product-features {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   ENTILZA PRODUCCIÓN V1.2 · AJUSTE FINAL MÓVIL
   01/09/2026
   - FICHAJES mantiene rejilla 2x2 incluso en iPhone estrecho.
   - Se reduce moderadamente el aire vertical entre secciones.
   - Escritorio no se modifica.
   ========================================================== */

@media (max-width: 680px) {

    .section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .section-alt {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .contact-section {
        padding-top: 22px;
        padding-bottom: 46px;
    }

    .hero {
        padding-bottom: 48px;
    }

    .feature-grid {
        margin-bottom: 0;
    }

    .product-card {
        margin-bottom: 0;
    }

    .product-features {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .product-features li {
        min-height: 54px;
        padding: 8px 7px;
        font-size: .78rem;
        line-height: 1.22;
    }
}

@media (max-width: 390px) {

    /* Se anula expresamente la regla anterior que convertía
       FICHAJES en una sola columna en teléfonos estrechos. */
    .product-features {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .product-features li {
        min-height: 56px;
        padding: 8px 6px;
        font-size: .75rem;
        line-height: 1.2;
    }

    .section {
        padding-top: 47px;
        padding-bottom: 47px;
    }
}
