/* --- Reinicio Universal del Modelo de Caja --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* --- Variables de Color Globales --- */
:root {
    --primary-color: #724CF9; /* Morado principal */
    --secondary-color: #4CAF50; /* Verde WhatsApp */
    --background-color: #1A1A2E; /* Fondo oscuro */
    --card-bg-color: #2D2D44; /* Fondo de tarjetas */
    --text-color: #E0E0E0; /* Texto claro */
    --heading-color: #FFFFFF; /* Títulos blancos */
    --accent-color: #FFD700; /* Dorado para precios/iconos */
    --hover-effect: #8E6FFC; /* Efecto hover para botones */
    --badge-color: #E74C3C; /* Rojo/Naranja para la etiqueta */
}

/* --- Estilos Base y Tipografía --- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1460px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4 {
    color: var(--heading-color);
    font-weight: 700;
    margin: 0;
    padding: 0;
}

h1 { font-size: 2.8em; text-align: center; margin-bottom: 15px; }
h2 { font-size: 2.2em; text-align: center; margin-bottom: 40px; }
h3 { font-size: 1.8em; text-align: center; margin-bottom: 25px; }

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* --- Estilos para Botones --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--heading-color);
}

.btn-primary:hover {
    background-color: var(--hover-effect);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--heading-color);
    border: none;
    width: 100%;
    margin-top: 15px;
    padding: 12px 25px; /* Añadido para consistencia */
    border-radius: 8px; /* Añadido para consistencia */
    font-weight: 600; /* Añadido para consistencia */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Añadido para consistencia */
}

.btn-secondary:hover {
    background-color: #6CBE70;
    transform: translateY(-2px);
}

.btn-contact-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    padding: 15px 30px;
    margin-top: 30px;
}

.btn-contact-whatsapp i {
    margin-right: 10px;
    font-size: 1.3em;
}

/* --- Cabecera (Hero Section) --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=2070&auto-format&fit=crop') no-repeat center center/cover;
    padding: 80px 0;
    text-align: center;
}

.hero .logo {
    max-width: 280px;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    animation: float-logo 6s infinite ease-in-out;
}

.hero .logo:hover {
    transform: scale(1.1) translateY(-5px);
    animation-play-state: paused;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

/* --- Barra de Navegación --- */
.main-nav {
    background-color: var(--card-bg-color);
    border-bottom: 2px solid var(--primary-color);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1em;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid transparent;
}

.nav-link:hover {
    background-color: var(--primary-color);
    color: var(--heading-color);
}

