/* ===================================
   CSS VARIABLES / TOKENS
   =================================== */
:root {
    /* Fondos - Deep Dark Blue System */
    --bg-page: #001d3d;           /* Negro azulado (Deep Space) */
    --bg-section-alt: #010409;    /* Tu azul medianoche profundo */
    --bg-card: #0D1117;           /* Azul Oxford para elevación */

    /* Acentos - Electric Blue */
    --bg-accent: #173DED;         /* Tu azul principal vibrante */
    --bg-accent-hover: #1232C2;   /* Azul cobalto para interacción */
    --bg-accent-glow: rgba(23, 61, 237, 0.25); /* Resplandor más intenso */

    /* Texto & Tipografía */
    --text-primary: #f2f2f2;      /* Blanco azulado frío */
    --text-secondary: #f7f7f7;    /* Gris azulado medio */
    --text-muted: #eee;        /* Tono apagado para detalles */

    /* Bordes y Detalles */
    --border-subtle: #eee;     /* Borde integrado al azul oscuro */
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.25rem;
    --line-height-base: 1.6;
    --line-height-heading: 1.2;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    
    /* Container */
    --container-max: 1200px;
    --container-padding: 1.25rem;
    
    /* Header */
    --header-height: 70px;
}

/* Tablet adjustments */
@media (min-width: 768px) {
    :root {
        --font-size-h1: 2.5rem;
        --font-size-h2: 2rem;
        --font-size-h3: 1.5rem;
        --container-padding: 2rem;
    }
}

/* Desktop adjustments */
@media (min-width: 1024px) {
    :root {
        --font-size-h1: 3rem;
        --font-size-h2: 2.25rem;
        --space-xxl: 5rem;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([loading]) {
    opacity: 1;
}

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

ul {
    list-style: none;
}

/* ===================================
   LAYOUT UTILITIES
   =================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    line-height: var(--line-height-heading);
    font-weight: 700;
}

.section-title {
    font-size: var(--font-size-h2);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.section-title--accent {
    color: var(--text-primary);
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn:focus-visible {
    outline: 3px solid var(--bg-accent);
    outline-offset: 3px;
}

/* Button variants */
.btn--primary {
    background-color: var(--bg-accent);
    color: var(--text-primary);
    border-color: var(--bg-accent);
}

.btn--primary:hover {
    background-color: #1a47ff;
    border-color: #1a47ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(23, 61, 237, 0.3);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn--secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-page);
}

.btn--outline {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn--outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--bg-accent);
    color: var(--bg-accent);
}

/* Button sizes */
.btn--small {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-small);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: var(--font-size-large);
}

.btn--xlarge {
    padding: 1.25rem 2.5rem;
    font-size: var(--font-size-large);
}

@media (max-width: 767px) {
    .btn--large,
    .btn--xlarge {
        width: 100%;
        padding: 1rem 1.5rem;
    }
}

/* ===================================
   HEADER
   =================================== */
