/* ============ TOKENS ============ */
:root {
    --primary: #28d48c;
    --primary-dark: #1fa86e;
    --primary-soft: rgba(40, 212, 140, 0.12);
    --primary-glow: rgba(40, 212, 140, 0.35);

    --bg: #061914;
    --bg-2: #0a2a20;
    --bg-3: #0e3a2c;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);

    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-faint: rgba(255, 255, 255, 0.55);

    --radius: 18px;
    --radius-lg: 28px;
    --radius-sm: 12px;

    --shadow-lg: 0 25px 80px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.25);
    --shadow-green: 0 25px 60px -10px rgba(40, 212, 140, 0.45);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ============ RESET ============ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img, svg, video, iframe {
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
        radial-gradient(1200px 600px at 80% -100px, rgba(40, 212, 140, 0.16), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(40, 212, 140, 0.08), transparent 60%);
    background-attachment: fixed;
}

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

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

ul {
    list-style: none;
}

/* ============ LAYOUT ============ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

@media (max-width: 540px) {
    .container {
        padding: 0 18px;
    }
}

.section {
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 18px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
}

.eyebrow-green {
    color: var(--primary);
    border-color: rgba(40, 212, 140, 0.4);
    background: var(--primary-soft);
}

.eyebrow-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    text-wrap: balance;
}

.section-sub {
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-sub.left {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    margin-bottom: 36px;
}

.gradient-text {
    background: linear-gradient(135deg, #28d48c 0%, #5af5b4 50%, #28d48c 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-move 6s ease infinite;
}

@keyframes gradient-move {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============ BUTTONS ============ */
.btn-primary,
.btn-ghost,
.btn-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #28d48c 0%, #1fa86e 100%);
    color: #062b1c;
    padding: 14px 26px;
    border-radius: 999px;
    font-size: 15px;
    box-shadow: 0 14px 40px -8px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px -8px var(--primary-glow);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.btn-primary.full {
    width: 100%;
}

.btn-lg {
    padding: 18px 34px;
    font-size: 17px;
}

.btn-ghost {
    background: var(--surface);
    color: #fff;
    padding: 18px 30px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 17px;
    backdrop-filter: blur(20px);
}

.btn-ghost:hover {
    background: var(--surface-2);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-mini {
    background: var(--primary);
    color: #062b1c;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
}

.btn-mini:hover {
    background: #5af5b4;
}

/* ============ HEADER ============ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(6, 25, 20, 0.6);
    border-bottom: 1px solid transparent;
    transition: all 0.3s var(--ease);
}

.header.scrolled {
    background: rgba(6, 25, 20, 0.85);
    border-bottom-color: var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn-mini) {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links .nav-return {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff !important;
    font-weight: 800 !important;
}

.nav-links .nav-return svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-links .nav-return:hover {
    color: var(--primary) !important;
}

.nav-links a:not(.btn-mini):hover {
    color: #fff;
}

@media (max-width: 820px) {
    .nav-links a:not(.btn-mini) {
        display: none;
    }
    .nav-links {
        gap: 0;
    }
}

@media (max-width: 540px) {
    .header .container.nav {
        padding-left: 22px;
        padding-right: 22px;
    }
    .nav {
        padding-top: 14px;
        padding-bottom: 14px;
    }
    .brand {
        font-size: 16px;
        gap: 10px;
    }
    .brand img {
        width: 32px;
        height: 32px;
    }
    .btn-mini {
        padding: 9px 14px;
        font-size: 13px;
    }
}

/* ============ HERO ============ */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.hero-bg-glow {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    max-width: 80vw;
    max-height: 80vw;
    background: radial-gradient(circle, rgba(40, 212, 140, 0.25), transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

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

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .hero {
        padding-top: 120px;
    }
}

/* HERO CENTRADO (single column con phone debajo) */
.hero-centered .hero-grid {
    grid-template-columns: 1fr;
    gap: 70px;
    text-align: center;
}

.hero-centered .hero-text {
    max-width: 900px;
    margin: 0 auto;
}

.hero-centered .hero-subtitle {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.65;
}

.hero-centered .hero-ctas {
    justify-content: center;
    margin-bottom: 0;
}

.hero-centered .hero-phone-wrap {
    min-height: auto;
    margin-top: 10px;
}

@media (min-width: 961px) {
    .hero-centered .hero-phone-wrap {
        transform: scale(0.95);
    }
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-soft);
    border: 1px solid rgba(40, 212, 140, 0.3);
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.pill-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(40, 212, 140, 0.25);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(40, 212, 140, 0.55); }
    50% { box-shadow: 0 0 0 8px rgba(40, 212, 140, 0); }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    font-weight: 800;
    margin-bottom: 26px;
    text-wrap: balance;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 540px;
    line-height: 1.6;
}

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

.hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatars {
    display: flex;
}

.avatars span {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    margin-right: -10px;
    background: linear-gradient(135deg, #28d48c, #1fa86e);
}

.avatars span:nth-child(2) { background: linear-gradient(135deg, #5af5b4, #28d48c); }
.avatars span:nth-child(3) { background: linear-gradient(135deg, #1fa86e, #0a6e44); }
.avatars span:nth-child(4) { background: linear-gradient(135deg, #28d48c, #5af5b4); }

.stars {
    color: #ffc94a;
    font-size: 14px;
    letter-spacing: 2px;
}

.stars strong {
    color: #fff;
    margin-left: 6px;
}

.hero-trust small {
    color: var(--text-faint);
    font-size: 12px;
    display: block;
    margin-top: 2px;
}

/* ============ PHONE MOCKUP ============ */
.hero-phone-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    width: 100%;
    max-width: 100%;
}

.phone {
    width: 320px;
    height: 640px;
    background: #0d2520;
    border-radius: 48px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        var(--shadow-lg),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    animation: phone-float 6s ease-in-out infinite;
}

@keyframes phone-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-12px) rotate(-2deg); }
}

.phone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #000;
    border-radius: 999px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0a2a20 0%, #061914 100%);
    border-radius: 38px;
    padding: 60px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
}

.phone-top small {
    color: var(--text-faint);
    font-size: 12px;
    display: block;
}

.phone-top strong {
    font-size: 22px;
    font-family: var(--font-display);
    display: block;
}

.phone-medals {
    text-align: center;
    padding: 16px;
}

.medal-count {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #28d48c, #5af5b4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.medal-label {
    font-size: 13px;
    color: var(--text-faint);
    margin-top: 4px;
}

.phone-card {
    background: linear-gradient(135deg, #28d48c, #1fa86e);
    border-radius: 20px;
    padding: 22px;
    color: #052b1b;
    box-shadow: 0 20px 40px -10px rgba(40, 212, 140, 0.5);
    position: relative;
    overflow: hidden;
}

.phone-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    filter: blur(20px);
}

.phone-card-title {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.2em;
    font-weight: 700;
    opacity: 0.85;
    position: relative;
}

.phone-card-status {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 4px;
    position: relative;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #052b1b;
    box-shadow: 0 0 0 4px rgba(5, 43, 27, 0.25);
    animation: pulse-dark 1.6s infinite;
}

@keyframes pulse-dark {
    0%, 100% { box-shadow: 0 0 0 0 rgba(5, 43, 27, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(5, 43, 27, 0); }
}

.phone-card-foot {
    font-size: 11.5px;
    opacity: 0.85;
    margin-top: 12px;
    position: relative;
    font-weight: 500;
}

.phone-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mini-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.mini-card.alt {
    background: rgba(40, 212, 140, 0.08);
    border-color: rgba(40, 212, 140, 0.18);
}

.mini-icon {
    font-size: 22px;
}

.mini-card strong {
    font-size: 13px;
    font-family: var(--font-display);
    display: block;
}

.mini-card small {
    font-size: 10.5px;
    color: var(--text-faint);
}

.floating-badge {
    position: absolute;
    background: rgba(13, 37, 32, 0.85);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    padding: 12px 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    animation: float 5s ease-in-out infinite;
}

.floating-badge span {
    font-size: 24px;
}

.floating-badge strong {
    font-family: var(--font-display);
    font-size: 14px;
    display: block;
    line-height: 1.1;
}

.floating-badge small {
    font-size: 11px;
    color: var(--text-faint);
}

.badge-1 {
    top: 80px;
    left: -20px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 120px;
    right: -10px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (max-width: 480px) {
    .phone {
        width: 260px;
        height: 520px;
    }
    .badge-1 { left: -8px; }
    .badge-2 { right: -8px; }
}

@media (max-width: 360px) {
    .phone {
        width: 240px;
        height: 480px;
    }
}

/* ============ ROLES MARQUEE ============ */
.roles-bar {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(1000px 200px at 50% 50%, rgba(40, 212, 140, 0.06), transparent 70%),
        rgba(255, 255, 255, 0.015);
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.roles-bar p {
    text-align: center;
    color: var(--text-faint);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 32px;
    font-weight: 600;
}

.marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 12%,
        #000 88%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 12%,
        #000 88%,
        transparent 100%
    );
}

.marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marquee-scroll 32s linear infinite;
    will-change: transform;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.role-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 12px 22px;
    border-radius: 999px;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.005em;
    white-space: nowrap;
    transition: all 0.35s var(--ease);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.role-chip i {
    font-style: normal;
    font-size: 19px;
    line-height: 1;
    transition: transform 0.35s var(--ease);
}

.role-chip:hover {
    background: rgba(40, 212, 140, 0.12);
    border-color: rgba(40, 212, 140, 0.4);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -8px rgba(40, 212, 140, 0.35);
}

.role-chip:hover i {
    transform: scale(1.15) rotate(-6deg);
}

@media (max-width: 640px) {
    .role-chip {
        padding: 10px 18px;
        font-size: 14px;
    }
    .marquee-track {
        animation-duration: 28s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}

/* ============ VIDEO ============ */
.video-section {
    text-align: center;
}

.video-head {
    margin-bottom: 50px;
}

.video-frame {
    position: relative;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    border-radius: 28px;
    padding: 6px;
    background: linear-gradient(135deg, rgba(40, 212, 140, 0.4), rgba(40, 212, 140, 0.05));
    box-shadow: var(--shadow-green);
    box-sizing: border-box;
}

@media (max-width: 540px) {
    .video-frame {
        border-radius: 20px;
        padding: 4px;
    }
    .video-wrapper {
        border-radius: 16px;
    }
}

.video-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at 50% 50%, rgba(40, 212, 140, 0.25), transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: -1;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ============ PROBLEM ============ */
.problem {
    text-align: center;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 920px) {
    .problem-grid { grid-template-columns: 1fr; }
}

.problem-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: left;
    transition: all 0.3s var(--ease);
}

.problem-card:hover {
    transform: translateY(-4px);
    border-color: rgba(40, 212, 140, 0.25);
    background: var(--surface-2);
}

.problem-x {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 100, 100, 0.12);
    color: #ff8a8a;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
}

.problem-check {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 18px;
    box-shadow: inset 0 0 0 1px rgba(40, 212, 140, 0.25);
}

.problem-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 8px;
}

.problem-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ============ BENEFICIOS ============ */
.beneficios {
    text-align: center;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 56px;
}

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

@media (max-width: 600px) {
    .benefit-grid { grid-template-columns: 1fr; }
}

.benefit-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px;
    text-align: left;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(40, 212, 140, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.benefit-card:hover {
    transform: translateY(-6px);
    border-color: rgba(40, 212, 140, 0.3);
    background: var(--surface-2);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-card.big {
    grid-column: span 1;
    background: linear-gradient(135deg, rgba(40, 212, 140, 0.12), rgba(40, 212, 140, 0.03));
    border-color: rgba(40, 212, 140, 0.3);
}

@media (min-width: 920px) {
    .benefit-card.big {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--primary-soft);
    display: grid;
    place-items: center;
    font-size: 30px;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.benefit-chip {
    display: inline-block;
    margin-top: 16px;
    background: var(--primary);
    color: #052b1b;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-display);
}

/* ============ PUNTOS ============ */
.puntos-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 920px) {
    .puntos-grid { grid-template-columns: 1fr; gap: 40px; }
}

.puntos-text {
    text-align: center;
}

.puntos-text .section-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.puntos-text .section-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 36px;
}

.puntos-text .puntos-list {
    text-align: left;
}

.puntos-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 30px;
}

.puntos-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
}

