/* =========================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
    --primary-color: #fee45d;   /* Amarillo ROS - Acción */
    --secondary-color: #c18bbf; /* Lavanda ROS - Estrategia */
    --dark-bg: #000000;
    --light-bg: #f4f4f4;
    --text-white: #ffffff;
    --text-dark: #121212;
    --text-muted: #888888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background-color: var(--dark-bg);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* =========================================
   2. NAVEGACIÓN (HEADER)
   ========================================= */
header {
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 5%;
    transition: 0.3s ease;
}

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

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.logo span { color: var(--primary-color); }

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links li a:hover { color: var(--secondary-color); }

/* =========================================
   3. HERO SECTION (VIDEO BACKGROUND)
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: -1;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.highlight { color: var(--secondary-color); }

.btn-main {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-main:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(254, 228, 93, 0.3);
    background-color: white;
}

/* =========================================
   4. SECCIÓN MANIFIESTO
   ========================================= */
.manifesto {
    padding: 140px 10%;
    background-color: #000;
    border-bottom: 1px solid #111;
}

.manifesto .label {
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 20px;
}

.big-statement {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.1;
    color: #fff;
    max-width: 1000px;
    margin-bottom: 80px;
}

.highlight-yellow { color: var(--primary-color); }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
}

.value-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.value-item p {
    font-size: 1rem;
    color: #888;
    line-height: 1.6;
}

/* =========================================
   5. SECCIÓN SERVICIOS (STORYTELLING)
   ========================================= */
.services-vertical {
    display: flex;
    flex-direction: column;
}

.story-block, .story-map {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
}

/* Historia 2: El Mapa */
.story-map {
    background-color: #f0f0f0;
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png'); 
    color: var(--text-dark);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 15%;
}

.map-label { 
    font-size: 1rem; 
    font-weight: bold; 
    margin-bottom: 3rem;
    color: #888; 
    letter-spacing: 2px;
}

