/* ==========================================================================
   0. ESTILOS BASE (Estructura esencial común)
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background-color: #000; 
    color: #fff; 
    line-height: 1.6; 
    overflow-x: hidden; 
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, video { max-width: 100%; display: block; }


.hero-full { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.services-grid { display: grid; }
.service-row { display: flex; align-items: center; }

/* ==========================================================================
   PARTE 1: PC (Desktop - min 1025px)
   ========================================================================== */
@media screen and (min-width: 1025px) {
    :root {
        --font-pc: 'Inter', sans-serif;
        --h1-pc: 5.5rem;
        --grid-cols-pc: repeat(4, 1fr);
        --padding-pc: 100px 10%;
    }

    body { font-family: var(--font-pc); }
    
    
    .hero-content h1 { font-size: var(--h1-pc); font-weight: 900; letter-spacing: -2px; }
    .subtitle { font-size: 1.2rem; opacity: 0.7; margin-bottom: 30px; }

    /* Servicios en 4 columnas */
    .services-grid { grid-template-columns: var(--grid-cols-pc); border-top: 1px solid rgba(255,255,255,0.1); }
    .service-item { padding: 60px 40px; border-right: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); transition: 0.4s; }
    .service-item:nth-child(4n) { border-right: none; }
    .service-item:hover { background: #0a0a0a; }

    /* Zig Zag */
    .service-row { padding: var(--padding-pc); gap: 100px; }
    .service-row.reverse { flex-direction: row-reverse; }
    .service-media { flex: 1.2; filter: grayscale(100%); transition: 0.6s; }
    .service-media:hover { filter: grayscale(0%); }
    .service-text { flex: 0.8; }
    .service-text h3 { font-size: 3rem; margin-bottom: 20px; }

    /* Parallax Window */
    .parallax-window { height: 500px; width: 90%; margin: 50px auto; overflow: hidden; position: relative; }
    .parallax-img { width: 100%; height: 150%; object-fit: cover; position: absolute; top: -25%; }
}

/* ==========================================================================
   PARTE 2: TABLETS (Rango 769px a 1024px)
   ========================================================================== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    :root {
        --font-tab: 'Inter', sans-serif;
        --h1-tab: 3.8rem;
        --grid-cols-tab: repeat(2, 1fr);
    }

    body { font-family: var(--font-tab); }
    .nav-main { padding: 20px 5%; }
   
    .hero-content h1 { font-size: var(--h1-tab); }

    /* Servicios en 2 columnas */
    .services-grid { grid-template-columns: var(--grid-cols-tab); }
    .service-item { padding: 40px; border-right: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
    .service-item:nth-child(2n) { border-right: none; }

    /* Zig Zag apilado pero amplio */
    .service-row, .service-row.reverse { flex-direction: column; text-align: center; padding: 60px 10%; gap: 40px; }
    .service-media img, .service-media video { height: 400px; width: 100%; }
}

/* ==========================================================================
   PARTE 3: CELULARES (Hasta 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
    :root {
        --font-mob: 'Inter', sans-serif;
        --h1-mob: 2.5rem;
        --text-color-mob: #ffffff;
    }

    body { font-family: var(--font-mob); }

  
    /* Hero */
    .hero-content h1 { font-size: var(--h1-mob); line-height: 1.1; padding: 0 10%; }
    .subtitle { font-size: 1rem; padding: 0 15%; margin-top: 15px; }

    /* Servicios en 1 columna */
    .services-grid { grid-template-columns: 1fr; }
    .service-item { padding: 40px 10%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    
    /* Zig Zag */
    .service-row, .service-row.reverse { flex-direction: column; padding: 50px 8%; text-align: center; gap: 30px; }
    .service-media img, .service-media video { height: 300px; }
    .service-text h3 { font-size: 1.8rem; }

    /* Contacto */
    .contact-container { grid-template-columns: 1fr; gap: 40px; }
    .mini-input-group { flex-direction: column; gap: 15px; }
    .footer-mini { flex-direction: column; gap: 15px; text-align: center; padding: 20px 0; }
}

/* ==========================================================================
   EXTRAS (Efectos Visuales)
   ========================================================================== */