.puntos-list li:hover {
    border-color: rgba(40, 212, 140, 0.25);
    background: var(--surface-2);
    transform: translateX(4px);
}

.puntos-item-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #052b1b;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
}

.puntos-list li strong {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: 16px;
}

.puntos-list li small {
    display: block;
    color: var(--text-muted);
    font-size: 13.5px;
    margin-top: 4px;
}

.puntos-conversion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.convert-disclaimer {
    max-width: 420px;
    text-align: center;
    color: var(--text-faint);
    font-size: 11.5px;
    line-height: 1.5;
    font-style: italic;
    margin: 0;
    padding: 0 8px;
}

.convert-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, rgba(40, 212, 140, 0.12), rgba(40, 212, 140, 0.02));
    border: 1px solid rgba(40, 212, 140, 0.3);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    text-align: center;
    box-shadow: var(--shadow-green);
    position: relative;
}

.convert-label {
    font-size: 12px;
    color: var(--text-faint);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
}

.convert-amount {
    display: none;
}

.convert-medal-icon {
    font-size: 64px;
    line-height: 1;
    margin: 14px 0 6px;
    filter: drop-shadow(0 8px 16px rgba(40, 212, 140, 0.35));
    animation: medal-float 4s ease-in-out infinite;
}

@keyframes medal-float {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-6px) rotate(3deg); }
}

