/* =========================================
   GENERAL
   ========================================= */
body {
    background: #fff;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em 0;
}

h2 {
    text-align: center;
    color: #f39c12;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3em;
    margin-bottom: 1em;
    letter-spacing: 2px;
}

img {
    max-width: 100%;
    height: auto;
}
section {
    /* Altura del header (90px) + un poco de aire (10px) */
    scroll-margin-top: 85px; 
}
/* =========================================
   ENCABEZADO Y NAVEGACIÓN (Desktop)
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.logo-and-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 65px;
    width: auto;
}

.company-name span {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    font-weight: 800;
    color: #333;
    margin: 0;
    line-height: 1;
}

nav {
    height: 100%;
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.5em;
}

nav a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    line-height: 1;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #f39c12;
}

/* Estilo para convertir un enlace de navegación en un botón bordeado */
.nav-button-outline {
    border: 2px solid #f39c12;
    border-radius: 4px;
    padding: 8px 15px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
    line-height: normal;
}

.nav-button-outline:hover {
    background-color: #f39c12;
    color: #fff !important;
}

/* --- LOGICA DEL MENÚ HAMBURGUESA --- */
#menu-toggle {
    display: none; /* Ocultar checkbox */
}

.hamburger {
    display: none; /* Ocultar icono en escritorio */
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO BANNER
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
}

.image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.image-slider video, .slider-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-texto {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 8px;
    max-width: 700px;
    margin: 0 20px;
}

.hero-texto h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5em;
    line-height: 1;
    margin: 0 0 20px 0;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    background-color: #f39c12;
    color: #000;
    padding: 12px 30px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: scale(1.05);
    background-color: #e67e22;
}

/* =========================================
   SECCIÓN NOSOTROS (Flip Cards)
   ========================================= */
#about {
    position: relative;
    padding: 4em 0;
    color: #fff;
    min-height: 400px;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

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

.mission-vision-values {
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap;
}

.flip-card {
    width: 280px;
    height: 220px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 2px solid #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 10px;
    box-sizing: border-box;
}

.flip-card-front {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.flip-card-back {
    background-color: #fff;
    color: #333;
    transform: rotateY(180deg);
    text-align: center;
}

/* =========================================
   SECCIÓN TECNOLOGÍA & SERVICIOS
   ========================================= */
.tech-grid, .service-grid {
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap;
}

.tech-item, .service {
    background: #fff;
    padding: 2em;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.tech-item:hover, .service:hover {
    transform: translateY(-5px);
}

.tech-item img, .service img {
    height: 60px;
    margin-bottom: 1em;
}

#services {
    background-color: #f9f9f9;
}

/* =========================================
   SECCIÓN CLIENTES (Carrusel)
   ========================================= */
#clients {
    overflow: hidden;
    padding: 4em 0;
}

.clients-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    width: calc(250px * 12);
    animation: scroll 40s linear infinite;
    align-items: center;
}

.client-item {
    width: 250px;
    height: 150px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 6)); }
}

/* =========================================
   SECCIÓN CTA DESTACADA (FEATURED CARD)
   ========================================= */
#blog-featured-cta {
    background-color: #f4f4f4;
    padding: 5em 0;
}

.featured-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.featured-image-container {
    flex: 1.2;
    max-height: 450px;
    overflow: hidden;
}

.featured-content-container {
    flex: 1;
    padding: 40px;
    text-align: left;
}

.featured-tag {
    background-color: #f39c12;
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.cta-button-featured {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f39c12;
    color: #fff;
    padding: 15px 30px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s;
}

/* =========================================
   SECCIÓN CONTACTO
   ========================================= */
#contact {
    background-color: #333;
    color: #fff;
}

#contact h2 { color: #f39c12; }

.contact-grid {
    display: flex;
    gap: 3em;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: none;
    box-sizing: border-box;
}

.submit-button {
    background-color: #f39c12;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s;
    
    display: block;
    width: auto;
    min-width: 200px;
    margin: 10px auto 0;
}