.live-link { color: #ff3e3e !important; font-weight: bold; }
.live-link::before { content: ''; display: inline-block; width: 8px; height: 8px; background: #ff3e3e; border-radius: 50%; margin-right: 8px; animation: pulse 1.5s infinite; }

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

.btn-contacto { border: 1px solid #fff; padding: 10px 20px; transition: 0.3s; }
.btn-contacto:hover { background: #fff; color: #000 !important; }

/* --- HERO SPLIT ENGINE --- */
.hero-split-container {
    display: flex;
    height: 100vh;
    width: 100%;
    background: #000;
    overflow: hidden;
}

/* ==========================================
   PARTE 1: PC (Desktop)
   ========================================== */
@media screen and (min-width: 1025px) {
    .hero-ad-side {
        flex: 1;
        display: flex;
        align-items: center;
        padding-left: 8%;
        z-index: 10;
    }

    .main-title {
        font-size: 5rem;
        font-weight: 900;
        line-height: 0.85;
        letter-spacing: -3px;
        text-transform: uppercase;
    }

    .outline-text {
        -webkit-text-stroke: 1px #fff;
        color: transparent;
        display: block;
    }

    .hero-visual-side {
        flex: 1.2;
        position: relative;
    }

    .slide {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        filter: grayscale(100%) brightness(0.5);
        opacity: 0;
        transition: opacity 1.5s ease-in-out, transform 8s linear;
        transform: scale(1.1);
    }
}

/* ==========================================
   PARTE 2: TABLET
   ========================================== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .hero-split-container { flex-direction: column; }
    .hero-ad-side { height: 60vh; padding: 100px 5% 40px; text-align: center; }
    .hero-visual-side { height: 40vh; }
    .main-title { font-size: 3.5rem; }
}

/* ==========================================
   PARTE 3: MÓVIL (Celulares)
   ========================================== */
@media screen and (max-width: 768px) {
    .hero-split-container { flex-direction: column; }
    .hero-ad-side { 
        height: 55vh; 
        padding: 120px 20px 40px; 
        text-align: center; 
        justify-content: center;
    }
    .hero-visual-side { height: 45vh; }
    .main-title { font-size: 2.5rem; letter-spacing: -1px; }
    .eyebrow-text { font-size: 0.6rem; letter-spacing: 3px; }
    .btn-reveal { width: 100%; text-align: center; }
}

/* --- ANIMACIÓN DEL SLIDER --- */
.slide.active {
    opacity: 1;
    transform: scale(1);
}

.eyebrow-text {
    font-size: 0.75rem;
    letter-spacing: 6px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 25px;
    display: block;
}

.btn-reveal {
    display: inline-block;
    margin-top: 40px;
    padding: 18px 45px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 3px;
    transition: 0.5s;
}

.btn-reveal:hover {
    background: #fff;
    color: #000;
}
/* Configuración General */
.banner-parallax {
    background-color: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    overflow: hidden;
    position: relative; /* Asegura el contexto para elementos absolutos */
}

.banner-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    width: 100%;
    z-index: 2; /* Por encima del fondo */
}

/* Estilo de Texto (Izquierda) */
.titulo-impacto {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 900;
    color: #fff;
    line-height: 0.8;
    margin: 0;
}

.titulo-impacto span {
    color: transparent;
    -webkit-text-stroke: 1.5px #fff;
}

.divisor {
    width: 80px;
    height: 5px;
    background: #fff;
    margin: 20px 0;
}

/* Estilo de la Caluga (Derecha) */
.col-foto {
    display: flex;
    justify-content: center;
    width: 100%;
}

.caluga-wrapper {
    width: 100%;
    max-width: 500px;
    height: 600px;
    border: 1px solid #333;
    position: relative;
    overflow: hidden; /* Corta las imágenes que sobresalen por el parallax */
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    background-color: #111; /* Fondo oscuro mientras cargan las fotos */
}


/* RESPONSIVIDAD */
@media (max-width: 900px) {
    .banner-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 50px;
    }
    .col-texto { order: 2; }
    .col-foto { order: 1; }
    .caluga-wrapper { 
        height: 400px; 
        margin: 0 auto;
    }
    .divisor { margin: 20px auto; }
}
/* Animación de entrada para el texto */
.fade-in {
    animation: fadeInUp 1.2s ease-out forwards;
}

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

/* Estilo de los puntos indicadores */
.puntos-slider {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.punto {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: 0.3s;
}

.punto.active {
    background: #fff;
    width: 25px; /* Efecto de píldora para el activo */
    border-radius: 4px;
}

/* Efecto de Zoom Suave en la imagen activa */
.slide-img.active {
    opacity: 1;
    transform: scale(1.05); /* Pequeño zoom constante para dar vida */
}

.slide-img {
    transition: opacity 1s ease-in-out, transform 4s linear; /* Zoom lento */
}
.descripcion-publicitaria {
    font-family: 'Courier New', Courier, monospace; /* Tipografía tipo máquina */
    font-size: 1.1rem;
    color: #00e5ff; /* Un tono cian tecnológico */
    min-height: 1.5em;
    border-right: 2px solid #fff; /* El cursor */
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    animation: parpadeo-cursor 0.8s infinite;
}

@keyframes parpadeo-cursor {
    from { border-color: transparent; }
    to { border-color: #fff; }
}
/* GRID PORTAFOLIO */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    padding: 20px;
}

.project-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(5px);
}

.modal-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.modal-content {
    max-width: 80%;
    max-height: 70%;
    border: 2px solid #fff;
}

#caption {
    color: #ccc;
    padding: 20px;
    text-align: center;
}

.close {
    position: absolute;
    top: 30px; right: 50px;
    color: white; font-size: 40px; cursor: pointer;
}
.footer-premium {
    background-color: #080808;
    color: #fff;
    padding: 80px 5% 20px 5%;
    border-top: 1px solid #222;
}

.footer-main-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Columna de Marca */
.footer-logo-premium {
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.brand-tagline {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 40px;
    max-width: 280px;
}

.detail-item { margin-bottom: 25px; }
.detail-item span {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #555;
    margin-bottom: 5px;
}
.detail-item a, .detail-item p {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}

/* Formulario */
.form-container h3, .map-container h3 {
    font-size: 1.5rem;
    letter-spacing: 3px;
    margin-bottom: 30px;
}
.form-container h3 span, .map-container h3 span { color: #00e5ff; }

.modern-form { display: flex; flex-direction: column; gap: 15px; }
.input-row { display: flex; gap: 15px; }
.modern-form input, .modern-form textarea {
    background: #111;
    border: 1px solid #222;
    padding: 12px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border 0.3s;
}
.modern-form input:focus, .modern-form textarea:focus { border-color: #00e5ff; }

.btn-footer-send {
    background: #fff;
    color: #000;
    border: none;
    padding: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 1px;
}
.btn-footer-send:hover { background: #00e5ff; color: #fff; }

/* Mapa */
.google-map {
    height: 300px;
    filter: grayscale(1) invert(0.9) contrast(1.2); /* Mapa estilo oscuro premium */
    border: 1px solid #222;
}

/* Bottom Legal */
.footer-bottom-legal {
    margin-top: 80px;
    padding-top: 20px;
    border-top: 1px solid #111;
}
.legal-content {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #444;
}
.legal-links a {
    color: #444;
    margin-left: 15px;
    text-decoration: none;
}

/* RESPONSIVO */
@media (max-width: 1024px) {
    .footer-main-container { grid-template-columns: 1fr; gap: 40px; }
    .input-row { flex-direction: column; }
}
.news-podcast-premium {
    background: #000;
    padding: 100px 5%;
}

.container-novedades {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* NOTICIAS - CALUGA VIDEO */
.noticias-caluga {
    background: #111;
    display: flex;
    flex-direction: column;
    border: 1px solid #222;
    transition: transform 0.4s;
}

.video-preview {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.video-noticia {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.noticia-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #00e5ff;
    color: #000;
    font-weight: 900;
    padding: 5px 15px;
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.noticia-info { padding: 40px; }

.eslogan-pro {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
}

.eslogan-pro span {
    -webkit-text-stroke: 1px #fff;
    color: transparent;
}

/* PODCAST - ESTILO COVER */
.podcast-caluga {
    background: #111;
    padding: 40px;
    border: 1px solid #222;
    text-align: center;
}

.podcast-visual {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 30px;
}

.cover-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0,229,255,0.2);
}

.eslogan-podcast {
    font-size: 2rem;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.eslogan-podcast span { color: #00e5ff; }

/* REPRODUCTOR DE AUDIO PERSONALIZADO */
.audio-player-custom audio {
    width: 100%;
    margin-top: 20px;
    filter: invert(1); /* Hace que el reproductor por defecto sea blanco/gris */
}

/* ANIMACIÓN DE ONDAS (BARRAS) */
.wave-animation {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: -20px;
    height: 30px;
}

.wave-animation span {
    width: 3px;
    background: #00e5ff;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { height: 5px; }
    to { height: 25px; }
}

/* RESPONSIVO */
@media (max-width: 992px) {
    .container-novedades { grid-template-columns: 1fr; }
    .eslogan-pro { font-size: 2rem; }
}
/* Contenedor de la Sección */
.live-section-container {
    background-color: #000;
    padding: 100px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.live-subtitle {
    color: #888;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

/* El Marco del Celular */
.phone-frame {
    width: 320px; /* Tamaño un poco más ajustado para web */
    height: 600px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #222;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.2); /* Brillo cian */
}

.phone-screen {
    width: 100%;
    height: 100%;
    position: relative;
}

#video-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    filter: contrast(1.1) saturate(1.1);
}

/* Interfaz de Instagram */
.live-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}

.live-header, .live-controls { pointer-events: auto; }

.live-tag {
    background: #ed4956;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 11px;
}

.viewers {
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.comments-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 10px;
    overflow: hidden;
    color: white;
    font-size: 13px;
    mask-image: linear-gradient(to top, black 80%, transparent 100%);
}

.comment { margin-bottom: 5px; text-shadow: 1px 1px 2px #000; }

.live-controls { display: flex; gap: 10px; }

.live-controls input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 10px;
    color: white;
    flex-grow: 1;
    backdrop-filter: blur(5px);
}

.btn-heart { background: none; border: none; font-size: 24px; cursor: pointer; }

/* --- CONTROL DEL LOGO (SISTEMA RESPONSIVO) --- */

/* Contenedor del logo */
.logo {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* Estilo Base: COMPUTADOR (Pantallas grandes) */
.logo-img {
    height: 80px; /* Altura ideal para desktop */
    width: auto;  /* Mantiene la proporción original */
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.2)); /* Brillo sutil cian */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.logo-img:hover {
    transform: scale(1.08) rotate(-2deg); /* Pequeño juego visual al pasar el mouse */
}

/* TABLET (Pantallas medianas - Menos de 1024px) */
@media (max-width: 1024px) {
    .logo-img {
        height: 85px; /* Reducimos un poco el tamaño */
    }
}

/* CELULAR (Pantallas pequeñas - Menos de 768px) */
@media (max-width: 768px) {
    .logo {
        padding-left: 10px; /* Separación del borde en móviles */
    }
    
    .logo-img {
        height: 60px; /* Tamaño compacto para no chocar con el menú hamburguesa */
    }
    
    /* Evitamos que el logo brille demasiado en pantallas pequeñas para ahorrar batería/recursos */
    .logo-img:hover {
        transform: scale(1.05); /* Menos agresivo en móviles */
    }
}

/* CELULAR EXTRA PEQUEÑO (Menos de 400px) */
@media (max-width: 400px) {
    .logo-img {
        height: 32px; 
    }
}
/* Esto asegura que los controles nativos sigan el estilo oscuro */
video::-webkit-media-controls-panel {
    background-image: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.service-media video {
    display: block;
    border-radius: 4px; /* Opcional, según tu estilo */
    background: #000;
}

.section-reel-split {
    background: #050505;
    padding: 100px 5%;
    display: flex;
    justify-content: center;
}

.reel-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    align-items: center;
}

/* Contenedor Cuadrado del Video */
.video-frame-sq {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Esto lo hace cuadrado */
    background: #000;
    overflow: hidden;
    border: 1px solid #222;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.video-frame-sq video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Controles YouTube Style */
.video-bar-controls {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 45px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-frame-sq:hover .video-bar-controls { opacity: 1; }

.video-bar-controls button {
    background: none; border: none; color: white; cursor: pointer; font-size: 16px;
}

.progress-bar-reel {
    flex-grow: 1; height: 3px; background: rgba(255,255,255,0.2); position: relative;
}

#progress-reel {
    height: 100%; width: 0%; background: #00e5ff; box-shadow: 0 0 10px #00e5ff;
}

/* Texto de Historia */
.tag-history { color: #00e5ff; font-size: 0.7rem; letter-spacing: 3px; font-weight: bold; }
.reel-text-col h2 { font-size: 3.5rem; margin: 10px 0; font-weight: 900; }
.reel-text-col h2 span { color: #00e5ff; }
.historia-texto { color: #aaa; line-height: 1.8; margin-bottom: 30px; font-size: 1.05rem; }

.btn-historia {
    padding: 12px 25px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: 0.3s;
}
.btn-historia:hover { background: #fff; color: #000; }

/* Responsivo */
@media (max-width: 992px) {
    .reel-wrapper { grid-template-columns: 1fr; }
    .reel-text-col { text-align: center; }
}
.reel-text-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    background: #000; /* Fondo negro absoluto */
}

/* Título con sombra sólida e impacto */
.reel-text-col h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 0.9;
    margin-bottom: 20px;
    color: #fff;
    /* Sombra blanca sólida para efecto "pop art" */
    text-shadow: 4px 4px 0px rgba(255, 255, 255, 0.2); 
}

.reel-text-col h2 span {
    color: #fff; /* El punto final también blanco */
    -webkit-text-stroke: 1px #fff; /* Opcional: solo el borde */
}

/* Texto Justificado y Centrado */
.historia-texto {
    color: #888; /* Gris medio para el cuerpo */
    line-height: 1.8;
    max-width: 550px;
    font-size: 1.1rem;
    text-align: justify;
    text-align-last: center;
    margin: 30px auto;
    font-weight: 300;
}

/* Palabras destacadas en Blanco Puro */
.historia-texto strong {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Sin brillo de color, solo contraste puro */
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.2); 
}

/* Botón Blanco y Negro */
.btn-historia {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid #fff; /* Línea fina blanca */
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.btn-historia:hover {
    background: #fff; /* Inversión de colores */
    color: #000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

/* Divisor en escala de grises */
.divisor-short {
    width: 50px;
    height: 1px;
    background: #fff;
    margin: 10px auto;
    opacity: 0.5;
}
.section-clientes {
    background: #000;
    padding: 60px 0;
    overflow: hidden; /* Evita que los logos se salgan de la pantalla */
}

.titulo-seccion-bw {
    color: #fff;
    text-align: center;
    font-size: 2rem;
    letter-spacing: 5px;
    margin-bottom: 10px;
}

/* El contenedor del carrusel */
.clientes-slider {
    width: 100%;
    margin-top: 40px;
    position: relative;
    display: flex;
}

/* El 'track' que se mueve infinitamente */
.clientes-track {
    display: flex;
    width: calc(250px * 12); /* Ancho del logo * total de logos (originales + copia) */
    animation: scroll-infinito 30s linear infinite;
}

.logo-item {
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
}

.logo-item img {
    max-width: 150px;
    height: auto;
    filter: grayscale(1) brightness(0.8); /* Efecto B&W por defecto */
    transition: all 0.4s ease;
    opacity: 0.6;
}

/* Al pasar el mouse, el logo se destaca */
.logo-item img:hover {
    filter: grayscale(0) brightness(1.2);
    opacity: 1;
    transform: scale(1.1);
}

/* ANIMACIÓN KEYFRAMES */
@keyframes scroll-infinito {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 8)); } /* Se detiene al llegar al final de los originales */
}

/* Pausar animación cuando el usuario pone el mouse */
.clientes-slider:hover .clientes-track {
    animation-play-state: paused;
}

/* DISEÑO DE INTEGRACIÓN */
.section-somos-bw {
    padding: 100px 8%;
    background: #000;
}

.video-container-premium {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.video-container-premium video {
    width: 100%;
    display: block;
    filter: grayscale(0.2);
    transition: 0.5s;
}

.video-container-premium:hover video {
    filter: grayscale(0);
}

.video-overlay-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    color: #000;
    padding: 4px 12px;
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* Stats debajo del texto */
.stats-somos {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    border-top: 1px solid #222;
    padding-top: 20px;
}

.stat-item {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

.stat-item strong {
    font-size: 1.5rem;
    color: #fff;
    display: block;
}

/* PORTAFOLIO GRID */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding-top: 40px;
}

.project-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

.project-card:hover img {
    transform: scale(1.1);
}
/* ==========================================================
   AJUSTES FINALES – RESPONSIVE + UX + TEXTO
   (NO rompe nada existente)
   ========================================================== */

/* ---------- SCROLL CORRECTO A SECCIONES ---------- */
section,
[id] {
    scroll-margin-top: 100px;
}

/* ---------- TEXTO LEGIBLE Y PROFESIONAL ---------- */
p,
.historia-texto,
.service-text p,
.noticia-info p,
.footer-premium p {
    text-align: justify;
    text-justify: inter-word;
}

/* En móvil el justificado se ve mal → corregimos */
@media (max-width: 768px) {
    p,
    .historia-texto,
    .service-text p,
    .noticia-info p {
        text-align: left;
    }
}

/* ---------- MAPA REALMENTE RESPONSIVE ---------- */
.google-map {
    position: relative;
    width: 100%;
    height: auto;
    padding-bottom: 56.25%; /* 16:9 */
}

.google-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- FOOTER MOBILE FINO ---------- */
@media (max-width: 768px) {
    .footer-premium {
        padding: 60px 20px 20px;
    }

    .footer-main-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .brand-tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .social-links {
        justify-content: center;
    }
}

/* ---------- NAV MOBILE MÁS ESTABLE ---------- */
@media (max-width: 768px) {
    .nav-links {
        padding-top: 80px;
    }

    .nav-links a {
        line-height: 1.1;
    }
}

/* ---------- HERO / BANNER MOBILE REAL ---------- */
@media (max-width: 480px) {
    .banner-parallax {
        padding: 0 20px;
        min-height: auto;
    }

    .titulo-impacto {
        font-size: 2.4rem;
        line-height: 1;
    }

    .descripcion-publicitaria {
        font-size: 0.95rem;
    }

    .caluga-wrapper {
        height: 320px;
    }
}

/* ---------- PORTAFOLIO MOBILE ---------- */
@media (max-width: 480px) {
    .project-card {
        height: 300px;
    }
}

/* ---------- SERVICIOS ZIG-ZAG MOBILE ---------- */
@media (max-width: 768px) {
    .service-row,
    .service-row.reverse {
        padding: 40px 20px;
    }

    .service-text h3 {
        font-size: 1.6rem;
    }
}

/* ---------- MEJORA SUAVE PERFORMANCE ---------- */
img,
video {
    will-change: transform;
}
#servicios .section-header {
    display: flex;
    justify-content: center;
}

#servicios .section-title {
    max-width: 700px;
    text-align: center;
    text-align-last: center;
}
#proyectos .section-header {
    display: flex;
    justify-content: center;
}

#proyectos .section-title {
    max-width: 700px;
    text-align: center;
}

/* Estilos generales para el cuerpo de la página de noticias */
body.news-page {
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    font-family: 'Helvetica Neue', Arial, sans-serif; /* Puedes ajustar la fuente */
}

/* Navegación - Asegúrate de que se vea bien en esta página */
.nav-main {
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/* Encabezado principal de la sección de noticias */
.news-header {
    text-align: center;
    padding: 150px 0 80px; /* Más padding para que no se pegue al nav */
    filter: grayscale(1);
}

.news-header .titulo-impacto {
    font-size: 4.5rem; /* Tamaño grande para el título principal */
    letter-spacing: -2px;
}

.news-header .divisor {
    width: 80px;
    height: 4px;
    background: #fff;
    margin: 20px auto 0;
}

/* Contenedor principal de todas las noticias (simula el zig-zag) */
.zigzag-container {
    max-width: 1400px; /* Más ancho para el diseño de revista */
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas principales */
    gap: 60px 40px; /* Espacio entre filas y columnas */
}

/* Contenedor general de un elemento de noticia, oculta y espera el JS */
.news-item-concept {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.23, 1, 0.32, 1); /* Animación suave */
    filter: grayscale(1);
    background-color: #1a1a1a; /* Fondo más oscuro para cada item */
    padding: 30px;
    border: 1px solid #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.news-item-concept.appear {
    opacity: 1;
    transform: translateY(0);
}

.news-item-concept:hover {
    filter: grayscale(0.2); /* Suaviza el B&N al pasar el ratón */
    transform: translateY(-5px); /* Pequeño levantamiento */
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

/* Estilo para los contenedores de fotos/videos circulares */
.circular-media {
    width: 180px; /* Tamaño del círculo */
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #666; /* Borde más sutil */
    margin-right: 30px; /* Espacio a la derecha del texto */
    flex-shrink: 0; /* Evita que el círculo se encoja */
}

.circular-media img, .circular-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1); /* Siempre en B&N dentro del círculo */
}

/* Estilo del texto dentro de las noticias */
.news-text-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.news-text-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 20px;
}

/* Botón "LEER MÁS" */
.btn-modern-dark {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid #666;
    color: #ccc;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-modern-dark:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

/* Estilos para la sección de collage (similar a la #4 del diseño) */
.news-collage-section {
    grid-column: 2 / 3; /* Ocupa la segunda columna */
    grid-row: 1 / span 2; /* Ocupa dos filas para darle protagonismo */
    background-color: #0d0d0d; /* Fondo más oscuro */
    padding: 30px;
    border: 1px solid #222;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

.news-collage-section h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.collage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    gap: 10px;
}

.collage-item {
    aspect-ratio: 1 / 1; /* Cuadrados perfectos */
    overflow: hidden;
    border: 1px solid #333;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: all 0.4s ease;
}

.collage-item img:hover {
    filter: grayscale(0); /* Revela el color al pasar el mouse */
    transform: scale(1.1);
}

/* Sección de Parallax Banner (similar a la #5 del diseño) */
.parallax-banner-news {
    grid-column: 1 / 2; /* Ocupa la primera columna */
    height: 400px; /* Altura fija */
    overflow: hidden;
    position: relative;
    border: 1px solid #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.parallax-banner-news .parallax-img-news {
    width: 100%;
    height: 150%; /* Más grande para el efecto parallax */
    object-fit: cover;
    position: absolute;
    top: -25%; /* Ajuste inicial para centrar */
    filter: grayscale(1) brightness(0.6); /* Oscuro y B&N */
    transition: transform 0.1s linear; /* Movimiento suave al scroll */
}

.parallax-banner-news .banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
}

.parallax-banner-news .banner-content h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.parallax-banner-news .banner-content p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Media Queries para responsividad */
@media (max-width: 992px) {
    .zigzag-container {
        grid-template-columns: 1fr; /* Una sola columna en tabletas */
        gap: 40px;
    }
    .news-collage-section, .parallax-banner-news {
        grid-column: auto; /* Ya no ocupan múltiples columnas/filas */
        grid-row: auto;
    }
    .news-item-concept.main-news .circular-media {
        width: 120px;
        height: 120px;
    }
    .news-item-concept.main-news h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .news-item-concept {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .circular-media {
        margin: 0 auto 20px;
    }
    .news-header .titulo-impacto {
        font-size: 3rem;
    }
    .news-collage-section h3 {
        font-size: 1.5rem;
    }
}
.service-media {
    position: relative;
    overflow: hidden;
}

.video-custom-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #000;
    color: #fff;
    border: 1px solid #333;
    padding: 10px 20px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.video-custom-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Estado cuando está en STOP (Rojo sutil) */
.video-custom-btn.is-playing {
    border-color: red;
    color: red;
}

.video-custom-btn.is-playing:hover {
    background: red;
    color: white;
}

/* =====================================
SUBMENU PORTAFOLIO
===================================== */

.nav-links li{
    position: relative;
}

.dropdown{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    min-width: 180px;
    border-radius: 6px;
    overflow: hidden;
}

.dropdown li{
    width: 100%;
}

.dropdown a{
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
}

.dropdown a:hover{
    background:#333;
}

.submenu:hover .dropdown{
    display:block;
}


/* =====================================
   1. ESTRUCTURA GENERAL (Base)
   ===================================== */
:root {
    --bg-dark: rgba(0,0,0,0.9);
    --transition: 0.4s ease;
}

.nav-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: var(--bg-dark);
    padding: 15px 5%; /* Padding base para móvil */
    height: 70px;
}

/* En desktop se ve normal, en móvil lo cambiaremos */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
}

.hero-full {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* =====================================
   2. BOTÓN HAMBURGUESA (Común para móvil)
   ===================================== */
.menu-toggle {
    display: none; /* Oculto en PC */
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background: white;
    transition: var(--transition);
}

/* Animación a X - Unificamos a la clase .active */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =====================================
   3. RESPONSIVE: CELULARES (Max 768px)
   ===================================== */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Aparece en móvil */
    }

.nav-links {
        position: fixed;
        right: -100%; /* Escondido a la derecha */
        top: 0;
        width: 70%;   /* Menú más compacto */
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        justify-content: flex-start; /* Alineado arriba */
        padding-top: 100px;         /* Espacio para que no choque con el logo/X */
        gap: 15px;                  /* Espacio entre links reducido */
        transition: 0.4s cubic-bezier(0.1, 0.7, 1.0, 0.1);
        overflow-y: auto;           /* Permite scroll si el menú es largo */
    }
    .nav-links.active {
        left: 0;
    }

    .dropdown {
        display: none;       /* Escondido por defecto */
        position: static;    /* Cambia de absolute a static para empujar los demás items */
        background: #1a1a1a; /* Fondo ligeramente distinto para diferenciarlo */
        width: 100%;
        padding: 0;
    }

    .submenu.open .dropdown {
        display: block;
    }

    .nav-links a {
        font-size: 1.2rem;
        text-transform: uppercase;
        color: white;
        text-decoration: none;
    }
}

/* =====================================
   4. PC Y TABLETS (Min 769px)
   ===================================== */
@media screen and (min-width: 769px) {
    /* Ajustes Desktop */
    .nav-main { padding: 25px 8%; }
    .nav-links { gap: 35px; }
    
    /* Servicios Grid */
    .services-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    
   
}

/* Contenedor Principal */
.parallax-container {
    position: relative;
    width: 100%;
    height: 600px; /* Altura para PC */
    overflow: hidden;
    background: #000;
}

/* Las 6 imágenes */

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* Totalmente invisible */
    /* IMPORTANTE: La transición de opacidad debe ser más rápida que el transform */
    transition: opacity 1.5s ease-in-out, transform 6s linear; 
    z-index: 1;
}

/* La foto activa */
.slide-img.active {
    opacity: 1; /* Se vuelve visible */
    z-index: 2; /* Sube de capa */
    transform: scale(1.1); /* Inicia el zoom lento */
}

/* --- ADAPTACIÓN PARA CELULAR --- */
@media screen and (max-width: 768px) {
    .parallax-container {
        height: 400px; /* Altura más corta para pantallas pequeñas */
    }
    
    .slide-img {
        /* En móvil a veces es mejor centrar la acción de la foto */
        object-position: center; 
    }
}


.portfolio-section {
    padding: 100px 5%;
    background: #000; /* Fondo negro para resaltar las fotos */
    color: #fff;
}

.section-header-bw {
    text-align: center;
    margin-bottom: 60px;
}

.titulo-seccion-bw {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 10px 0;
}

.titulo-seccion-bw span {
    color: transparent;
    -webkit-text-stroke: 1px #fff;
}

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

.project-card {
    cursor: pointer;
    background: #111;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.card-image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Efecto Hover */
.project-card:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.view-project {
    border: 1px solid #fff;
    padding: 10px 20px;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Info debajo de la foto */
.card-info {
    padding: 20px 0;
}

.card-info .category {
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.card-info h3 {
    font-size: 1.2rem;
    margin-top: 5px;
    font-weight: 600;
}

/* Botón Final */
.portfolio-footer {
    text-align: center;
    margin-top: 80px;
}

.btn-outline-bw {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    text-decoration: none;
    padding: 15px 40px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline-bw:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.btn-outline-bw svg {
    width: 18px;
}

.parallax-shards-section {
    background: #000;
    color: #fff;
    padding: 120px 5%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.parallax-container-v2 {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 100px;
    align-items: center;
}

/* El contenedor de las imágenes */
.visual-shards {
    flex: 1.2;
    position: relative;
    height: 600px;
}

.shards-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    clip-path: polygon(0 0, 100% 5%, 95% 100%, 5% 90%); /* Forma irregular moderna */
}

.shard-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: grayscale(100%) brightness(0.7);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 2s ease-out;
    transform: scale(1.1);
}

.shard-img.active {
    opacity: 1;
    transform: scale(1);
    filter: grayscale(0%) brightness(1);
}

/* Estilo del Texto */
.info-shards {
    flex: 1;
}

.titulo-modern {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 0.9;
    margin: 20px 0;
}

.titulo-modern span {
    color: transparent;
    -webkit-text-stroke: 1px #fff;
}

.texto-somos-v2 {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
}

.tag-modern {
    letter-spacing: 5px;
    font-size: 0.8rem;
    color: #666;
}

/* Responsivo */
@media (max-width: 992px) {
    .parallax-container-v2 { flex-direction: column; gap: 50px; }
    .visual-shards { width: 100%; height: 400px; }
}


/* --- Estilos Generales de la Sección --- */
.services-section {
    padding: 0px 0; /* Espaciado generoso */
    background-color: #000000; /* Fondo negro puro */
    text-align: center; /* Centrar todo el contenido */
}



/* --- Estilos base para el Título H2 --- */
.section-title {
    font-size: 2.3rem; /* Un tamaño grande y de impacto, ajustable */
    font-weight: 800; /* Extra bold para el efecto 3D */
    text-transform: uppercase; /* Todo en mayúsculas */
    letter-spacing: 2px; /* Espaciado premium entre letras */
    margin: 0;
    line-height: 1.1; /* Ajuste de altura de línea */
}

/* --- EFECTO 1: PALABRA 3D BLANCA ("NUESTROS") --- */
.palabra-3d {
    color: #ffffff; /* Color de base blanco */
    
    /* EFECTO 3D MINIMALISTA */
    text-shadow: 
        0 1px 0 #cccccc,
        0 2px 0 #b3b3b3,
        0 3px 0 #999999,
        0 4px 0 #808080,
        0 5px 0 #666666,
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(0,0,0,.2),
        0 5px 10px rgba(0,0,0,.25);
}

.service-content .num {
    display: block;
    margin-top: 0 !important; /* Elimina cualquier espacio arriba del número */
    margin-bottom: 5px;       /* Espacio pequeño hacia el título */
    font-size: 0.9rem;
}

.service-content h3 {
    margin-top: -40 !important; /* Asegura que el título esté pegado al número */
    margin-bottom: 15px;      /* Espacio hacia el párrafo */
    font-size: 1.3rem;
    line-height: 1.2;
}

/* EL PÁRRAFO: Aquí quitamos el justify que causa los espacios */
.service-content p {
    color: #cccccc; /* Un gris claro para jerarquía visual */
    font-size: 1rem;
   
    
    /* CAMBIO CLAVE: Evita que las palabras se separen a la fuerza */
    text-align: center; 
    
    /* Opcional: si prefieres alineado a la izquierda, usa 'left' */
    /* text-align: left; */

    margin: 0 auto;
    max-width: 280px; /* Evita que el texto sea demasiado ancho y canse la vista */
}

/* Estilo para los números (01, 02...) */
.num {
    display: block;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 10px;
    opacity: 0.8;
}

/* --- EFECTO 2: PALABRA DE CONTORNO ("SERVICIOS") --- */
.palabra-contorno {
    color: transparent; /* Hace el fondo de la letra transparente */
    
    /* EFECTO DE CONTORNO (WEBKIT STROKE) */
    /* El primer valor es el grosor del borde, el segundo es el color */
    -webkit-text-stroke: 1px #ffffff; 
    
    /* Para mayor compatibilidad, aunque -webkit- es el estándar de facto */
    text-stroke: 1px #ffffff; 
    
    /* Un pequeño espaciado extra a la izquierda para separar de la primera palabra */
    margin-left: 10px; 
}

.portfolio-section {
    background-color: #000000;
    padding-top: 0px !important; /* Reducción drástica del espacio superior */
    padding-bottom: 60px;
    margin-top: -20px; /* Opcional: para "succionar" la sección hacia arriba */
}

.section-clientes {
    background-color: #000000;
    /* Reducimos el espacio superior al mínimo */
    padding-top: 20px !important; 
    /* El margen negativo ayuda a "pegar" esta sección a la anterior */
    margin-top: -40px; 
    position: relative;
    z-index: 5;
}

.services-section {
    background-color: #000000;
    /* Aumenta este valor (ej. de 100px a 150px) para bajar la sección */
    padding-top: 50px !important; 
    padding-bottom: 100px;
}

.section-header {
    text-align: center;
    /* Reemplaza tus <br> con este margen */
    margin-bottom: 0px; 
}

.services-modern {
    background-color: #000000;
    /* Reducimos el padding superior al mínimo */
    padding-top: -20px !important; 
    /* El margen negativo succiona la sección hacia arriba */
    margin-top: -50px; 
    position: relative;
    z-index: 5;
}

.services-modern {
    background-color: #000;
    padding: 120px 0;
    color: #fff;
    font-family: 'Inter', sans-serif; /* O tu tipografía corporativa */
}

.service-row {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto 150px; /* Gran espacio entre bloques */
    gap: 80px;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

/* --- Contenedor de Imagen --- */
.service-media {
    flex: 1;
    position: relative;
    max-width: 550px;
}

.image-container {
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(255, 255, 255, 0.05); /* Sombra sutil blanca */
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-media:hover img {
    transform: scale(1.08);
}

/* --- Estilo de Texto --- */
.service-text {
    flex: 1;
    max-width: 450px;
}

.service-tag {
    color: #00AEEF; /* Tu celeste institucional */
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    display: block;
    margin-bottom: 15px;
}

.service-text h3 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.service-text h3 span {
    font-weight: 300; /* Contraste de grosores para elegancia */
    color: #eee;
}

.service-text p {
    color: #999;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 30px;
}

/* Línea decorativa minimalista */
.service-line {
    width: 40px;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.4s ease;
}

.service-row:hover .service-line {
    width: 80px;
}

/* --- Número Flotante Elegante --- */
.service-number {
    position: absolute;
    bottom: -30px;
    right: -30px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03); /* Casi invisible, muy chic */
    z-index: -1;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 991px) {
    .service-row, .service-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .service-line { margin: 0 auto; }
}

.services-modern {
    background-color: #000;
    /* Reducimos el espacio superior de la sección */
    padding-top: 20px !important; 
    /* Subimos la sección completa respecto a la anterior */
    margin-top: -60px !important; 
    padding-bottom: 60px;
    position: relative;
    z-index: 5;
}

.service-row {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    /* Reducimos la separación entre el item 01 y el item 02 */
    margin: 0 auto 40px !important; 
    gap: 60px; /* Espacio horizontal entre foto y texto */
    padding: 0 20px;
}

.highlight-name {
    font-weight: 800; /* Extra negrita */
    color: #ffffff;   /* Blanco puro para resaltar sobre el fondo */
    letter-spacing: 1px; /* Un toque de aire entre letras */
}

/* Contenedor principal de la galería */
.galeria-grid {
    display: grid;
    /* Configuración por defecto para móviles (2 columnas) */
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; /* Espacio entre fotos */
    padding: 15px;
}

/* Configuración para tablets y computadores */
@media (min-width: 768px) {
    .galeria-grid {
        /* Cambia a 4 columnas en pantallas medianas y grandes */
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 30px;
    }
}

/* Ajuste de los items para que no se deformen */
.galeria-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 5px;
    background-color: #111; /* Fondo por si la imagen tarda en cargar */
    /* Mantiene la proporción 1:1 (cuadrada) o puedes usar 16/9 */
    aspect-ratio: 1 / 1; 
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* Efecto al pasar el mouse */
.galeria-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

/* Estilos del Modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(5px);
}

.modal-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    animation: zoomIn 0.3s ease;
}

.modal-img {
    max-width: 80%;
    max-height: 70vh;
    border: 3px solid #fff;
}

.modal-caption {
    color: #fff;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-align: center;
    max-width: 80%;
}

.close-modal {
    position: absolute;
    top: 30px; right: 40px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Grid de Videos */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 por línea en móvil */
    gap: 15px;
    padding: 15px;
}

@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 por línea en PC */
        gap: 20px;
    }
}

.video-item {
    cursor: pointer;
    text-align: center;
}

.video-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
    border-radius: 8px;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.video-item:hover video {
    opacity: 1;
}

.play-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #fff;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.video-label {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal Video Específico */
.modal-video-src {
    width: 90%;
    max-width: 1000px;
    outline: none;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* Estilo para las etiquetas de las calugas */
.video-label {
    display: block;          /* Asegura que ocupe su propia línea */
    text-align: center;      /* Centra el texto */
    margin-top: 15px;        /* Separa el texto del video/imagen */
    color: #ffffff;          /* Blanco puro para que resalte en fondo oscuro */
    font-size: 0.9rem;       /* Tamaño equilibrado, ni muy grande ni muy pequeño */
    font-weight: 600;        /* Un poco de grosor para legibilidad */
    text-transform: uppercase; /* Todo en mayúsculas para un look más "Brand" */
    letter-spacing: 1.5px;   /* Espaciado entre letras para elegancia */
    transition: color 0.3s ease; /* Suaviza el cambio de color al pasar el mouse */
}

/* Efecto opcional: Cambia el color cuando pasas el mouse sobre la caluga */
.video-item:hover .video-label, 
.galeria-item:hover .video-label {
    color: #00d1ff; /* Cambia esto por tu color corporativo */
}

/* Contenedor de Noticias */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 en móvil */
    gap: 25px;
    padding: 20px;
}

@media (min-width: 992px) {
    .noticias-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 en PC */
    }
}

/* La Tarjeta (Card) */
.noticia-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.noticia-card:hover {
    transform: translateY(-10px);
    border-color: #00d1ff; /* Color de acento */
}

/* Imagen de Noticia */
.noticia-img-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.noticia-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.noticia-card:hover .noticia-img {
    transform: scale(1.1);
}

.noticia-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #00d1ff;
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 3px;
}