.convert-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 8px 0 6px;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #28d48c, #5af5b4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.convert-sublabel {
    display: block;
    font-size: 13px;
    color: var(--text-faint);
    line-height: 1.5;
    margin: 0 auto 24px;
    max-width: 280px;
}

.convert-options-v2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.convert-option-v2 {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    transition: all 0.3s var(--ease);
}

.convert-option-v2:hover {
    background: var(--surface-2);
    border-color: rgba(40, 212, 140, 0.3);
    transform: translateX(2px);
}

.convert-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
    width: 38px;
    text-align: center;
}

.convert-option-v2 strong {
    font-family: var(--font-display);
    font-size: 15px;
    color: #fff;
    display: block;
    line-height: 1.1;
}

.convert-option-v2 small {
    display: block;
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 3px;
}

/* ============ PROTEGE / DEFENSORIA PENAL ============ */
.protege {
    padding-top: 60px;
    padding-bottom: 60px;
}

.protege-card {
    position: relative;
    background:
        radial-gradient(circle at 100% 0%, rgba(40, 212, 140, 0.18), transparent 50%),
        linear-gradient(135deg, #0a2a20 0%, #061914 100%);
    border: 1px solid rgba(40, 212, 140, 0.3);
    border-radius: 36px;
    padding: 70px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 40px;
    align-items: flex-start;
    overflow: hidden;
    box-shadow: var(--shadow-green);
    max-width: 100%;
}

.protege-card::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    max-width: 80%;
    max-height: 80%;
    background: radial-gradient(circle, rgba(40, 212, 140, 0.18), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

@media (max-width: 920px) {
    .protege-card {
        grid-template-columns: 1fr;
        padding: 50px 32px;
        gap: 28px;
        text-align: center;
    }
}

@media (max-width: 540px) {
    .protege-card {
        padding: 40px 22px;
        border-radius: 24px;
    }
}

.protege-shield {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    background: linear-gradient(135deg, #28d48c, #1fa86e);
    display: grid;
    place-items: center;
    color: #052b1b;
    box-shadow: 0 20px 50px -10px rgba(40, 212, 140, 0.6);
    position: relative;
    z-index: 1;
    animation: shield-glow 3s ease-in-out infinite;
}

.protege-shield svg {
    width: 60px;
    height: 60px;
}

@keyframes shield-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 20px 50px -10px rgba(40, 212, 140, 0.6);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 25px 60px -10px rgba(40, 212, 140, 0.85);
    }
}

@media (max-width: 920px) {
    .protege-shield {
        margin: 0 auto;
    }
}

.protege-content {
    position: relative;
    z-index: 1;
}

.protege-content .section-title {
    font-size: clamp(1.8rem, 3.8vw, 2.8rem);
    margin-bottom: 18px;
    text-align: left;
}

@media (max-width: 920px) {
    .protege-content .section-title {
        text-align: center;
    }
}

.protege-lead {
    color: var(--text-muted);
    font-size: 16.5px;
    margin-bottom: 32px;
    max-width: 720px;
    line-height: 1.65;
}

.protege-lead strong {
    color: #fff;
    font-weight: 700;
}

.protege-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 820px) {
    .protege-features { grid-template-columns: 1fr; }
}

