@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');


:root {
    --ink: #1A1F26;
    --steel: #293641;
    --steel-2: #334252;
    --paper: #F4F3EE;
    --paper-alt: #E9E7DF;
    --orange: #E6602A;
    --orange-dim: #c94f1f;
    --teal: #3E8F8A;
    --line: #CBC8BE;
    --line-dark: #3E4A56;
    --muted: #666c72;
    --white: #FFFFFF;
    --display: 'Space Grotesk', sans-serif;
    --body: 'IBM Plex Sans', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
    --radius: 2px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 78px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

body {
    font-family: var(--body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--orange);
    display: inline-block;
}

:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

/* ---------- NAV ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 300;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    max-width: 1180px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--display);
}

.logo a {
    display: flex;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    width: auto;
    height: 34px;
    padding: 2px 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.logo-text strong {
    margin-bottom: 5px;
    color: var(--orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.25em;
}

.logo-text span {
    color: var(--ink);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.logo a:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 5px;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    font-size: 14.5px;
    font-weight: 500;
}

.nav-links a {
    position: relative;
    padding: 4px;
    transition: color .2s;
}

.nav-links a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width .25s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-links a:not(.btn):hover {
    color: var(--orange-dim);
}


.btn {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 11px 20px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s, color .2s, transform .15s, border-color .2s;
    cursor: pointer;
}

.btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn-light {
    background: transparent;
    color: var(--paper);
    border: 1px solid rgba(244, 243, 238, 0.5);
}

.btn-light:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
}




/* ---------- HERO ---------- */
.hero {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
    padding: 100px 0 80px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(244, 243, 238, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 243, 238, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 60% at 60% 30%, black 40%, transparent 90%);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(34px, 4.6vw, 54px);
    line-height: 1.08;
    margin-bottom: 22px;
}

.hero h1 em {
    font-style: normal;
    color: var(--orange);
}

.hero p {
    font-size: 17px;
    color: #c7cbd0;
    max-width: 480px;
    margin-bottom: 34px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* hub diagram */
.hub {
    position: relative;
    z-index: 2;
    aspect-ratio: 1/1;
    max-width: 420px;
    margin: 0 auto;
}

.hub svg {
    width: 100%;
    height: 100%;
}

.hub-line {
    stroke: rgba(244, 243, 238, 0.28);
    stroke-width: 1.4;
    fill: none;
    stroke-dasharray: 6 5;
}

.hub-node {
    fill: var(--steel);
    stroke: rgba(244, 243, 238, 0.35);
    stroke-width: 1;
}

.hub-core {
    fill: var(--orange);
}

.hub text {
    font-family: var(--mono);
    font-size: 11px;
    fill: var(--paper);
    letter-spacing: 0.05em;
}

.hub .core-text {
    fill: var(--ink);
    font-weight: 700;
    font-size: 13px;
}

.pulse {
    animation: pulse 2.6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.55;
    }

    50% {
        opacity: 1;
    }
}

/* ---------- SECTIONS ---------- */
section {
    padding: 96px 0;
}

.section-head {
    max-width: 640px;
    margin-bottom: 56px;
}

.section-head h2 {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
}

.section-head p {
    color: var(--muted);
    font-size: 15.5px;
    margin-top: 14px;
}

/* ---------- QUIENES SOMOS / PILLARS ---------- */
.pillars-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    align-items: center;
}

.pillars-intro p {
    color: var(--muted);
    font-size: 15.5px;
    margin-bottom: 18px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
}

.pillar {
    background: var(--paper);
    padding: 26px 24px;
}

.pillar .tag {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--orange);
    letter-spacing: 0.08em;
}

.pillar h3 {
    font-size: 16.5px;
    margin: 10px 0 8px;
}

.pillar p {
    font-size: 13.8px;
    color: var(--muted);
}

