:root {
    --primary-bg: #020617;
    --text-color: #ffffff;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow-y: auto;
    overflow-x: hidden;

    /* --- CONFIGURACIÓN DEL FONDO ANIMADO (GRADIENTE) --- */
    background: linear-gradient(-45deg, #000000, #020617, #0f172a, #000000);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    background-color: #020617;
    /* Fallback */
}

/* --- DEFINICIÓN DE LA ANIMACIÓN DEL FONDO --- */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.main-container {
    text-align: center;
    width: 90%;
    max-width: 1200px;
    backdrop-filter: blur(2px);
    border-radius: 30px;
    padding: 30px;
    position: relative;
    z-index: 10;
}

/* --- LANGUAGE SWITCHER --- */
.lang-switcher {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
}

.lang-btn:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.lang-btn.active {
    color: #00f2fe;
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.8);
    transform: scale(1.1);
}

.divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* --- SOCIAL MEDIA BAR --- */
.social-bar {
    position: absolute;
    top: 25px;
    left: 40px;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.social-icon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Brand Colors on Hover */
.social-icon.fb:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.5);
}

.social-icon.insta:hover {
    background: #e4405f;
    border-color: #e4405f;
    box-shadow: 0 0 15px rgba(228, 64, 95, 0.5);
}

.social-icon.yt:hover {
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.social-icon.tiktok:hover {
    background: #000000;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.social-icon.shop:hover {
    background: #25f4ee;
    border-color: #fe2c55;
    box-shadow: 0 0 15px rgba(37, 244, 238, 0.5);
    color: #000;
}

/* Brand Colors Variables for Animation */
.social-icon.fb {
    --brand-color: #1877f2;
}

.social-icon.insta {
    --brand-color: #e4405f;
}

.social-icon.yt {
    --brand-color: #ff0000;
}

.social-icon.tiktok {
    --brand-color: #ffffff;
}

.social-icon.shop {
    --brand-color: #25f4ee;
}

/* Sequential Glowing Animation */
@keyframes softGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 15px var(--brand-color);
        border-color: var(--brand-color);
        background: rgba(255, 255, 255, 0.1);
    }
}

.social-icon {
    animation: softGlow 3s infinite ease-in-out;
}

/* Staggered Delay for wave effect */
.social-icon:nth-child(1) {
    animation-delay: 0s;
}

.social-icon:nth-child(2) {
    animation-delay: 0.6s;
}

.social-icon:nth-child(3) {
    animation-delay: 1.2s;
}

.social-icon:nth-child(4) {
    animation-delay: 1.8s;
}

.social-icon:nth-child(5) {
    animation-delay: 2.4s;
}

/* --- LOCATION MAP LINK --- */
.location-link {
    position: absolute;
    top: 70px;
    /* Below social bar */
    left: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 100;
}

.map-icon-container {
    font-size: 1.5rem;
    color: #ff3b3b;
    /* Red pin */
    filter: drop-shadow(0 0 5px rgba(255, 59, 59, 0.6));
    animation: bounce 2s infinite ease-in-out;
}

.location-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.location-link:hover .location-text {
    opacity: 1;
    transform: translateX(0);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Hero Header */
.hero-header {
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

.brand-title {
    font-size: 3rem;
    margin-bottom: 5px;
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
    letter-spacing: 3px;
    font-weight: 800;
}

.brand-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: #94a3b8;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.contact-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.glass-call-btn {
    display: inline-block;
    padding: 0.6rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.glass-call-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #4facfe;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.3);
    transform: translateY(-2px);
}

.metallic-phone {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to bottom, #e2e8f0, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

/* --- GRID DE BOTONES --- */
.options-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    perspective: 1000px;
}

/* --- EL BOTÓN DE CRISTAL NEÓN --- */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* border-top/left/right/bottom removed for dynamic border */
    border: none;

    border-radius: 15px;
    padding: 30px 20px;
    width: 200px;
    height: 250px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: visible;
    /* Needed for glow to show outside */
    z-index: 1;
    /* Ensure content is above pseudo */
}

/* Definition of the animated angle property */
@property --border-angle {
    syntax: "<angle>";
    inherits: true;
    initial-value: 0deg;
}

/* The Animated Border Container */
.glass-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    /* Border width */
    border-radius: 17px;
    /* Slightly larger than card */
    background: conic-gradient(from var(--border-angle),
            transparent 20%,
            #00f2fe 40%,
            #a855f7 60%,
            #ff0080 80%,
            transparent 100%);
    z-index: -1;
    animation: spinBorder 4s linear infinite;
    filter: blur(10px);
    /* The "Retro-illumination" glow */
    opacity: 0.8;
}

/* Sharp inner border line */
.glass-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 15px;
    background: rgba(2, 6, 23, 0.85);
    /* Inner card background */
    z-index: -1;
    /* Create a border-like sharp edge */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

@keyframes spinBorder {
    from {
        --border-angle: 0deg;
    }

    to {
        --border-angle: 360deg;
    }
}

/* Iconos Neón */
.glass-card i {
    font-size: 4.5rem;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #00f2fe 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.4));
    transition: all 0.5s ease;
}

