:root {
    /* Corporativo NESAGAVIRIA (alineado a styles.css) */
    --color-primary: #00a97a;
    --color-primary-dark: #008a66;
    --color-primary-light: #00c48a;
    --color-secondary: #60bb95;
    --color-secondary-light: #7dd4b0;
    --color-light-gray: #e8f5f0;

    --bg: #050505;
    --surface: #0c0f0e;
    --text: #ffffff;
    --text-muted: #9eb3ad;
    --accent: var(--color-primary);
    --accent-hover: var(--color-primary-light);
    --accent-soft: rgba(0, 169, 122, 0.14);
    --accent-border: rgba(0, 169, 122, 0.45);
    --white-block: var(--color-light-gray);
    --text-dark: #1a1a1a;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #fff;
    z-index: 2000;
}

/* —— Cabecera —— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #000;
    border-bottom: 1px solid rgba(0, 169, 122, 0.2);
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-header__logo img {
    height: 56px;
    width: auto;
}

.site-header__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem 1.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-header__nav a:hover {
    color: var(--accent);
}

/* —— Hero —— */
.hero {
    position: relative;
    min-height: min(88vh, 720px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 3rem 1.25rem 4rem;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: url("../images/Pagos.jpg") 27% center / cover no-repeat;
}

.hero__texture {
    position: absolute;
    inset: 0;
    display: none;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    width: 100%;
    margin-left: auto;
    margin-right: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    --hero-column-width: 34rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65), 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 8.75rem 1.5rem auto;
    background: linear-gradient(145deg, var(--color-primary-light), var(--color-primary-dark));
    border-radius: 0.35rem;
    box-shadow: 0 12px 40px rgba(0, 169, 122, 0.35);
}

.hero__badge svg {
    display: block;
    width: 2.25rem;
    height: 2.25rem;
    fill: #fff;
}

.hero h1 {
    margin: 0 0 1rem;
    width: 100%;
    max-width: var(--hero-column-width);
    margin-left: auto;
    font-size: clamp(1.75rem, 5vw, 2.65rem);
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-align: right;
}

.hero__lead {
    margin: 0 0 2rem auto;
    max-width: var(--hero-column-width);
    width: 100%;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
}

.hero__lead strong {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero {
        justify-content: center;
    }

    .hero__lead {
        text-align: justify;
        text-align-last: left;
    }
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    border-radius: 0.2rem;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 138, 102, 0.35);
    text-shadow: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-right: 5rem;
}

.cta:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    box-shadow: 0 8px 28px rgba(0, 169, 122, 0.42);
}

.cta:focus-visible {
    outline: 2px solid var(--color-secondary-light);
    outline-offset: 3px;
}

.cta:active {
    transform: scale(0.98);
}

.cta svg {
    display: block;
    width: 1.1em;
    height: 1.1em;
    fill: currentColor;
}

.hero__note {
    margin-top: 1.25rem;
    width: fit-content;
    max-width: min(100%, var(--hero-column-width));
    margin-left: auto;
    margin-right: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    text-align: right;
    padding: 0.65rem 0.9rem;
    background: linear-gradient(135deg,
            rgba(0, 169, 122, 0.38),
            rgba(0, 138, 102, 0.34));
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.3rem;
    box-shadow: 0 4px 18px rgba(0, 169, 122, 0.28);
    backdrop-filter: blur(6px);
}

/* —— Franja beneficios —— */
.strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid rgba(0, 169, 122, 0.12);
    border-bottom: 1px solid rgba(0, 169, 122, 0.12);
}

.strip__cell {
    padding: 1.45rem 1.1rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.35;
    color: var(--text-muted);
    background: var(--surface);
    border-right: 1px solid rgba(0, 169, 122, 0.1);
}

.strip__cell:last-child {
    border-right: none;
}

.strip__cell span {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 768px) {
    .strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .strip__cell:nth-child(2) {
        border-right: none;
    }

    .strip__cell:nth-child(1),
    .strip__cell:nth-child(2) {
        border-bottom: 1px solid rgba(0, 169, 122, 0.1);
    }
}

/* —— Bloque claro —— */
.intro {
    background: var(--white-block);
    color: var(--text-dark);
    padding: 3.5rem 1.25rem;
}

.intro__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.65;
}

.intro__inner em {
    font-style: normal;
    color: var(--accent);
    font-weight: 600;
}

/* —— Medios de pago —— */
.payments {
    padding: 3.5rem 1.25rem 4rem;
    background: #000;
}

.payments__inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.payments h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 650;
}

.payments__sub {
    margin: 0 0 2.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.payments__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.payments__card {
    min-width: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.35rem;
    padding: 1.15rem 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 128px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.payments__card:hover {
    border-color: var(--accent-border);
    background: var(--color-light-gray);
    box-shadow: 0 4px 16px rgba(0, 169, 122, 0.2);
}

.payments__card img {
    display: block;
    max-height: 56px;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.payments__card--efecty img {
    max-height: 80px;
}

.payments__card--aval img {
    max-height: 76px;
}

.payments__label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2d3436;
}

.payments__cta-wrap {
    margin-top: 2.5rem;
}

/* —— Pie —— */
.site-footer {
    padding: 1.5rem 1.25rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 169, 122, 0.15);
}

.site-footer a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