/* ---------- SERVICE PLATES ---------- */
.plates {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.plate {
    position: relative;
    background: var(--steel);
    color: var(--paper);
    padding: 30px 22px 26px;
    border: 1px solid var(--line-dark);
    transition: transform .25s ease, box-shadow .25s ease;
}

.plate:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(26, 31, 38, 0.22);
}

.plate .rivet {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(244, 243, 238, 0.35);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.4);
}

.plate .rivet.tl {
    top: 10px;
    left: 10px;
}

.plate .rivet.tr {
    top: 10px;
    right: 10px;
}

.plate .rivet.bl {
    bottom: 10px;
    left: 10px;
}

.plate .rivet.br {
    bottom: 10px;
    right: 10px;
}

.plate .code {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 13px;
    color: var(--orange);
    letter-spacing: 0.1em;
    border: 1px solid rgba(230, 96, 42, 0.5);
    display: inline-block;
    padding: 3px 8px;
    margin-bottom: 16px;
}

.plate h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.25;
}

.plate p {
    font-size: 13.6px;
    color: #c7cbd0;
    text-align: left;
    line-height: 1.5;
}

/* ---------- GAGO SECTION ---------- */
.gago {
    background: var(--orange);
    color: var(--ink);
    position: relative;
    overflow: hidden;
}

.gago::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(-45deg, rgba(26, 31, 38, 0.06) 0 2px, transparent 2px 18px);
}

.gago-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.gago .eyebrow {
    color: var(--ink);
}

.gago .eyebrow::before {
    background: var(--ink);
}

.gago h2 {
    font-size: clamp(26px, 3.2vw, 38px);
    margin-bottom: 16px;
    line-height: 1.15;
}

.gago-logo {
    width: min(280px, 60%);
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.gago p.lead {
    font-size: 15.5px;
    max-width: 480px;
    margin-bottom: 6px;
}

.gago-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gago-list li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(26, 31, 38, 0.18);
    font-family: var(--body);
    font-size: 15.5px;
    font-weight: 500;
}

.gago-list li:first-child {
    border-top: 1px solid rgba(26, 31, 38, 0.18);
}

.gago-list .mark {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink);
    opacity: 0.6;
}

/* ---------- METHOD / STEPS ---------- */
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.steps::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 6%;
    right: 6%;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--line-dark) 0 8px, transparent 8px 14px);
    z-index: 0;
}

.step {
    position: relative;
    padding: 0 20px 0 0;
    z-index: 1;
}

.step-num {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 14px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border: 3px solid var(--paper);
    box-shadow: 0 0 0 1px var(--line-dark);
}

.step h3 {
    font-size: 16.5px;
    margin-bottom: 8px;
}

.step p {
    font-size: 13.8px;
    color: var(--muted);
}

/* ---------- PLANES REF ---------- */
.planes {
    background: var(--ink);
    color: var(--paper);
}

.planes .section-head p {
    color: #a9afb5;
}

.plan-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.plan-card {
    background: var(--steel);
    border: 1px solid var(--line-dark);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}

.plan-card.featured {
    background: var(--steel-2);
    border-color: var(--orange);
    position: relative;
    transform: translateY(-10px);
}

.featured-tag {
    position: absolute;
    top: -13px;
    left: 24px;
    background: var(--orange);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 10px;
}

.plan-card h3 {
    font-family: var(--mono);
    font-size: 15px;
    letter-spacing: 0.06em;
    color: var(--orange);
    margin-bottom: 6px;
}

.plan-card .sub {
    font-size: 12.5px;
    color: #a9afb5;
    margin-bottom: 20px;
}

.plan-card ul {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 22px;
}

.plan-card li {
    font-size: 13.6px;
    padding-left: 18px;
    position: relative;
    color: #dcdee0;
}

.plan-card li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--orange);
    font-family: var(--mono);
}

.plan-card .urgency {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--teal);
    border-top: 1px dashed var(--line-dark);
    padding-top: 14px;
    margin-top: auto;
}

