/* --- VARIABLES --- */
:root {
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    
    --neon-cyan: #00f0ff;
    --neon-cyan-glow: rgba(0, 240, 255, 0.6);
    --neon-blue: #005cf0;
    --neon-blue-glow: rgba(0, 92, 240, 0.6);
    
    --text-main: #ffffff;
    --text-muted: #a0aab5;
    
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --border-glass: 1px solid rgba(255, 255, 255, 0.1);
    --border-neon: 1px solid rgba(0, 240, 255, 0.3);
}

/* --- RESET & BASIC SETUP --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Twinkling stars background layer */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, .glitch-text, .accent-text {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.accent-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 4rem 0;
}

.hero-content {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.glitch-text {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
    color: var(--text-main);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.subtext {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    border: 2px solid var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2), inset 0 0 15px rgba(0, 240, 255, 0.1);
    border-radius: 4px;
}

.cta-button:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 30px var(--neon-cyan-glow), inset 0 0 10px rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
    perspective: 1000px;
}

.logo-sphere {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0, 92, 240, 0.15) 0%, rgba(5, 5, 5, 0.8) 70%);
    box-shadow: inset 0 0 60px rgba(0, 240, 255, 0.3), 0 0 20px rgba(0, 240, 255, 0.2);
    overflow: hidden;
    border: 2px solid rgba(0, 240, 255, 0.4);
}

.logo-container:hover .logo-sphere {
    transform: rotateY(0deg) rotateX(0deg);
}

.main-logo {
    max-width: 75%;
    max-height: 75%;
    z-index: 10;
    filter: drop-shadow(0 0 25px var(--neon-cyan-glow));
    transform: translateZ(40px);
}

.scanlines {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 20;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0.6;
}

.screen-glare {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.05) 45%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 55%);
    transform: rotate(30deg);
    z-index: 25;
    pointer-events: none;
    animation: glare 6s infinite ease-in-out;
}

@keyframes glare {
    0% { transform: translate(-10%, -10%) rotate(30deg); }
    50% { transform: translate(10%, 10%) rotate(30deg); }
    100% { transform: translate(-10%, -10%) rotate(30deg); }
}

.glow-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 60px 10px var(--neon-cyan-glow), inset 0 0 40px var(--neon-blue-glow);
    z-index: 1;
    opacity: 0.5;
    animation: pulse 4s ease-in-out infinite alternate;
}

.glow-ring.delay {
    transform: scale(1.1);
    opacity: 0.2;
    animation-delay: -2s;
}

/* --- SERVICES (BENTO GRID) --- */
.services {
    padding: 6rem 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--border-glass);
    border-radius: 16px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 240, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.1);
}

.card-image-wrapper {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.image-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(5,5,5,0) 50%, rgba(5,5,5,1) 100%);
    pointer-events: none;
}

.bento-card:hover .card-image-wrapper img {
    transform: scale(1.08);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.card-icon-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.icon-neon {
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 8px var(--neon-cyan-glow));
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 1rem;
    flex-grow: 1;
}

.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--neon-blue-glow) 0%, transparent 70%);
    top: -75px;
    right: -75px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.bento-card:hover .card-glow {
    opacity: 0.6;
}

/* --- TRUST / PAYMENT SECTION --- */
.trust {
    padding: 4rem 0 6rem 0;
}

.trust-banner {
    background: linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(0, 92, 240, 0.08) 50%, rgba(255,255,255,0.02) 100%);
    border-top: var(--border-neon);
    border-bottom: var(--border-neon);
    padding: 3rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.05);
}

.trust-group h4 {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 2px;
}

.logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 3rem;
    color: #fff;
}

.logos-row i {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.logos-row i:hover {
    opacity: 1;
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 10px var(--neon-cyan-glow));
}

.text-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.trust-divider {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.3), transparent);
}

.brands {
    gap: 1.5rem;
}

.brand-logo-wrapper {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, filter 0.3s;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
}

.brand-logo-wrapper:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px var(--neon-cyan-glow)) brightness(1.1);
}

.brand-logo {
    max-height: 100%;
    max-width: 110px;
    object-fit: contain;
}

/* --- CONTACT SECTION --- */
.contact {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.contact-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: 
        linear-gradient(var(--neon-cyan) 1px, transparent 1px),
        linear-gradient(90deg, var(--neon-cyan) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 92, 240, 0.3);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 92, 240, 0.1);
}

.form-wrapper {
    margin-top: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

label {
    display: block;
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

input, select, textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.02);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.select-wrapper {
    position: relative;
}

select {
    appearance: none;
    cursor: pointer;
}

option {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--neon-cyan);
    border: none;
    border-radius: 4px;
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #00d0ff;
    box-shadow: 0 0 25px var(--neon-cyan-glow);
    transform: translateY(-2px);
}

/* --- FOOTER --- */
.footer {
    background: #020202;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 3rem 0;
    margin-top: 6rem;
    position: relative;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    height: 40px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

.footer-right p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* House touch: Twinkling stars in bottom right */
.house-touch-stars {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    gap: 0.5rem;
}

.star {
    font-size: 14px;
    color: var(--neon-cyan);
    opacity: 0;
    animation: twinkle 4s ease-in-out infinite;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.star-1 { animation-delay: 0s; }
.star-2 { animation-delay: 1s; }
.star-3 { animation-delay: 2s; }
.star-4 { animation-delay: 3s; font-size: 18px; }

/* --- ANIMATIONS --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.3; }
    100% { transform: scale(1.05); opacity: 0.6; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.1; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* --- PRIVACY POLICY --- */
.privacy-main {
    padding: 6rem 0;
    max-width: 900px;
    margin: 0 auto;
}
.privacy-container {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 92, 240, 0.2);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.back-link {
    color: var(--neon-cyan);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 2rem;
    transition: color 0.3s;
}
.back-link:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}
.privacy-container h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    padding-bottom: 1rem;
}
.privacy-content h2 {
    color: var(--text-main);
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
}
.privacy-content p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.8;
}
.privacy-content ul {
    color: var(--text-muted);
    margin: 1rem 0 1.5rem 2rem;
}
.privacy-content li {
    margin-bottom: 0.5rem;
}
.privacy-content strong {
    color: var(--text-main);
}
.last-updated {
    margin-top: 3rem;
    text-align: right;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3) !important;
}

/* --- MODAL DE ÉXITO --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal-content {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 16px;
    padding: 3rem 2rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-content {
    transform: translateY(-50px);
}

.modal-icon {
    font-size: 4rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--neon-cyan-glow));
}

.modal-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.modal-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-btn {
    width: 100%;
    margin-top: 0;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .trust-banner {
        flex-direction: column;
        gap: 3rem;
    }

    .trust-divider {
        width: 80%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(0, 240, 255, 0.3), transparent);
    }

    .logos-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    main {
        padding: 0 1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .glitch-text {
        font-size: 2.8rem;
    }

    .subtext {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

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

    .logo-container {
        width: 300px;
        height: 300px;
    }

    .text-logo {
        font-size: 1.2rem;
    }
    
    .brands {
        gap: 1rem;
    }

    .contact-container {
        padding: 2rem 1.5rem;
    }

    .privacy-container {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .glitch-text {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .logo-container {
        width: 250px;
        height: 250px;
    }

    .cta-button {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .brand-logo {
        max-width: 80px;
    }
}
