/* --- VARIABLES GLOBALES (Colores del tema) --- */
:root {
    --primary-color: #afa1c6; /* Violeta claro institucional */
    --secondary-color: #644f85; /* Violeta oscuro institucional */
    --dark-bg: #121212; /* Fondo principal casi negro */
    --darker-bg: #0a0a0a; /* Fondo aún más oscuro para secciones alternas */
    --text-light: #ffffff;
    --text-gray: #b3b3b3;
    --whatsapp-color: #25D366;
}

/* --- RESETEO BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Desplazamiento suave al hacer clic en enlaces */
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
}

/* --- UTILIDADES --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-darker {
    background-color: var(--darker-bg);
}

.text-center {
    text-align: center;
}

.margin-top { margin-top: 20px; }
.margin-top-large { margin-top: 50px; }
.full-width { width: 100%; }

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    color: var(--text-gray);
    margin-bottom: 40px;
    margin-top: -30px;
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #111;
    font-weight: 900;
}
.btn-primary:hover { background-color: var(--secondary-color); color: #fff; transform: translateY(-2px); }

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: white;
}
.btn-whatsapp:hover { background-color: #20bd5a; transform: translateY(-2px); }

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}
.btn-outline:hover { background-color: var(--primary-color); color: var(--dark-bg); }

.btn-large { padding: 15px 40px; font-size: 1.1rem; }
.btn-nav { padding: 8px 20px; background-color: var(--primary-color); color: var(--dark-bg); }


/* --- NAVBAR --- */
.navbar {
    background-color: rgba(18, 18, 18, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 40px; /* Tamaño del logo en el navbar */
    width: auto;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li { margin-left: 30px; }

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}
.nav-links a:hover:not(.btn-nav) { color: var(--primary-color); }


/* --- HERO SECTION --- */
.hero {
    height: 90vh; /* Altura casi completa de la pantalla */
    /* REEMPLAZAR: Pon la URL de tu imagen de fondo principal aquí */
    background-image: url('img/fondo.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 60px; /* Espacio para el navbar fijo */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Oscurece la imagen de fondo */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons .btn { margin-right: 15px; margin-bottom: 10px; }


/* --- SEGMENTATION GRID --- */
.segmentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.segment-card {
    background-color: var(--darker-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s;
}
.segment-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }

.segment-image img { width: 100%; height: 250px; object-fit: cover; }

.segment-info { padding: 30px; }
.segment-info h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--primary-color); }
.segment-info p { color: var(--text-gray); margin-bottom: 25px; }

.card-creativos .segment-info h3 { color: var(--secondary-color); }
.card-creativos .btn-outline { border-color: var(--secondary-color); color: var(--secondary-color); }
.card-creativos .btn-outline:hover { background-color: var(--secondary-color); color: var(--dark-bg); }


/* --- FEATURES GRID --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.feature-item h3 { margin-bottom: 15px; }
.feature-item p { color: var(--text-gray); }


/* --- PRODUCT SHOWCASE --- */
.product-showcase {
    display: flex;
    align-items: center;
    gap: 50px;
}

.product-image { flex: 1; }
.product-image img { width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.product-text { flex: 1; }
.product-text h3 { font-size: 2rem; margin-bottom: 20px; color: var(--primary-color); }
.product-text p { color: var(--text-gray); margin-bottom: 20px; }
.product-text ul { list-style: none; }
.product-text ul li { margin-bottom: 10px; color: var(--text-gray); }
.product-text ul li i { color: var(--primary-color); margin-right: 10px; }

.left-layout { flex-direction: row; } /* Imagen izquierda */
.right-layout { flex-direction: row-reverse; } /* Imagen derecha */

.padding-box { padding: 40px; border-radius: 10px; border: 1px solid #333; }


/* --- GALLERY GRID --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    transition: opacity 0.3s;
    cursor: pointer;
}
.gallery-img:hover { opacity: 0.8; }


/* --- FOOTER & CONTACT --- */
.footer-section { background-color: #000; border-top: 3px solid var(--primary-color); }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.footer-info { display: flex; flex-direction: column; }
.footer-logo { max-width: 250px; margin-bottom: 20px; }
.footer-info p { color: var(--text-gray); margin-bottom: 30px; }

.contact-methods .method {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.contact-methods .method i {
    color: var(--primary-color); margin-right: 15px; font-size: 1.3rem; width: 25px;
}
.contact-methods a { color: inherit; text-decoration: none; transition: color 0.3s; }
.contact-methods a:hover { color: var(--primary-color); }
.social-title { margin-top: 15px; margin-bottom: 20px; color: var(--text-light); font-size: 1.4rem; font-weight: bold; }

.social-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-pill {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 50px;
    background: #222;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.social-pill i {
    font-size: 1.2rem;
    margin-right: 10px;
}

.social-pill.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    color: white;
}

.social-pill.youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
    color: white;
}

.social-pill.tiktok:hover {
    background: #000;
    border-color: #25F4EE;
    color: white;
    text-shadow: 1px 1px 0px #FE2C55, -1px -1px 0px #25F4EE;
}
.social-pill.tiktok:hover i {
    text-shadow: none;
}

.contact-form {
    background-color: var(--dark-bg);
    padding: 30px;
    border-radius: 10px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 700; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #222;
    border: 1px solid #444;
    color: var(--text-light);
    border-radius: 5px;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); }
.form-note { color: var(--text-gray); margin-top: 10px; text-align: center;}

.copyright { margin-top: 60px; padding-top: 20px; border-top: 1px solid #222; color: var(--text-gray); font-size: 0.9rem; }


/* --- RESPONSIVE (MÓVIL) --- */
@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .nav-links { display: none; } /* Ocultamos menú en móvil por ahora para simplificar */
    .logo { margin: 0 auto; }
    
    .hero { height: auto; padding: 100px 0 60px 0; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { margin: 0 auto 30px auto; }
    .hero-content { margin: 0 auto; }
    
    .segmentation-grid, .features-grid, .footer-grid, .gallery-grid {
        grid-template-columns: 1fr; /* Todo en una columna */
        gap: 40px;
    }
    .product-showcase { flex-direction: column; gap: 30px; } /* Apilamos productos */
    .product-image img { height: auto; }
    .gallery-img { height: auto; }
}