:root {
    --bg-dark: #11161d;
    --bg-card: #18202a;
    --primary: #0e3c75;
    --accent: #bd1e24;
    --text-light: #ffffff;
    --text-gray: #a0aec0;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* NAVBAR DINÁMICO */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(17, 22, 29, 0.95);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1001;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(17, 22, 29, 0.98);
    padding: 5px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* LOGO DEL NAVBAR CON CORTES REDONDEADOS Y SIN FONDO NEGRO */
.nav-logo-img {
    height: 55px; 
    width: auto;
    border-radius: 50%; /* Hace que el marco sea circular */
    mix-blend-mode: lighten; /* Elimina automáticamente el fondo negro de la imagen */
    transition: transform 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu ul li {
    position: relative;
    margin: 0 15px;
}

.nav-menu ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu ul li a:hover { color: var(--accent); }
.menu-toggle { display: none; font-size: 24px; cursor: pointer; }

/* SUBMENÚ DINÁMICO */
.nav-menu ul.submenu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-card);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    padding: 10px 0;
    border-radius: 4px;
}

.nav-menu ul.submenu li {
    margin: 0 !important;
    padding: 10px 20px;
    width: 100%;
}

.dropdown:hover .submenu {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.btn-nav-club {
    background: linear-gradient(135deg, var(--accent), #e3262d);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(189, 30, 36, 0.4);
}

/* SECCIÓN HERO Y CARRUSEL */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(17, 22, 29, 0.7), rgba(17, 22, 29, 0.95));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* LOGO ANIMADO DEL HERO CON BORDES REDONDEADOS Y SIN FONDO NEGRO */
.hero-logo-animated {
    width: 180px;
    margin-bottom: 30px;
    border-radius: 50%; /* Corte circular perfecto */
    mix-blend-mode: lighten; /* Elimina automáticamente el cuadrado negro del JPG/PNG */
    filter: drop-shadow(0 0 15px rgba(189, 30, 36, 0.6));
    animation: floatGlow 3.5s ease-in-out infinite;
}

@keyframes floatGlow {
    0% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 10px rgba(189, 30, 36, 0.4)); }
    50% { transform: translateY(-12px) scale(1.03); filter: drop-shadow(0 0 25px rgba(189, 30, 36, 0.8)); }
    100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 10px rgba(189, 30, 36, 0.4)); }
}

.hero-content h1 { font-size: 48px; font-weight: 900; letter-spacing: 2px; margin-bottom: 20px; color: var(--white); }
.hero-content p { font-size: 18px; max-width: 700px; margin: 0 auto 30px; color: var(--text-gray); }

.btn-primary, .btn-secondary {
    padding: 13px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    margin: 0 10px;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary { background-color: var(--accent); color: var(--white); }
.btn-primary:hover { background-color: #a3161b; transform: translateY(-3px); }
.btn-secondary { background-color: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background-color: var(--white); color: var(--bg-dark); }

/* SECCIONES GENERALES */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.bar { width: 70px; height: 4px; background-color: var(--accent); margin: 0 auto; border-radius: 2px; }

.about-section, .services-section, .membership-section {
    padding: 100px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about-text { background-color: var(--bg-card); padding: 40px; border-radius: 8px; border-left: 5px solid var(--primary); }
.about-text h3 { margin-bottom: 15px; font-size: 24px; }
.about-text p { color: var(--text-gray); line-height: 1.6; margin-bottom: 10px; }

/* INSTAGRAM SECCIÓN */
.instagram-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.instagram-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.instagram-video { width: 100%; border-radius: 12px; overflow: hidden; display: flex; justify-content: center; }
.instagram-video iframe { max-width: 100% !important; border-radius: 12px; }
.context-card { background-color: var(--bg-card); padding: 40px; border-radius: 12px; border-left: 5px solid var(--accent); }
.instagram-icon { font-size: 40px; color: #E1306C; margin-bottom: 20px; }
.context-card h3 { font-size: 28px; margin-bottom: 20px; color: var(--white); }
.post-text { color: var(--text-gray); line-height: 1.8; font-size: 16px; margin-bottom: 30px; }

/* CUADRÍCULA DE BENEFICIOS */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}
.benefit-card { background-color: var(--bg-card); padding: 30px 20px; border-radius: 8px; text-align: center; transition: all 0.3s ease; }
.benefit-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(14, 60, 117, 0.2); border-bottom: 3px solid var(--primary); }
.benefit-card i { font-size: 35px; color: var(--accent); margin-bottom: 15px; }
.benefit-card h4 { font-size: 18px; margin-bottom: 10px; }
.benefit-card p { color: var(--text-gray); font-size: 14px; }

/* PRECIOS */
.pricing-container { display: flex; justify-content: center; }
.price-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 40px 30px;
    position: relative;
    text-align: center;
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.card-badge { position: absolute; top: 15px; right: 15px; font-size: 12px; padding: 4px 10px; border-radius: 20px; font-weight: 700; }
.card-badge.text-red { background-color: var(--accent); color: white;}
.price-card h3 { font-size: 26px; margin-bottom: 5px; }
.plan-type { color: var(--text-gray); font-size: 14px; margin-bottom: 25px; }
.price { font-size: 48px; font-weight: 800; margin-bottom: 25px; color: var(--white); }
.price small { font-size: 16px; color: var(--text-gray); }
.card-features { list-style: none; text-align: left; margin-bottom: 35px; }
.card-features li { margin-bottom: 12px; font-size: 15px; color: var(--text-gray); }
.card-features li i { color: #2ecc71; margin-right: 10px; }

.btn-card { display: block; width: 100%; padding: 15px; border-radius: 6px; text-decoration: none; font-weight: 700; transition: all 0.3s; color: white;}
.featured-btn { background-color: var(--accent); border-color: var(--accent); }
.featured-btn:hover { background-color: #a3161b; transform: scale(1.02); }

/* FOOTER */
.footer-section { background-color: #0b0e12; padding: 60px 20px 20px; border-top: 2px solid #18202a; }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-info { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; margin-bottom: 40px; }
.footer-item { text-align: center; }
.footer-item i { font-size: 30px; color: var(--accent); margin-bottom: 15px; }
.footer-item p { color: var(--text-gray); line-height: 1.5; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #18202a; color: #5a6b7c; font-size: 14px; }

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-size: 30px;
    z-index: 1000;
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* RESPONSIVE */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        display: none;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    .nav-menu.active { display: block; }
    .nav-menu ul { flex-direction: column; padding: 20px 0; }
    .nav-menu ul li { margin: 15px 0; }
    
    .nav-menu ul.submenu { position: static; box-shadow: none; display: none; }
    .dropdown.active .submenu { display: flex; }
    
    .about-grid, .instagram-container { grid-template-columns: 1fr; gap: 20px; }
    .hero-content h1 { font-size: 36px; }
    .hero-logo-animated { width: 140px; }
}