.nav-link.active {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* --- Secciones Principales --- */
.services-section {
    padding: 60px 0;
}

.tiktok-super-section {
    background-color: var(--card-bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 60px;
}

.service-category {
    margin-bottom: 40px;
}

.combo-subtitle {
    text-align: center;
    color: var(--text-color);
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
}

/* --- Banner de Oferta --- */
.welcome-offer {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--hover-effect) 100%);
    color: var(--heading-color);
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.welcome-offer h4 {
    margin-bottom: 10px;
    font-size: 1.8em;
}

.welcome-offer p {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
}

.welcome-offer p span {
    color: var(--accent-color);
    font-size: 1.4em;
}

/* --- Cuadrícula y Tarjetas de Servicio --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative; /* Necesario para la etiqueta */
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.service-icon {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95em;
    color: var(--text-color);
    flex-grow: 1; /* Empuja el contenido hacia abajo */
    margin-bottom: 15px;
}

.service-card .price {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 15px;
    margin-bottom: 15px;
}

/* --- Selectores dentro de la Tarjeta --- */
.options-selector {
    margin-top: auto; /* Empuja el selector hacia abajo */
}

.service-options {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    background-color: var(--card-bg-color);
    color: var(--text-color);
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0E0E0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1.2em;
}

/* --- Etiquetas Especiales (Más Vendido, etc.) --- */
.card-badge {
    position: absolute;
    top: 15px;
    right: -5px;
    background-color: var(--accent-color);
    color: var(--background-color);
    padding: 5px 15px;
    font-size: 0.9em;
    font-weight: 700;
    border-radius: 5px;
    transform: rotate(15deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2;
}

.card-badge.profitable {
    background-color: var(--badge-color);
    color: var(--heading-color);
}

/* --- Sección "Cómo Funciona" --- */
.how-to-buy {
    background-color: var(--card-bg-color);
    padding: 50px 30px;
    border-radius: 12px;
    margin-top: 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.step-card {
    text-align: center;
    padding: 25px;
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- Sección de Contacto y Footer --- */
.contact-section {
    background-color: var(--card-bg-color);
    padding: 80px 0;
    text-align: center;
}

footer {
    background-color: #11111F;
    color: var(--text-color);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid #333;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* --- Animaciones y Diseño Responsivo --- */
@keyframes float-logo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }
    .hero { padding: 80px 0; }
    .nav-link { font-size: 1em; padding: 8px 15px; }
}

@media (max-width: 600px) {
    .main-nav .container {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    .nav-link {
        width: 90%;
        text-align: center;
    }
}

/* --- Botón Flotante de WhatsApp --- */
.whatsapp-flotante {
    position: fixed; /* Fijo en la pantalla, no se mueve con el scroll */
    bottom: 25px; /* Distancia desde el borde inferior */
    right: 25px; /* Distancia desde el borde derecho */
    background-color: var(--secondary-color); /* Usa tu color verde de WhatsApp */
    color: white; /* El ícono será blanco */
    width: 60px; /* Ancho del círculo */
    height: 60px; /* Alto del círculo */
    border-radius: 50%; /* Lo convierte en un círculo perfecto */
    display: flex; /* Centra el ícono dentro del círculo */
    align-items: center;
    justify-content: center;
    font-size: 2em; /* Tamaño del ícono de WhatsApp */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* Sombra para darle profundidad */
    z-index: 1000; /* Se asegura que flote por encima de todo el contenido */
    transition: transform 0.3s ease; /* Una transición suave para el efecto hover */
}

.whatsapp-flotante:hover {
    transform: scale(1.1); /* Agranda ligeramente el botón al pasar el mouse */
}

/* --- Estilo para el Título Principal de la Súper Sección --- */
.section-main-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.section-main-title i {
    margin-right: 15px;
    color: var(--primary-color);
}

/* Devolvemos el estilo original a los h3 de las categorías */
.service-category h3 {
    text-align: center;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--accent-color);
}

/* --- Estilos para las Nuevas Secciones de Redes Sociales --- */
.social-super-section {
    background-color: var(--card-bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 60px;
}

/* Colores de Marca para cada sección */
.instagram-section { border-color: #C13584; }
.instagram-section .section-main-title i { color: #C13584; }

.facebook-section { border-color: #1877F2; }
.facebook-section .section-main-title i { color: #1877F2; }

.twitter-section { border-color: #1DA1F2; }
.twitter-section .section-main-title i { color: #1DA1F2; }

/* Estilo para el aviso de "Próximamente" */
.coming-soon-notice {
    width: 100%;
    text-align: center;
    padding: 60px 30px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 2px dashed #4a455c;
}

.coming-soon-notice i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.coming-soon-notice h4 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.coming-soon-notice p {
    font-size: 1em;
    color: var(--text-color);
    max-width: 500px;
    margin: 0 auto;
}

/* --- Estilos para el Menú Secundario --- */
.sub-nav {
    background-color: var(--background-color);
    padding: 10px 0;
    border-bottom: 1px solid #3c384c; /* Borde sutil */
}

.sub-nav .container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Para que se vea bien en pantallas más pequeñas */
}

.sub-nav a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9em;
    padding: 8px 18px;
    border-radius: 20px; /* Bordes más redondeados */
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: var(--card-bg-color);
    border: 1px solid transparent;
}

.sub-nav a:hover {
    background-color: var(--primary-color);
    color: var(--heading-color);
    border-color: var(--hover-effect);
}

.sub-nav a i {
    margin-right: 8px;
}