.planes-summary {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--line-dark);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.planes-summary .item {
    font-size: 13.8px;
    color: #c7cbd0;
    padding-left: 16px;
    border-left: 2px solid var(--orange);
}

/* ---------- PLAN TABS ---------- */
.plan-tabs {
    display: flex;
    gap: 1px;
    background: var(--line-dark);
    margin-bottom: 36px;
    border: 1px solid var(--line-dark);
    width: fit-content;
}

.tab-btn {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    background: var(--steel);
    color: #a9afb5;
    border: none;
    padding: 13px 26px;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.tab-btn:hover {
    color: var(--paper);
}

.tab-btn.active {
    background: var(--orange);
    color: var(--ink);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-intro {
    font-size: 15px;
    color: #c7cbd0;
    max-width: 620px;
    margin-bottom: 36px;
}

/* ---------- ELEC MODALITY CARDS ---------- */
.modality-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.modality-card {
    background: var(--steel);
    border: 1px solid var(--line-dark);
    padding: 30px 28px;
}

.mod-tag {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.09em;
    color: var(--orange);
    border: 1px solid rgba(230, 96, 42, 0.5);
    display: inline-block;
    padding: 3px 8px;
    margin-bottom: 16px;
}

.modality-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.modality-card>p {
    font-size: 14px;
    color: #c7cbd0;
    margin-bottom: 18px;
}

.modality-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.modality-card li {
    font-size: 13.6px;
    padding-left: 18px;
    position: relative;
    color: #dcdee0;
}

.modality-card li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--orange);
    font-family: var(--mono);
}

/* ---------- WHY US BADGES ---------- */
.why {
    background: var(--paper-alt);
}

.badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
}

.badge {
    background: var(--paper-alt);
    padding: 34px 20px;
    text-align: center;
}

.badge .icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 1.5px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
}

.badge p {
    font-size: 13.8px;
    font-weight: 500;
}

/* ---------- COLABORADORES / PROVEEDORES BANDS ---------- */
.band-section {
    padding: 70px 0;
}

.band-section.dark {
    background: var(--ink);
    color: var(--paper);
}

.band-section .section-head {
    margin-bottom: 32px;
}

.band-section.dark .section-head p {
    color: #a9afb5;
}

.band {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
    cursor: grab;
    user-select: none;
}

.band::-webkit-scrollbar {
    display: none;
}

.band.grabbing {
    cursor: grabbing;
}

.band-track {
    display: flex;
    width: max-content;
}

.band-colab {
    background: var(--steel);
    border: 1px solid var(--line-dark);
    padding: 22px 0;
    cursor: default;
}

.band-colab .band-track {
    gap: 18px;
    padding: 0 22px;
}

.seal-card {
    position: relative;
    background: var(--steel-2);
    border: 1px solid var(--line-dark);
    width: 180px;
    flex-shrink: 0;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color .2s, transform .2s;
}

.seal-card:hover {
    border-color: var(--orange);
    transform: translateY(-3px);
}

.seal-card .visit-arrow {
    position: absolute;
    top: 7px;
    right: 18px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--orange);
    opacity: 0;
    transition: opacity .2s;
}

.seal-card:hover .visit-arrow {
    opacity: 1;
}

.seal-card .rivet {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(244, 243, 238, 0.3);
}

.seal-card .rivet.tl {
    top: 8px;
    left: 8px;
}

.seal-card .rivet.tr {
    top: 8px;
    right: 8px;
}