.header {
    position: sticky;
    top: 0;
    background-color: var(--bg-page);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header .container {
    width: 100%;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header__logo img {
    height: 40px;
    width: auto;
}

.header__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
}

.header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    flex: 0 0 auto;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    background: linear-gradient(135deg, var(--bg-page) 0%, var(--bg-section-alt) 100%);
    padding: var(--space-xxl) 0;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.hero__content {
    text-align: center;
}

.hero__title {
    font-size: var(--font-size-h1);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.hero__subtitle {
    font-size: var(--font-size-large);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero__cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image {
    max-width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .hero__cta {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero .container {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: var(--space-xl);
    }

    .hero__content {
        flex: 0 0 50%;
        max-width: 50%;
        text-align: left;
        padding-right: var(--space-lg);
    }

    .hero__title {
        max-width: 100%;
        word-break: normal;
        overflow-wrap: normal;
    }

    .hero__subtitle {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .hero__cta {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .hero__visual {
        flex: 0 0 50%;
        max-width: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero__visual picture {
        display: block;
        width: 100%;
        max-width: 600px;
    }

    .hero__image {
        width: 100%;
        max-width: 600px;
        height: auto;
    }
}

/* ===================================
   BENEFITS SECTION
   =================================== */
.benefits {
    background-color: var(--bg-section-alt);
    padding: var(--space-xxl) 0;
}

.benefits__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.benefit-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.benefit-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--bg-accent);
    transform: translateY(-4px);
}

.benefit-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.benefit-card__title {
    font-size: var(--font-size-h3);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.benefit-card__text {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

/* ===================================
   PRODUCTS SECTION
   =================================== */
.products {
    background-color: var(--bg-page);
    padding: var(--space-xxl) 0;
}

.products__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

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

.product-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.product-card:hover {
    border-color: var(--bg-accent);
    box-shadow: 0 8px 24px rgba(23, 61, 237, 0.2);
}

.product-card__image {
    background-color: rgba(255, 255, 255, 0.05);
    width: 100%;
    height: auto;
    overflow: hidden;
    display: block;
    padding: 0;
    min-height: 0;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: none;
}

.product-card__content {
    padding: var(--space-lg);
}

.product-card__name {
    font-size: var(--font-size-h3);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.product-card__description {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.product-card__benefit {
    font-size: var(--font-size-small);
    color: var(--text-muted);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card__benefit strong {
    color: var(--bg-accent);
}

/* ===================================
   OPPORTUNITY SECTION
   =================================== */
.opportunity {
    background-color: var(--bg-section-alt);
    padding: var(--space-xxl) 0;
}

.opportunity__content {
    max-width: 900px;
    margin: 0 auto;
}

.opportunity__intro {
    font-size: var(--font-size-large);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.opportunity__highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .opportunity__highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .opportunity__highlights {
        grid-template-columns: repeat(4, 1fr);
    }
}

.highlight-item {
    background-color: rgba(23, 61, 237, 0.1);
    border: 1px solid var(--bg-accent);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
}

.highlight-item__label {
    display: block;
    font-size: var(--font-size-small);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.highlight-item__value {
    display: block;
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--text-primary);
}

/* ===================================
   CLUB 960 SECTION
   =================================== */
.club960 {
    background: #212529;
    padding: var(--space-xxl) 0;
}

.club960__content {
    margin-bottom: var(--space-xl);
}

.club960__intro {
    font-size: var(--font-size-large);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.club960__data {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
    .club960__data {
        grid-template-columns: repeat(3, 1fr);
    }
}

.data-block {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
}

.data-block--highlight {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
}

.data-block__label {
    display: block;
    font-size: var(--font-size-small);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.data-block__value {
    display: block;
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--text-primary);
}

.club960__tagline {
    font-size: var(--font-size-large);
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
}

.club960__requirements {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.club960__requirements-title {
    font-size: var(--font-size-h3);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.requirements-list {
    list-style: none;
}

.requirements-list__item {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.requirements-list__item::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--text-primary);
    font-weight: 700;
}

.requirements-list__item strong {
    color: var(--text-primary);
}

.club960__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.club960__visual img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

/* ===================================
   HOW IT WORKS SECTION
   =================================== */
.how-it-works {
    background-color: var(--bg-page);
    padding: var(--space-xxl) 0;
}

.steps {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.step {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.step__number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--bg-accent);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-large);
    font-weight: 700;
}

.step__content {
    flex: 1;
    padding-top: var(--space-xs);
}

.step__title {
    font-size: var(--font-size-h3);
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.step__text {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .step__number {
        width: 60px;
        height: 60px;
    }
}

/* ===================================
   CTA FINAL SECTION
   =================================== */
.cta-final {
    background: linear-gradient(135deg, var(--bg-section-alt) 0%, var(--bg-page) 100%);
    padding: var(--space-xxl) 0;
    text-align: center;
}

.cta-final__title {
    font-size: var(--font-size-h2);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.cta-final__text {
    font-size: var(--font-size-large);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-final__buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

@media (min-width: 768px) {
    .cta-final__buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--bg-page);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-xxl) 0 var(--space-lg);
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .footer__content {
        grid-template-columns: 1fr 2fr;
    }
}

.footer__brand {
    text-align: center;
}

@media (min-width: 768px) {
    .footer__brand {
        text-align: left;
    }
}

.footer__brand img {
    margin: 0 auto var(--space-sm);
}

@media (min-width: 768px) {
    .footer__brand img {
        margin: 0 0 var(--space-sm);
    }
}

.footer__tagline {
    font-size: var(--font-size-small);
    color: var(--text-muted);
}

.footer__links {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .footer__links {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer__column {
    text-align: center;
}

@media (min-width: 768px) {
    .footer__column {
        text-align: left;
    }
}

.footer__column-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__list a {
    color: var(--text-muted);
    font-size: var(--font-size-small);
    transition: color var(--transition-fast);
}

.footer__list a:hover {
    color: var(--bg-accent);
}

.footer__list a:focus-visible {
    outline: 2px solid var(--bg-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer__disclaimer {
    font-size: var(--font-size-small);
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer__copyright {
    font-size: var(--font-size-small);
    color: var(--text-muted);
}

/* ===================================
   ACCESSIBILITY
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--bg-accent);
    outline-offset: 3px;
}

/* Skip to main content link (for screen readers) */
.skip-to-main {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: var(--space-sm) var(--space-md);
    background-color: var(--bg-accent);
    color: var(--text-primary);
}

.skip-to-main:focus {
    left: 0;
}

/* ===================================
   RESPONSIVE MEDIA / PICTURE IMAGES
   =================================== */
.responsive-media {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.responsive-media picture {
    display: block;
    width: 100%;
}

.responsive-media__image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(220, 221, 226, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

/* Desktop: máximo 600px */
@media (min-width: 768px) {
    .responsive-media picture,
    .responsive-media__image {
        max-width: 600px;
        margin: 0 auto;
    }
}

.responsive-media__image-2 {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(220, 221, 226, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

/* Desktop: máximo 600px */
@media (min-width: 768px) {
    .responsive-media-2 picture,
    .responsive-media__image {
        max-width: 100%;
        margin: 0 auto;
    }
}