/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(#3F304C 0%, #9856D2 90%);
    color: #EEEBF1;
    font-family: "P", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
}

/* Fuentes - Enlazando desde el proyecto principal */
@font-face {
    font-family: "P";
    src: url("../fonts/coolveticarg.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "PT";
    src: url("../fonts/coolveticacompressedhv.otf") format("opentype");
    font-weight: bold;
    font-style: normal;
}

/* Overlay de textura de grano animada */
body::after {
    content: "";
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/7/76/1k_Dissolve_Noise_Texture.png");
    height: 200%;
    width: 200%;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0.05;
    animation: animateGrain 8s steps(10) infinite;
    pointer-events: none;
    z-index: 9999;
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

@keyframes animateGrain {
    0%, 100% {
        transform: translate(0, 0);
    }
    10% {
        transform: translate(-5%, -10%);
    }
    20% {
        transform: translate(-15%, -20%);
    }
    30% {
        transform: translate(-5%, -10%);
    }
    40% {
        transform: translate(-15%, -20%);
    }
    50% {
        transform: translate(-5%, -10%);
    }
    60% {
        transform: translate(-15%, -20%);
    }
    70% {
        transform: translate(-5%, -10%);
    }
    80% {
        transform: translate(-15%, -20%);
    }
    90% {
        transform: translate(-5%, -10%);
    }
}

/* Animación fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    padding: 0.3rem 1.5rem 0;
    position: relative;
    z-index: 100;
    margin-bottom: 0;
    padding-bottom: 0;
    width: 100%;
}

/* 🔧 DISTANCIA ENTRE VIB3S - X - SHARK (centrado igual) - Cambia "gap" aquí */
.logos-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem; /* ← CAMBIA ESTE VALOR para ajustar distancia igual entre los 3 elementos */
    flex-wrap: wrap;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.logo {
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

.vibes-text {
    font-family: "PT", sans-serif;
    font-size: clamp(5rem, 12vw, 8rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #EEEBF1;
    text-transform: uppercase;
    line-height: 100%;
}

.shark-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    
}

.shark-icon {
    width: 130px;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    display: block;
}

.shark-text {
    font-family: "P", sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: #EEEBF1;
    text-transform: uppercase;
}

.logo-separator {
    font-family: "P", sans-serif;
    font-size: 2rem;
    color: #EEEBF1;
    font-weight: bold;
    opacity: 0.7;
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem 1.5rem 3rem 1.5rem;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
    animation: fadeIn 1s ease-out;
    padding-top: 0;
    margin-top: 0;
}

.hero-title {
        margin-top: 1rem;
    margin-bottom: 0.3rem;
}

.vibes-inline {
    font-family: "PT", sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    font-size: 1.4em; /* Un poco más grande que el texto circundante */
}

.hero-subtitle {
    font-family: "P", sans-serif;
    font-size: clamp(0.85rem, 2.5vw, 1.1rem);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: #EEEBF1;
    opacity: 0.9;
}

.download-message {
    font-family: "P", sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: bold;
    color: #EEEBF1;
    text-align: center;
    margin: 0.5rem 0 0.75rem 0;
    opacity: 0.95;
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    margin-top: 0;
}

.cta-button {
    width: 100%;
    padding: 1rem 1.5rem;
    font-family: "P", sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: #90D255;
    color: #3F304C;
}

.cta-button.primary:hover {
    background: #7ebc45;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(144, 210, 85, 0.3);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #EEEBF1;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.button-icon {
    font-size: 1.5em;
}

.button-icon-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.button-text {
    flex: 1;
}

/* Features Section */
.features {
    padding: 0.75rem 0;
    position: relative;
    z-index: 10;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.features-container {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    align-items: stretch;
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    padding-top: 0.5rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    width: 100%;
    max-width: 100%;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

.feature-check {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1rem;
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin: 0;
}

.feature-title {
    font-family: "P", sans-serif;
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 3rem;
    color: #EEEBF1;
    text-transform: none;
    letter-spacing: 0.01em;
    line-height: 1.4;
    text-align: left;
}

.feature-text {
    font-family: "P", sans-serif;
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    line-height: 1.4;
    color: #EEEBF1;
    opacity: 0.9;
    text-align: left;
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    padding: 0.5rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-text {
    font-family: "P", sans-serif;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    color: #EEEBF1;
    opacity: 0.7;
    font-style: italic;
}

/* Responsive Design - Mobile First */
/* 
══════════════════════════════════════════════════════════════
📱 AJUSTES MANUALES PARA MÓVIL (max-width: 767px)
══════════════════════════════════════════════════════════════

🔧 ESPACIO ENTRE LOGOS Y TÍTULO "Shark provides...":
   - Línea ~420: .header { padding: 0.2rem 1.5rem 0; }
     ↓ Reduce el primer valor (0.2rem) para menos espacio arriba
   
   - Línea ~431: .hero-title { margin-top: -2rem; }
     ↓ Aumenta el valor negativo (-2rem) para acercar más el título
     Ejemplo: -2.5rem, -3rem, etc.

🔧 DISTANCIA ENTRE VIB3S - X - SHARK (centrado igual):
   - Línea ~436: .logos-container { gap: 1rem; }
     ↓ Cambia este valor para igualar distancias
     Ejemplo: 0.8rem, 1.2rem, 1.5rem, etc.

══════════════════════════════════════════════════════════════
*/
@media (max-width: 767px) {
    .header {
        margin-top: 2rem; 
        padding: 0.2rem 1.5rem 0; /* ← Reduce 0.2rem para menos espacio arriba */
        margin-bottom: 0;
    }

    .vibes-text {
        font-size: clamp(5rem, 15vw, 8rem);
    }

    .hero {
        min-height: auto;
        padding: 0 1.5rem 3rem 1.5rem;
    }

    .hero-content {
        padding-top: 1rem;
        margin-top: 0;
    }

    .hero-title {
        margin-top: 0; 
        margin-bottom: 0.3rem;
    }

    .logos-container {
        gap: 1rem; /* ← Cambia este valor para ajustar distancia VIB3S-X-Shark (igual entre los 3) */
        margin-bottom: 0;
    }

    /* AJUSTE MANUAL: Corrección visual del espacio blanco del PNG de Shark */
    .shark-logo {
        margin-left: 0rem;
    
    }
    
    .shark-icon {
        width: 90px; /* Reducir logo en móvil */
        max-height: 90px;
    }
}

@media (min-width: 768px) {
    .header {
        padding: 1.5rem 2rem;
    }

    .logos-container {
        gap: 3rem;
    }

    .vibes-text {
        font-size: clamp(8rem, 12vw, 12rem);
    }

    .shark-icon {
        width: 180px;
        height: auto;
        max-height: 180px;
    }

    .shark-text {
        font-size: 2rem;
    }

    .logo-separator {
        font-size: 3rem;
    }

    .header {
        padding: 0.75rem 2rem;
    }

    .hero {
        padding: 0.75rem 2rem;
        min-height: calc(100vh - 140px);
        justify-content: center;
    }
    
    .download-message {
        font-size: clamp(1.2rem, 3vw, 1.4rem);
        margin: 0.75rem 0 1rem 0;
    }

    .hero-title {
        font-size: clamp(1.8rem, 5.5vw, 3.5rem);
        margin-top: 0;
        margin-bottom: 0rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        margin-bottom: 0.75rem;
    }

    .hero-buttons {
        flex-direction: row;
        max-width: 700px;
        gap: 1rem;
    }

    .cta-button {
        flex: 1;
        max-width: 350px;
    }

    .features-container {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        max-width: 900px;
    }

    .feature-card {
        flex: 1;
        min-height: 180px;
    }

    .feature-check {
        width: 40px;
        height: 40px;
        top: 50%;
        transform: translateY(-50%);
        right: 1.5rem;
    }

    .feature-title {
        font-size: clamp(1.1rem, 2.5vw, 1.3rem);
        margin-right: 3.5rem;
    }

    .footer {
        padding: 0.5rem 2rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: clamp(2.2rem, 5vw, 3.5rem);
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        margin-bottom: 0.75rem;
    }
    
    .features {
        padding: 0.75rem 0;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: clamp(1.1rem, 2vw, 1.3rem);
    }

    .features-container {
        max-width: 1000px; /* Aumentado para desktop */
        gap: 0.75rem;
        flex-direction: column; /* Vuelve a vertical como pidió antes */
    }
    
    .feature-title {
        font-size: clamp(1rem, 2.5vw, 1.15rem);
        margin-right: 3.5rem;
    }

    .feature-card {
        width: 100%;
        max-width: 100%;
        min-height: 95px;
        padding: 0.75rem 1.5rem;
        padding-top: 0.6rem;
    }
    
    .feature-check {
        top: 50%;
        transform: translateY(-50%);
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
    
    .feature-title {
        margin-right: 3.5rem;
    }

    .footer {
        padding: 0.5rem 2rem;
    }
}

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

/* Optimizaciones de rendimiento */
.cta-button,
.feature-card {
    will-change: transform;
}

img {
    will-change: auto;
    image-rendering: optimizeQuality;
}

/* Estilos para popup (copiado de la página principal) */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    padding: 3em;
    border-radius: 20px;
    text-align: left;
    max-width: 700px;
    width: 90%;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    z-index: 100000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2em;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
    z-index: 100001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #666;
}

.popup-text-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content p {
    font-family: "PT", sans-serif;
    font-size: 75px;
    color: #333;
    margin-bottom: 0;
    line-height: 0.9;
    font-weight: 400;
    text-transform: uppercase;
}

.highlight-purple {
    color: #9856D2;
}

.popup-qr-container {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}

.popup-qr {
    width: 280px;
    height: 280px;
    border-radius: 12px;
    background: white;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

.scan-text {
    font-family: "P", sans-serif;
    font-size: 18px;
    color: #666;
    margin-bottom: 0;
    font-weight: normal;
}

/* Responsive para popup */
@media (max-width: 900px) {
    .popup-content {
        padding: 2em;
        max-width: 500px;
        flex-direction: column;
        text-align: center;
        gap: 1.5em;
    }
    
    .popup-text-content {
        order: 1;
    }
    
    .popup-qr-container {
        order: 2;
    }
    
    .popup-content p {
        font-size: 36px;
    }
    
    .popup-qr {
        width: 230px;
        height: 230px;
    }
    
    .scan-text {
        font-size: 16px;
    }
}