.seal-card .lg {
    font-family: var(--mono);
    font-size: 11px;
    color: #e2e4e6;
    border: 1.5px dashed #55636f;
    background: transparent;
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.seal-card .lg.has-logo,
.band-prov .lg.has-logo {
    border-style: solid;
    border-color: transparent;
    background: transparent;
    padding: 4px;
}

.lg img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.seal-card .role {
    font-family: var(--mono);
    font-size: 9.5px;
    color: var(--orange);
    letter-spacing: 0.08em;
}

.band-prov {
    background: #fff;
    border: 1px solid var(--line);
    padding: 26px 0;
}

.band-prov .band-track {
    gap: 36px;
    padding: 0 30px;
    align-items: center;
}

.band-prov .lg {
    font-family: var(--mono);
    font-size: 11.5px;
    color: #9aa1a6;
    border: 1.5px dashed #b8bcc0;
    background: var(--paper);
    width: 150px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.band-clientes {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 26px 0;
    cursor: default;
}

.band-clientes .band-track {
    gap: 56px;
    padding: 0 30px;
    align-items: center;
}

.band-clientes .lg {
    font-family: var(--mono);
    font-size: 11.5px;
    color: #9aa1a6;
    border: 1.5px dashed #b8bcc0;
    background: var(--paper-alt);
    width: 140px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.band-hint {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--muted);
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.band-hint::before {
    content: "↔";
    color: var(--orange);
}

/* ---------- CONTACT ---------- */

.campo-web {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.form-msg {
    margin-top: 14px;
    font-weight: 600;
}

.form-msg.success {
    color: #15803d;
}

.form-msg.error {
    color: #dc2626;
}

#contactForm button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.contact {
    background: var(--ink);
    color: var(--paper);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: clamp(26px, 3vw, 36px);
    margin-bottom: 18px;
    line-height: 1.15;
}

.contact-info p {
    color: #c7cbd0;
    font-size: 15.5px;
    margin-bottom: 30px;
    max-width: 420px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
}

.contact-detail a,
.contact-detail div {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 15px;
}

.contact-detail .lbl {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--orange);
    letter-spacing: 0.08em;
    width: 80px;
    flex-shrink: 0;
}

.contact-detail a:hover {
    color: var(--orange);
}

form {
    background: var(--steel);
    border: 1px solid var(--line-dark);
    padding: 34px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.field label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a9afb5;
}

.field input,
.field select,
.field textarea {
    background: var(--ink);
    border: 1px solid var(--line-dark);
    color: var(--paper);
    padding: 11px 12px;
    font-family: var(--body);
    font-size: 14px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.field textarea {
    resize: vertical;
    min-height: 88px;
}

.form-msg {
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 12.5px;
    display: none;
}

.form-msg.show {
    display: block;
}

.form-msg.ok {
    color: var(--teal);
}

/* ---------- LOGO BOTTOM ---------- */

.logo-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 35px;
    margin-top: 35px;
}

.logo-bottom img {
    width: auto;
    max-width: 200px;
    height: 200px;
    object-fit: contain;
    display: block;
}

@media (max-width: 576px) {
    .logo-bottom {
        gap: 20px;
    }

    .logo-bottom img {
        max-width: 140px;
        height: 140px;
    }
}

/* ---------- POLITICA DE COOKIES ---------- */

.cookie-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    color: #ffffff;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner__text strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.cookie-banner__text p {
    margin: 0;
    color: #e5e7eb;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-banner__text a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
}

.cookie-banner__buttons {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.cookie-button {
    padding: 11px 18px;
    font: inherit;
    font-weight: 700;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.cookie-button--reject {
    color: #ffffff;
    background: transparent;
    border: 1px solid #9ca3af;
}

.cookie-button--accept {
    color: #ffffff;
    background: #2563eb;
}

.cookie-button:hover {
    opacity: 0.88;
}

@media (max-width: 700px) {
    .cookie-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: 18px;
    }

    .cookie-banner__content {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .cookie-banner__buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cookie-button {
        width: 100%;
    }
}

.cookie-settings-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.cookie-settings-link::before {
    content: "🍪";
    display: inline-block;
    font-size: 17px;
    transform-origin: center;
    transition: transform 0.4s ease;
}

.cookie-settings-link:hover::before {
    animation: cookie-bite 0.6s ease;
}

@keyframes cookie-bite {
    0% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(-18deg) scale(1.15);
    }

    50% {
        transform: rotate(18deg) scale(0.9);
    }

    75% {
        transform: rotate(-8deg) scale(1.1);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

/* ---------- PÁGINA POLÍTICA DE COOKIES ---------- */

.legal-page {
    min-height: 70vh;
    padding: 80px 20px;
    background: linear-gradient(180deg,
            var(--paper-alt) 0,
            var(--paper) 260px);
}

.legal-page .container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 55px 60px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 5px solid var(--orange);
    box-shadow: 0 18px 50px rgba(26, 31, 38, 0.08);
}

/* ---------- BOTÓN VOLVER ---------- */

.legal-page .legal-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    padding: 9px 15px;
    color: var(--steel);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    background: var(--paper-alt);
    border: 1px solid var(--line);
    border-left: 4px solid var(--orange);
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.legal-back__icon {
    display: inline-block;
    color: var(--orange);
    font-family: var(--body);
    font-size: 20px;
    line-height: 1;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.legal-page .legal-back:hover {
    color: var(--white);
    text-decoration: none;
    background: var(--ink);
    border-color: var(--ink);
    border-left-color: var(--orange);
    box-shadow: 0 8px 22px rgba(26, 31, 38, 0.16);
    transform: translateY(-2px);
}

.legal-page .legal-back:hover .legal-back__icon {
    color: var(--orange);
    transform: translateX(-4px);
}

.legal-page .legal-back:focus-visible {
    outline: 3px solid rgba(230, 96, 42, 0.35);
    outline-offset: 3px;
}

/* ---------- TÍTULO PRINCIPAL ---------- */

.legal-page h1 {
    position: relative;
    margin-bottom: 12px;
    padding-bottom: 22px;
    color: var(--ink);
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.legal-page h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 4px;
    background: var(--orange);
}

/* ---------- FECHA DE ACTUALIZACIÓN ---------- */

.legal-page h1+p {
    display: inline-flex;
    margin: 8px 0 38px;
    padding: 8px 12px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.03em;
    background: var(--paper-alt);
    border-left: 3px solid var(--teal);
}

/* ---------- SUBTÍTULOS ---------- */

.legal-page h2 {
    margin: 42px 0 14px;
    padding-bottom: 10px;
    color: var(--steel);
    font-size: clamp(23px, 3vw, 29px);
    line-height: 1.2;
    border-bottom: 1px solid var(--line);
}

.legal-page h3 {
    position: relative;
    margin: 28px 0 10px;
    padding-left: 16px;
    color: var(--steel-2);
    font-size: 19px;
    line-height: 1.3;
}

.legal-page h3::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 4px;
    background: var(--orange);
}

/* ---------- PÁRRAFOS ---------- */

.legal-page p {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85;
}

.legal-page p strong {
    color: var(--ink);
}

/* ---------- ENLACES DEL CONTENIDO ---------- */

.legal-page a:not(.legal-back) {
    color: var(--orange-dim);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.legal-page a:not(.legal-back):hover {
    color: var(--teal);
}

/* ---------- ADAPTACIÓN PARA CELULARES ---------- */

@media (max-width: 700px) {
    .legal-page {
        padding: 35px 14px;
    }

    .legal-page .container {
        padding: 35px 24px;
    }

    .legal-page .legal-back {
        margin-bottom: 24px;
        padding: 9px 13px;
        font-size: 11px;
    }

    .legal-page h1 {
        font-size: 36px;
    }

    .legal-page h1+p {
        display: block;
        margin-bottom: 30px;
        line-height: 1.5;
    }

    .legal-page h2 {
        margin-top: 34px;
        font-size: 23px;
    }

    .legal-page h3 {
        font-size: 18px;
    }

    .legal-page p {
        font-size: 15px;
        line-height: 1.75;
    }
}


/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-help {
    position: fixed;
    right: 24px;
    bottom: 156px;
    z-index: 201;
    width: min(330px, calc(100vw - 32px));
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .22);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .22s, transform .22s, visibility .22s;
}

.whatsapp-help.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-help h3 {
    font-size: 17px;
    margin: 0 28px 6px 0;
}

.whatsapp-help>p {
    font-size: 13.8px;
    color: var(--muted);
    margin-bottom: 14px;
}

.whatsapp-help-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.whatsapp-options {
    display: grid;
    gap: 7px;
}

.whatsapp-options a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 11px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 600;
    transition: border-color .2s, color .2s, transform .2s;
}

.whatsapp-options a::after {
    content: "→";
    color: #25D366;
}

.whatsapp-options a:hover {
    border-color: #25D366;
    color: #168944;
    transform: translateX(2px);
}

/* ---------- VOLVER ARRIBA ---------- */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 92px;
    z-index: 199;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease,
        background-color .2s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--orange);
    transform: translateY(-2px);
}

