/* Variables CSS para colores y tipografía */
:root {
    --primary-color: #6a11cb;
    /* Morado/Azul oscuro */
    --secondary-color: #2575fc;
    /* Azul brillante */
    --accent-color-1: #00f2fe;
    /* Cian */
    --accent-color-2: #ff54a1;
    /* Rosa/Magenta */
    --text-color-dark: #333;
    --text-color-light: #f4f4f4;
    --bg-dark: #1a1a2e;
    /* Fondo oscuro tecnológico */
    --bg-light: #ffffff;

    --font-family-primary: 'Montserrat', sans-serif;
}

/* Reset básico y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: var(--text-color-light);
    background: var(--bg-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Encabezado */
.header {
    background: var(--bg-dark);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 20px;
}

.lang-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.lang-button:hover {
    color: var(--text-color-light);
}

.lang-button.active {
    background: var(--primary-color);
    color: var(--text-color-light);
}

.logo img {
    height: 80px;
    /* Ajusta según el tamaño de tu logo */
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--text-color-light);
    border: none;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: none;
    color: var(--text-color-light);
    border: 2px solid var(--accent-color-1);
}

.btn-secondary:hover {
    background: var(--accent-color-1);
    color: var(--bg-dark);
}

.btn-secondary-outline {
    background: none;
    color: var(--text-color-light);
    border: 2px solid var(--text-color-light);
}

.btn-secondary-outline:hover {
    background: var(--text-color-light);
    color: var(--bg-dark);
}

/* Hero Section */
.hero {
    background: var(--bg-dark) url('../img/hero-bg.jpg') no-repeat center center/cover;
    text-align: center;
    padding: 100px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Efecto de superposición para que el texto sea legible */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Oscurece la imagen de fondo */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, var(--accent-color-1), var(--accent-color-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero .cta-buttons .btn {
    margin: 0 10px;
}

/* General Features Section */
.features-general {
    background: var(--bg-dark);
    /* Un poco más oscuro que el hero si quieres */
    padding: 80px 0;
    text-align: center;
}

.features-general h2 {
    font-size: 2.5em;
    margin-bottom: 60px;
    color: var(--text-color-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item i {
    font-size: 3em;
    color: var(--accent-color-1);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-color-light);
}

.feature-item p {
    color: rgba(255, 255, 255, 0.7);
}


/* Roles Selector Section (Creadores / Marcas) */
.roles-selector {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--bg-dark), rgba(0, 0, 0, 0.8));
    /* Fondo gradiente para profundidad */
}

.roles-selector h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--text-color-light);
}

.selector-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.tab-button {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color-light);
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 8px;
    margin: 0 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.tab-button.active {
    background: linear-gradient(to right, var(--accent-color-1), var(--accent-color-2));
    color: var(--bg-dark);
    font-weight: 700;
}

.tab-content {
    display: none;
    /* Se mostrará con JS */
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(to right, var(--accent-color-1), var(--accent-color-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-grid.reverse-grid {
    grid-template-areas: "image-block text-block";
    /* Para invertir el orden en escritorio */
}

.content-grid.reverse-grid .text-block {
    grid-area: text-block;
}

.content-grid.reverse-grid .image-block {
    grid-area: image-block;
}


.text-block h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--text-color-light);
}

.text-block p {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
}

.image-block {
    min-height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.creator-image {
    background-image: url('../img/creator-bg.jpg');
}

.brand-image {
    background-image: url('../img/brand-bg.jpg');
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.3em;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.cta-section p {
    font-size: 1.0em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .cta-buttons .btn {
    margin: 0 15px;
    border: 2px solid var(--text-color-light);
}

.cta-section .cta-buttons .btn-primary {
    background: var(--text-color-light);
    color: var(--primary-color);
}

.cta-section .cta-buttons .btn-primary:hover {
    background: var(--bg-dark);
    color: var(--text-color-light);
    border-color: var(--text-color-light);
}

.cta-section .cta-buttons .btn-secondary-outline {
    background: none;
    color: var(--text-color-light);
    border-color: var(--text-color-light);
}

.cta-section .cta-buttons .btn-secondary-outline:hover {
    background: var(--text-color-light);
    color: var(--primary-color);
}

/* CTA Form Styles */
.cta-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.cta-input,
.cta-select {
    padding: 12px 20px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color-light);
    font-family: var(--font-family-primary);
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
    min-width: 250px;
}

.cta-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.cta-input:focus,
.cta-select:focus {
    border-color: var(--text-color-light);
    background: rgba(255, 255, 255, 0.2);
}

.cta-select option {
    background: var(--bg-dark);
    color: var(--text-color-light);
}

.cta-form .btn {
    border: 2px solid var(--text-color-light);
    background: var(--text-color-light);
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1em;
}

.cta-form .btn:hover {
    background: var(--bg-dark);
    color: var(--text-color-light);
    border-color: var(--text-color-light);
}

@media (max-width: 768px) {
    .cta-form {
        flex-direction: column;
    }

    .cta-input,
    .cta-select,
    .cta-form .btn {
        width: 100%;
        max-width: 400px;
    }
}


/* Footer */
.footer {
    background: #111;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.social-links a {
    color: var(--text-color-light);
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color-1);
}


/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        margin-top: 15px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1em;
    }

    .hero .cta-buttons {
        flex-direction: column;
    }

    .hero .cta-buttons .btn {
        margin: 10px 0;
    }

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

    .content-grid {
        grid-template-columns: 1fr;
        grid-template-areas: "image-block" "text-block";
        /* Para apilar en móvil */
    }

    .content-grid.reverse-grid {
        grid-template-areas: "image-block" "text-block";
        /* También apilar en móvil */
    }

    .cta-section h2 {
        font-size: 2em;
    }

    .cta-section p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .header .btn {
        width: 100%;
        text-align: center;
    }

    .selector-tabs {
        flex-direction: column;
        gap: 10px;
    }

    .tab-button {
        margin: 0;
    }
}