/* Texto del botón */
.glass-card span {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: white;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.glass-card .subtext {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 10px;
    font-weight: 400;
    text-align: center;
    z-index: 2;
}

/* --- EFECTOS HOVER --- */
.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.glass-card:hover::before {
    opacity: 1;
    /* Brighter glow on hover */
    filter: blur(8px);
    /* Sharper glow */
    animation-duration: 2s;
    /* Faster spin */
}

.glass-card:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 20px rgba(0, 242, 254, 0.8)) drop-shadow(0 0 30px rgba(168, 85, 247, 0.6));
}

/* Content Area (Hidden initially) */
.hidden {
    display: none !important;
}

.content-area {
    margin-top: 2rem;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.5s ease-out;
    min-height: 60vh;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Back Button */
.back-btn {
    color: #e2e8f0;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 25px;
    border-radius: 30px;
    transition: 0.3s;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    cursor: pointer;
}

.back-btn:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.6);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Design (Mobile First Approach) --- */

/* Tablets & Smaller Laptops */
@media (max-width: 1024px) {
    .main-container {
        width: 95%;
        padding: 25px;
    }

    .brand-title {
        font-size: 2.8rem;
    }
}

/* Mobile Devices (Portrait) */
@media (max-width: 768px) {
    .main-container {
        width: 100%;
        min-height: 100vh;
        /* Allow it to grow */
        height: auto;
        /* Remove fixed height */
        border-radius: 0;
        /* Remove radius for full immersion */
        padding: 90px 20px 40px 20px;
        /* More bottom padding for scroll */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* Align to top */
        overflow: visible;
        /* Let body handle scroll */
    }

    /* Body scroll lock removed */
    body {
        overflow-y: auto;
        /* Enable scroll on body */
        align-items: flex-start;
        height: auto;
        min-height: 100vh;
    }

    .lang-switcher {
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.3);
        padding: 5px 10px;
        border-radius: 20px;
        backdrop-filter: blur(5px);
    }

    .hero-header {
        margin-bottom: 2rem;
        margin-top: 1rem;
    }

    .brand-title {
        font-size: 2.2rem;
        /* Smaller to prevent wrap */
        line-height: 1.1;
        letter-spacing: 1px;
    }

    .brand-subtitle {
        font-size: 0.9rem;
        letter-spacing: 3px;
        /* Reduced spacing */
        margin-bottom: 15px;
    }

    /* Stack cards nicely */
    /* Stack cards nicely */
    /* Stack cards nicely */
    .options-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 10px;
        /* Reduced gap */
        padding-bottom: 40px;
    }

    .glass-card {
        width: 45% !important;
        /* Force side-by-side */
        max-width: 145px !important;
        /* Cap width for larger mobiles */
        height: 170px !important;
        /* Reduced height */
        min-height: auto !important;
        padding: 15px 5px !important;
        /* Minimal padding */
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .glass-card i {
        font-size: 1.8rem !important;
        /* Smaller icon */
        margin-bottom: 5px;
        width: auto;
        text-align: center;
    }

    .glass-card span {
        font-size: 0.8rem !important;
        /* Smaller text */
        text-align: center;
        letter-spacing: 0.5px;
        line-height: 1.2;
    }

    /* Content Area Re-adjustments */
    .content-area {
        margin-top: 1rem;
        padding: 1.5rem;
        min-height: auto;
        border-radius: 20px;
    }

    /* Mobile Interaction Improvements */
    .glass-call-btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Social Bar Mobile */
    .social-bar {
        position: relative;
        top: auto;
        left: auto;
        justify-content: center;
        margin-bottom: 20px;
        order: -1;
        /* Move to top of flex container */
    }

    /* Fix Back Button Overlap */
    .back-btn {
        position: relative;
        /* No longer absolute on mobile */
        top: auto;
        left: auto;
        width: 100%;
        justify-content: center;
        margin-bottom: 20px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* Optimize specific misalignments for very small screens */
@media (max-width: 380px) {
    .brand-title {
        font-size: 1.8rem;
    }

    .glass-card span {
        font-size: 1rem;
    }
}

/* --- ROTATE BUTTON STYLING (Premium Look) --- */
/* --- ROTATE BUTTON STYLING (Premium Look) --- */
.rotate-btn {
    margin-top: 20px;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    /* Solid gradient match */
    border: none;
    color: #020617;
    /* Dark text */
    padding: 8px 20px;
    /* Compact */
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    /* Auto width for elegance */
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rotate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
    background: linear-gradient(135deg, #fff, #e2e8f0);
}

.rotate-btn i {
    font-size: 1rem;
    animation: spin-slow 10s linear infinite;
    /* Subtle animation */
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- CHANGE MODEL BUTTON STYLING --- */
.change-model-btn {
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    /* Solid gradient */
    border: none;
    color: #020617;
    /* Dark text for contrast on bright button */
    padding: 5px 15px;
    /* Small and compact */
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
}

.change-model-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
    background: linear-gradient(135deg, #fff, #e2e8f0);
    /* Light hover */
}