.back-to-top:focus-visible {
    outline: 3px solid rgba(255, 87, 51, .35);
    outline-offset: 3px;
}

.back-to-top svg {
    width: 21px;
    height: 21px;
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 200;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform .2s ease;
    border: 0;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.5);
    animation: wa-pulse 2.2s ease-out infinite;
}

@keyframes wa-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

@media (max-width:640px) {
    .whatsapp-help {
        right: 16px;
        bottom: 144px;
    }

    .back-to-top {
        right: 22px;
        bottom: 86px;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
    }
}

/* ---------- FOOTER ---------- */
footer {
    background: var(--ink);
    border-top: 1px solid var(--line-dark);
    padding: 32px 0;
    color: #aeb3b8;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 24px;
    font-size: 12.8px;
}

.footer-description {
    display: none;
    max-width: 280px;
    color: #aeb3b8;
    line-height: 1.5;

}

.footer-copyright {
    margin: 0;
    color: #8a9096;
}

.footer-copyright strong {
    color: var(--paper);
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 8px 18px;
}

.footer-legal-links a {
    padding: 3px 0;
    color: #c7cbd0;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: var(--orange);
    text-decoration: underline;
}

.footer-developer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #8a9096;
    font-size: 12px;
}

.footer-developer img {
    display: block;
    width: auto;
    max-width: 240px;
    height: 40px;
    padding: 5px 10px;
    object-fit: contain;
    /* background: var(--paper);
    border-radius: 4px;
    opacity: 1; */
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.footer-developer img:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

/* ---------- REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}



/* ---------- RESPONSIVE ---------- */
@media (max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hub {
        max-width: 300px;
        margin-top: 20px;
    }

    .pillars-layout {
        grid-template-columns: 1fr;
    }

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

    .gago-inner {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
        row-gap: 36px;
    }

    .steps::before {
        display: none;
    }

    .plan-cards {
        grid-template-columns: 1fr;
    }

    .plan-card.featured {
        transform: none;
    }

    .planes-summary {
        grid-template-columns: 1fr 1fr;
    }

    .modality-cards {
        grid-template-columns: 1fr;
    }

    .plan-tabs {
        width: 100%;
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1 1 auto;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width:640px) {
    .wrap {
        padding: 0 20px;
    }

    .nav-links {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--paper);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 24px;
        gap: 24px;
        font-size: 18px;
        transform: translateX(100%);
        transition: transform .3s ease;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .menu-toggle {
        display: flex;
    }

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

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

    .planes-summary {
        grid-template-columns: 1fr;
    }

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

    .footer-row {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-description {
        display: none;
        max-width: 420px;

    }

    .footer-legal-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-developer {
        flex-direction: column;
        gap: 7px;
    }
}

/* ---------- ACEPTACIÓN LEGAL DEL FORMULARIO ---------- */

.legal-consent {
    margin: 4px 0 20px;
}

.legal-consent label {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #c7cbd0;
    font-family: var(--body);
    font-size: 13px;
    line-height: 1.55;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
}

.legal-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--orange);
    cursor: pointer;
}

.legal-consent a {
    color: var(--orange);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-consent a:hover {
    color: var(--white);
}