/* Botón flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #f39c12;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info-details a {
    color: #f39c12;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-icons a {
    font-size: 2em;
    color: #f39c12;
    margin-right: 15px;
}
.contact-icons a:hover {
    color: #fff;
}

/* FOOTER */
footer {
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
}

/* =========================================
   ESTILOS BLOG Y NOVEDADES
   ========================================= */

.blog-hero {
    background-color: #f7f7f7;
    color: #333;
    text-align: center;
    padding: 140px 0 60px;
    border-bottom: 2px solid #eee;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.blog-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.8em;
    margin-bottom: 5px;
    color: #f39c12;
    letter-spacing: 2px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.blog-card {
    position: relative;
    height: auto; 
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px; 
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px; 
    border: 2px solid #f39c12;
    border-radius: 50px;
    color: #f39c12;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85em;
    text-decoration: none;
    letter-spacing: 0.5px;
    background: transparent;
    transition: all 0.3s ease;
    margin-top: 15px;
    
    display: block; 
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.read-more:hover {
    background-color: #f39c12;
    border-color: #f39c12;
    color: #fff;
    transform: translateY(-2px);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

.post-container {
    max-width: 800px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================= */

@media (max-width: 992px) {
    /* --- ARREGLO NOVEDAD DESTACADA MÓVIL --- */
    .featured-grid {
        display: flex;
        flex-direction: column; /* Apilamos en mobile */
        width: 100%;
        overflow: hidden;
    }

    .featured-image-container {
        width: 100%;
        height: 250px; /* Altura fija para la imagen */
        flex: none;
    }

    .featured-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover; 
        display: block;
    }

    .featured-content-container {
        width: 100%;
        padding: 30px 20px;
        box-sizing: border-box;
        text-align: center;
    }

    /* REDUCCIÓN DE TAMAÑO DE TEXTO */
    .featured-content-container h2 {
        font-size: 1.8em; 
        line-height: 1.2;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .featured-content-container p {
        font-size: 1em;
        line-height: 1.5;
    }
    
    .cta-button-featured {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    
    /* Video Slider Off */
    .slider-video {
        display: none !important;
    }
    
    /* Mostrar botón Hamburguesa */
    .hamburger { 
        display: block; 
        color: #333; 
    }

    /* Estilos menú móvil */
    nav#main-nav {
        display: none; 
        width: 100%;
        background-color: #fff;
        position: fixed; 
        height: calc(100vh - 90px); 
        top: 90px; 
        left: 0;
        z-index: 9998; 
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15); 
        padding: 0;
        overflow-y: auto; 
    }
    
    nav#main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    /* ACTIVAR MENÚ AL MARCAR CHECKBOX */
    #menu-toggle:checked ~ nav#main-nav {
        display: block; 
    }
    
    /* Estilos generales para los enlaces del menú móvil */
    nav#main-nav a {
        padding: 15px 0;
        display: block;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee; 
        color: #333; 
        transition: background-color 0.2s, color 0.2s;
    }

    nav#main-nav a:hover, nav#main-nav a.active {
        background-color: #f7f7f7;
        color: #f39c12;
    }
    
    /* --- NUEVO: ARREGLO BOTÓN DESTACADO EN MENÚ MÓVIL --- */
    /* Hacemos que el botón se vea como botón y no como una fila más */
    nav#main-nav a.nav-button-outline {
        /* Quitamos el estilo de "fila completa" */
        width: fit-content;     /* Ancho según el texto */
        margin: 25px auto;      /* Centrado y con separación vertical */
        padding: 10px 30px;     /* Padding más de botón */
        border-bottom: 2px solid #f39c12; /* Aseguramos el borde inferior naranja */
    }
    
    /* Mantenemos el hover naranja solo para el botón */
    nav#main-nav a.nav-button-outline:hover {
        background-color: #f39c12;
        color: #fff;
    }
    /* ---------------------------------------------------- */
    
    /* Ajustes menores de Texto Hero */
    .hero-texto h1 { 
        font-size: 2.2em; 
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card {
        height: auto; 
    }
    
    .post-container {
        padding: 0 40px; 
        margin-top: 100px; 
    }
}