.map-list { 
    list-style: none; 
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.map-list li {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

/* Alternancia de Bloques y Contenido */
.story-content { max-width: 650px; width: 100%; }

.story-block:nth-child(odd) { justify-content: flex-start; text-align: left; }
.story-block:nth-child(even) { justify-content: flex-end; text-align: right; }

.story-block:nth-child(even) .micro-bullets {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Imágenes en Servicios */
.story-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.story-image img {
    max-width: 80%;
    height: auto;
    border-radius: 15px;
    filter: grayscale(20%);
    transition: 0.5s ease;
}

.story-block:hover .story-image img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.story-block:nth-child(even) {
    flex-direction: row-reverse;
}

/* Estilos Específicos por Historia */
.story-redes { background-color: #1a1a1a; }
.story-publicidad { background-color: #000; border-left: 8px solid var(--secondary-color); }
.story-audiovisual { 
    background-color: #161616; 
    background-image: radial-gradient(#333 1px, transparent 1px); 
    background-size: 25px 25px; 
}
.story-sistemas { 
    background-color: #121212; 
    background-image: linear-gradient(0deg, transparent 24%, rgba(255,255,255,0.02) 25%, transparent 26%), 
                      linear-gradient(90deg, transparent 24%, rgba(255,255,255,0.02) 25%, transparent 26%);
    background-size: 60px 60px; 
}

.story-content h2 { font-size: 1rem; color: var(--primary-color); letter-spacing: 3px; margin-bottom: 1.5rem; }
.main-text { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-family: 'Montserrat'; line-height: 1.1; margin-bottom: 2rem; }
.micro-bullets { list-style: none; font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.micro-bullets li { margin-bottom: 0.5rem; }

/* =========================================
   6. PORTFOLIO
   ========================================= */
.portfolio { padding: 100px 10%; background-color: #0a0a0a; }
.portfolio h2 { text-align: center; font-size: 2.5rem; margin-bottom: 4rem; font-family: 'Montserrat'; }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-item { position: relative; border-radius: 15px; overflow: hidden; aspect-ratio: 16 / 9; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s ease; }

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary-color); 
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.4s ease;
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:hover img { transform: scale(1.1); }

.overlay-text { text-align: center; color: var(--text-dark); }
.overlay-text h3 { font-size: 1.6rem; font-family: 'Montserrat'; margin-bottom: 0.5rem; }

/* =========================================
   7. CONTACTO
   ========================================= */
.contact { padding: 100px 10%; background-color: #111; }
.contact-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 5rem; 
    max-width: 1100px; 
    margin: 0 auto; 
}

.contact-info h2 { font-size: 2.8rem; line-height: 1.1; margin-bottom: 2rem; font-family: 'Montserrat'; }
.info-item { margin-bottom: 1.5rem; }
.info-item a { color: var(--primary-color); text-decoration: none; font-weight: bold; font-size: 1.2rem; }
.info-links { margin-top: 2rem; }
.info-links a { margin-right: 20px; color: white; text-decoration: none; border-bottom: 2px solid var(--secondary-color); padding-bottom: 4px; transition: 0.3s; }
.info-links a:hover { color: var(--secondary-color); }

.contact-form input, .contact-form textarea {
    background: #1e1e1e; border: 1px solid #333; color: white;
    padding: 1.2rem; margin-bottom: 1.2rem; border-radius: 10px; width: 100%;
    font-family: inherit;
}

/* =========================================
   8. ANIMACIONES Y WHATSAPP
   ========================================= */
.reveal { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
}

.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}

.whatsapp-btn {
    position: fixed; bottom: 30px; right: 30px;
    width: 65px; height: 65px; background-color: #25d366;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4); z-index: 9999; transition: 0.3s ease;
}
.whatsapp-btn:hover { transform: scale(1.1) rotate(5deg); }
.whatsapp-icon { width: 38px; height: 38px; fill: white; }

/* =========================================
   9. RESPONSIVIDAD FINAL Y FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 40px;
    background: #000;
    font-size: 0.8rem;
    color: #444;
}

@media (max-width: 768px) {
    header { padding: 1rem 5%; }
    .nav-links { gap: 10px; }
    .nav-links li a { font-size: 0.75rem; margin-left: 8px; }
    .logo { font-size: 1.3rem; }
    
    .story-block { 
        flex-direction: column !important;
        text-align: left !important; 
        justify-content: flex-start !important; 
        padding: 60px 8%; 
        min-height: auto;
    }
    
    .story-image {
        order: -1;
        margin-bottom: 30px;
        padding: 0;
    }
    
    .story-image img {
        max-width: 100%;
    }

    .story-block .micro-bullets { align-items: flex-start !important; }
    .main-text { font-size: 2rem !important; }
    .contact-info h2 { font-size: 2rem; }
    
    .manifesto {
        padding: 80px 8%;
    }
    .big-statement {
        font-size: 1.8rem;
    }
}
/* =========================================
   SECCIÓN PLANES (PRICING)
   ========================================= */
.pricing {
    padding: 100px 10%;
    background-color: #000;
    text-align: center;
}

.pricing-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color); /* Amarillo ROS */
}

.custom-notice {
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.custom-notice strong {
    color: var(--text-white);
}

/* Grilla de tarjetas */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilo de la Tarjeta */
.pricing-card {
    background: #111;
    padding: 50px 30px;
    border-radius: 20px;
    border: 1px solid #222;
    transition: 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

/* Tarjeta Destacada (IMPULSO) */
.pricing-card.featured {
    background: #161616;
    border: 2px solid var(--primary-color);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #000;
    padding: 5px 15px;
    font-weight: 800;
    font-size: 0.7rem;
    border-radius: 50px;
    letter-spacing: 1px;
}

/* Títulos y textos de planes */
.pricing-card h3 {
    font-size: 1.8rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 900;
}

.plan-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #bbb;
    margin-bottom: 30px;
    min-height: 80px;
}

/* Lista de características */
.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid #222;
    font-size: 0.9rem;
    color: #fff;
}

.plan-features li strong {
    color: var(--secondary-color); /* Resalta números en Lavanda */
    font-size: 1.1rem;
}

/* Footer de la sección y Botón */
.custom-footer {
    margin-top: 60px;
}

.custom-footer p {
    margin-bottom: 20px;
    font-weight: 600;
}

.btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #000;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .pricing {
        padding: 80px 8%;
    }
    .pricing-header h2 {
        font-size: 2.2rem;
    }
}