.protege-feat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: all 0.3s var(--ease);
}

.protege-feat:hover {
    background: var(--surface-2);
    border-color: rgba(40, 212, 140, 0.3);
    transform: translateY(-3px);
}

.protege-feat-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.protege-feat strong {
    font-family: var(--font-display);
    font-size: 15px;
    display: block;
    margin-bottom: 2px;
    color: #fff;
}

.protege-feat small {
    font-size: 12.5px;
    color: var(--text-faint);
    line-height: 1.45;
}

/* ============ CARRERA / SISTEMA DE RANGOS ============ */
.carrera {
    text-align: center;
}

.ranks {
    max-width: 1100px;
    width: 100%;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 50px;
    text-align: left;
}

/* TIER HEADER */
.rank-tier {
    position: relative;
}

.rank-tier-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
}

.rank-tier-label {
    font-family: var(--font-display);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-faint);
    font-weight: 700;
}

.rank-tier-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.tier-novato .rank-tier-name { color: #b8c4be; }
.tier-guardia .rank-tier-name { color: #5af5b4; }
.tier-guardian .rank-tier-name { color: var(--primary); }
.tier-agente .rank-tier-name {
    background: linear-gradient(135deg, #ffd47a, #ffb347 60%, #ffd47a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tier-agente .rank-tier-label {
    color: #ffd47a;
}

/* GRID */
.rank-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.rank-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 820px) {
    .rank-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* CARD */
.rank-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    transition: all 0.35s var(--ease);
}

.rank-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(40, 212, 140, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    pointer-events: none;
}

.rank-card:hover {
    transform: translateY(-4px);
    border-color: rgba(40, 212, 140, 0.3);
    background: var(--surface-2);
}

.rank-card:hover::before {
    opacity: 1;
}

/* BADGE */
.rank-badge {
    position: relative;
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    flex-shrink: 0;
}

.rank-number {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    background: #061914;
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    border: 2px solid var(--bg);
    z-index: 2;
}

.rank-stars {
    color: #052b1b;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 1px;
    z-index: 1;
}

.rank-shield,
.rank-crown {
    width: 30px;
    height: 30px;
    color: #052b1b;
    z-index: 1;
}

/* PROGRESIÓN DE COLORES POR TIER */
/* Tier 0: Novato */
.rank-0 .rank-badge {
    background: linear-gradient(135deg, #2a3a35, #1c2a25);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.rank-0 .rank-badge::after {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.4);
}

/* Tier 1: Guardia (verde claro a verde medio) */
.rank-1 .rank-badge { background: linear-gradient(135deg, #6dd9a8, #4ec78f); }
.rank-2 .rank-badge { background: linear-gradient(135deg, #5af5b4, #2fc88a); }
.rank-3 .rank-badge { background: linear-gradient(135deg, #3fdc9b, #20b374); }

/* Tier 2: Guardián (verde medio a fuerte) */
.rank-4 .rank-badge { background: linear-gradient(135deg, #28d48c, #1fa86e); }
.rank-5 .rank-badge { background: linear-gradient(135deg, #20b374, #157a51); }
.rank-6 .rank-badge {
    background: linear-gradient(135deg, #28d48c, #0a6e44);
    box-shadow: 0 0 0 2px rgba(40, 212, 140, 0.25), 0 10px 24px -6px rgba(40, 212, 140, 0.45);
}

/* Tier 3: Agente (dorado especial) */
.rank-7 .rank-badge {
    background: linear-gradient(135deg, #ffd47a 0%, #ffb347 50%, #ffd47a 100%);
    box-shadow:
        0 0 0 2px rgba(255, 196, 109, 0.4),
        0 14px 32px -8px rgba(255, 180, 71, 0.6);
    animation: badge-shine 3s ease-in-out infinite;
}

.rank-7 .rank-shield,
.rank-7 .rank-crown,
.rank-7 .rank-stars {
    color: #5a3500;
}

@keyframes badge-shine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

/* MASTER CARD (Agente de Seguridad) */
.rank-master {
    background: linear-gradient(135deg, rgba(255, 196, 109, 0.08), rgba(40, 212, 140, 0.05));
    border-color: rgba(255, 196, 109, 0.35);
    position: relative;
}

.rank-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(255, 196, 109, 0.2), rgba(40, 212, 140, 0.1));
    border-radius: var(--radius-lg);
    filter: blur(20px);
    z-index: -1;
    opacity: 0.7;
}

.rank-master:hover {
    border-color: rgba(255, 196, 109, 0.6);
}

/* INFO */
.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-cost {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    font-family: var(--font-display);
}

.rank-0 .rank-cost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-faint);
}

.rank-master .rank-cost {
    background: rgba(255, 196, 109, 0.14);
    color: #ffd47a;
}

.rank-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 6px;
    color: #fff;
    letter-spacing: -0.01em;
}

.rank-master h3 {
    font-size: 22px;
}

.rank-card p {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.rank-master p {
    font-size: 14.5px;
}

/* ============ HOW ============ */
.how {
    text-align: center;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 820px) {
    .how-grid { grid-template-columns: 1fr; }
}

.how-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: left;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.how-card:hover {
    border-color: rgba(40, 212, 140, 0.3);
    background: var(--surface-2);
    transform: translateY(-4px);
}

.how-number {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #28d48c, rgba(40, 212, 140, 0.2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 18px;
}

.how-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 10px;
}

.how-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ============ STATS ============ */
.stats {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent, rgba(40, 212, 140, 0.04), transparent);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

@media (max-width: 820px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

.stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #28d48c, #5af5b4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.stat span {
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

/* ============ TESTIMONIOS ============ */
.testimonios {
    text-align: center;
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 30px;
}

@media (max-width: 920px) {
    .testi-grid { grid-template-columns: 1fr; }
}

.testi {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: left;
    transition: all 0.3s var(--ease);
}

.testi:hover {
    border-color: rgba(40, 212, 140, 0.2);
    background: var(--surface-2);
    transform: translateY(-4px);
}

.testi-stars {
    color: #ffc94a;
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.testi p {
    font-size: 16px;
    color: #fff;
    margin-bottom: 22px;
    line-height: 1.55;
    font-weight: 400;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testi-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28d48c, #1fa86e);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    color: #052b1b;
}

.testi-author strong {
    font-family: var(--font-display);
    font-size: 15px;
    display: block;
}

.testi-author small {
    font-size: 12.5px;
    color: var(--text-faint);
}

/* ============ DOWNLOAD CTA ============ */
.download-card {
    position: relative;
    background: linear-gradient(135deg, #0a3a2a 0%, #061914 100%);
    border: 1px solid rgba(40, 212, 140, 0.3);
    border-radius: 36px;
    padding: 70px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow-green);
    max-width: 100%;
}

@media (max-width: 920px) {
    .download-card {
        grid-template-columns: 1fr;
        padding: 50px 32px;
        text-align: center;
    }
    .download-phone-mini {
        order: -1;
    }
}

@media (max-width: 540px) {
    .download-card {
        padding: 40px 22px;
        border-radius: 24px;
    }
    .app-icon {
        width: 180px;
        height: 180px;
        border-radius: 38px;
        padding: 24px;
    }
}

.download-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    max-width: 80vw;
    max-height: 80vw;
    background: radial-gradient(circle, rgba(40, 212, 140, 0.4), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 14px 0 16px;
    text-wrap: balance;
}

.download-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 16px;
    max-width: 520px;
}

@media (max-width: 920px) {
    .download-card p { margin-left: auto; margin-right: auto; }
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

@media (max-width: 920px) {
    .download-buttons { justify-content: center; }
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: #000;
    padding: 14px 24px;
    border-radius: 14px;
    transition: all 0.3s var(--ease);
    border: 2px solid transparent;
    font-family: var(--font-display);
}

.store-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.store-button.primary {
    background: var(--primary);
    color: #052b1b;
    box-shadow: 0 14px 40px -8px var(--primary-glow);
}

.store-button svg {
    width: 28px;
    height: 28px;
}

.store-button-text {
    text-align: left;
    line-height: 1.15;
}

.store-button-text small {
    font-size: 10.5px;
    font-weight: 500;
    opacity: 0.7;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.store-button-text strong {
    font-size: 16px;
    display: block;
    font-weight: 800;
}

.download-features {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

@media (max-width: 920px) {
    .download-features { justify-content: center; }
}

.download-features span {
    color: var(--text-muted);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.download-phone-mini {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.app-icon {
    width: 220px;
    height: 220px;
    border-radius: 48px;
    background: linear-gradient(135deg, #ffffff 0%, #e8fbf2 100%);
    display: grid;
    place-items: center;
    padding: 30px;
    box-shadow:
        0 30px 70px -10px rgba(40, 212, 140, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    animation: rotate-soft 8s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.app-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(40, 212, 140, 0.12), transparent 60%);
    pointer-events: none;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

@keyframes rotate-soft {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(-2deg) translateY(-10px); }
}

/* ============ FOOTER ============ */
.footer {
    position: relative;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(40, 212, 140, 0.6), transparent);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
    gap: 50px;
    margin-bottom: 50px;
}

@media (max-width: 1000px) {
    .footer-top { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
    .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
    .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

.brand-foot img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.footer-brand-col > p {
    color: var(--text-faint);
    font-size: 14px;
    margin-top: 16px;
    max-width: 360px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--text-muted);
    transition: all 0.3s var(--ease);
}

.footer-social a svg {
    width: 17px;
    height: 17px;
}

.footer-social a:hover {
    background: rgba(40, 212, 140, 0.12);
    border-color: rgba(40, 212, 140, 0.3);
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-col h4,
.footer-brand-col h4 {
    font-family: var(--font-display);
    font-size: 13px;
    margin-bottom: 18px;
    color: #fff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
    transform: translateX(2px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.5;
}

.footer-contact-item svg {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-top: 2px;
    color: var(--primary);
    opacity: 0.8;
}

.footer-contact-item a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-contact-item a:hover {
    color: var(--primary);
}

/* CERTIFICACIONES */
.footer-cert {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

.footer-cert-label {
    text-align: center;
    color: var(--text-faint);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 22px;
}

.footer-cert-logos {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
    max-width: 420px;
    flex: 1 1 380px;
}

.cert-item:hover {
    background: var(--surface-2);
    border-color: rgba(40, 212, 140, 0.25);
    transform: translateY(-2px);
}

.cert-logo-wrap {
    height: 76px;
    min-width: 76px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: transparent;
}

.cert-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    display: block;
}

/* Carabineros: cuadrado y centrado */
.cert-logo-wrap:not(.cert-logo-aseva) {
    width: 76px;
}

.cert-logo-wrap:not(.cert-logo-aseva) img {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.12));
}

/* ASEVA: rectangular horizontal */
.cert-logo-aseva {
    width: 130px;
}

.cert-logo-aseva img {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1) opacity(0.92);
}

.cert-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 13.5px;
    color: #fff;
    margin-bottom: 3px;
}

.cert-item small {
    display: block;
    font-size: 11.5px;
    color: var(--text-faint);
    line-height: 1.4;
}

.cert-divider {
    width: 1px;
    height: 50px;
    background: var(--border);
}

@media (max-width: 720px) {
    .footer-cert-logos {
        flex-direction: column;
        gap: 16px;
    }
    .cert-divider {
        display: none;
    }
    .cert-item {
        width: 100%;
        max-width: 100%;
    }
}

/* EMPRESAS DEL GRUPO */
.footer-group {
    padding: 28px 0 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

.footer-group-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.group-logo {
    display: grid;
    place-items: center;
    height: 64px;
    padding: 0 22px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.35s var(--ease);
    min-width: 180px;
    flex: 1 1 200px;
    max-width: 240px;
}

.group-logo img {
    height: 36px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.35s var(--ease);
}

.group-logo:hover {
    background: rgba(40, 212, 140, 0.06);
    border-color: rgba(40, 212, 140, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(40, 212, 140, 0.25);
}

.group-logo:hover img {
    opacity: 1;
}

.group-logo-current {
    background: rgba(40, 212, 140, 0.06);
    border-color: rgba(40, 212, 140, 0.4);
    box-shadow: inset 0 0 0 1px rgba(40, 212, 140, 0.1);
    position: relative;
}

.group-logo-current::before {
    content: "Estás aquí";
    position: absolute;
    top: -10px;
    right: 14px;
    background: var(--primary);
    color: #052b1b;
    font-size: 9.5px;
    font-family: var(--font-display);
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.group-logo-current img {
    opacity: 1;
}

@media (max-width: 720px) {
    .footer-group-logos {
        gap: 10px;
    }
    .group-logo {
        min-width: 140px;
        max-width: 100%;
        flex: 1 1 calc(50% - 5px);
        padding: 0 14px;
        height: 56px;
    }
    .group-logo img {
        height: 28px;
    }
}

.footer-legal {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 640px) {
    .footer-legal {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-faint);
}

.footer-legal-links a {
    color: var(--text-muted);
    font-size: 13px;
    transition: color 0.2s;
}

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

.footer-legal-links span {
    color: var(--text-faint);
    opacity: 0.5;
}

.footer-legal small {
    color: var(--text-faint);
    font-size: 12.5px;
}

/* ============ FLOATING CTA MOBILE ============ */
.floating-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: linear-gradient(135deg, #28d48c, #1fa86e);
    color: #052b1b;
    padding: 14px 24px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 18px 40px -8px var(--primary-glow);
    z-index: 50;
    transition: transform 0.4s var(--ease);
}

.floating-cta svg {
    width: 18px;
    height: 18px;
}

.floating-cta.show {
    transform: translateX(-50%) translateY(0);
}

@media (min-width: 821px) {
    .floating-cta {
        display: none;
    }
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(40, 212, 140, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(40, 212, 140, 0.5);
}

/* ============ SELECTION ============ */
::selection {
    background: rgba(40, 212, 140, 0.4);
    color: #fff;
}