/* Cuerpo de la Noticia */
.noticia-body {
    padding: 20px;
}

.noticia-date {
    font-size: 0.75rem;
    color: #555;
    display: block;
    margin-bottom: 10px;
}

.noticia-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.noticia-excerpt {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Botón Leer Más */
.btn-leer-mas {
    color: #00d1ff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: letter-spacing 0.3s ease;
}

.btn-leer-mas:hover {
    letter-spacing: 2px;
}

.social-links {
    display: flex;       /* Alinea en horizontal */
    gap: 15px;           /* Espacio entre iconos */
    margin-top: 10px;
    align-items: center;
}

.social-links img {
    width: 42px;         /* Tamaño de los iconos */
    height: auto;
    
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.social-links img:hover {
    transform: scale(1.2); /* Efecto de crecimiento al pasar el mouse */
    opacity: 1; /* Recupera el color total al pasar el mouse */
}

.emails-list {
    display: flex;
    flex-direction: column; /* Los pone uno debajo del otro */
    gap: 8px;               /* Espacio entre cada correo */
    margin-top: 10px;
}

.emails-list a {
    color: #ffffff;         /* Blanco para que resalte */
    text-decoration: none;
    font-size: 0.95rem;     /* Un poco más pequeño para que quepan bien los 4 */
    font-weight: 500;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.emails-list a:hover {
    color: #00d1ff;         /* Color de acento de MatrizVisual */
    padding-left: 5px;      /* Pequeño movimiento al pasar el mouse */
}

/* Estilo para el título "EMAILS DE CONTACTO" */
.detail-item span {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #888;            /* Gris sutil para jerarquía visual */
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* Contenedor del botón */
.whatsapp-btn {
    position: fixed;
    bottom: 50px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
    /* Animación de pulso suave */
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn img {
    width: 45px;
    height: 45px;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* La Alerta Roja */
.whatsapp-alert {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background-color: #ff0000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}

/* Animación de Pulso */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.modern-form {
    max-width: 600px;
    margin: auto;
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

.modern-form .input-row {
    display: flex;
    gap: 10px;
}

.modern-form .input-row input {
    width: 50%;
}

.modern-form .btn-footer-send {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.modern-form .btn-footer-send:hover {
    background: #34495e;
}