/* =========================================
   RESET Y ESTILOS GLOBALES
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #0b1c31; /* Azul corporativo Zionfex */
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a { 
    text-decoration: none; 
    color: inherit; 
}

/* =========================================
   BARRA DE NAVEGACIÓN
========================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: transparent;
    position: fixed; /* Se queda fija al hacer scroll */
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background: rgba(11, 28, 49, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-z { color: #f2c710; } /* Amarillo Zionfex */
.logo-text { color: #ffffff; }

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
}

nav ul li a:hover { 
    opacity: 1; 
    color: #f2c710; 
}

/* =========================================
   SECCIÓN HERO (PRINCIPAL)
========================================= */
.hero {
    padding: 180px 8% 100px;
    /* Imagen de fondo con un filtro oscuro superpuesto */
    background: linear-gradient(to right, rgba(11, 28, 49, 0.95) 0%, rgba(11, 28, 49, 0.4) 100%), url('img/fondo-inicio.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 85vh;
}

.hero-content {
    max-width: 50%;
    z-index: 2;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.highlight-yellow { color: #f2c710; }

.hero p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #d1d5d6;
    max-width: 90%;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 15px 30px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #f2c710;
    color: #000;
}

.btn-primary:hover { 
    background-color: #dcb30d; 
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Contenedor invisible para alinear el producto */
/* =========================================
   FORZAR ESTILOS DEL PRODUCTO
========================================= */
.hero-image-placeholder {
    background: transparent !important;
    border: none !important;
    /* Esto mueve todo el contenedor del producto hacia la izquierda */
    transform: translateX(-80px) !important; 
}

.product-mockup {
    /* Subimos el tamaño (antes estaba en 500px) */
    max-height: 580px !important; 
    width: auto !important;
    object-fit: contain;
    filter: drop-shadow(0px 20px 25px rgba(0, 0, 0, 0.8)); 
    animation: floatProduct 6s ease-in-out infinite; 
}

@keyframes floatProduct {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}


/* =========================================
   INSIGNIAS (IMÁGENES PNG)
========================================= */
.badges-section {
    background-color: #081324;
    padding: 60px 8%;
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    box-shadow: inset 0 10px 20px rgba(0,0,0,0.5);
}

.badge {
    /* Limpiamos los estilos viejos para que solo se vea tu imagen */
    background: transparent !important;
    border: none !important;
    clip-path: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 180px; /* Tamaño de la imagen, puedes subirlo o bajarlo */
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.badge img {
    width: 100%;
    height: auto;
    /* Esto le da una pequeña sombra paralela a tu PNG para que resalte del fondo */
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.6));
}

.badge:hover {
    transform: translateY(-10px); /* Efecto de saltito al pasar el mouse */
}
/* =========================================
   SECCIÓN DE VIDEO
========================================= */
.video-section {
    padding: 90px 8%;
    text-align: center;
    background: #0b1c31;
}

.video-section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.video-player-mockup {
    max-width: 900px;
    margin: 0 auto;
    background: #111;
    height: 500px;
    border: 6px solid #444; 
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* =========================================
   GALERÍA (TIPO CONCRETO)
========================================= */
/* =========================================
   GALERÍA (TIPO CONCRETO)
========================================= */
.gallery-section {
    background-color: #d1d5d6;
    background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 2px, transparent 2px, transparent 4px);
    padding: 70px 8%;
    color: #111;
    text-align: center;
}

.gallery-section h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-item {
    height: 200px;
    background: transparent; /* Quitamos el fondo gris */
    border-radius: 4px;
    overflow: hidden; /* Evita que las imágenes se salgan de los bordes curvos */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hacemos que las imágenes llenen el cuadro sin deformarse */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto es magia: recorta la imagen proporcionalmente para que encaje perfecto */
    display: block;
}

.gallery-item:hover {
    transform: scale(1.05); /* Se hace un poquito más grande al pasar el mouse */
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
/* =========================================
   FOOTER BANNER METÁLICO
========================================= */
.footer-banner {
    background: linear-gradient(90deg, #1f2b38, #3a4a5a, #1f2b38); 
    padding: 60px 8%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    border-top: 1px solid #555;
    border-bottom: 3px solid #081324;
}

.big-z {
    font-size: 6rem;
    font-weight: 900;
    color: #f2c710;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.6);
    line-height: 1;
}

.footer-banner h4 {
    font-size: 2.2rem;
    font-weight: 300;
}

.footer-banner h4 span {
    color: #f2c710;
    font-weight: 700;
}

/* =========================================
   FOOTER INFERIOR
========================================= */
footer {
    background: #040a14;
    padding: 25px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.footer-links a, .social-icons a {
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-links a:hover, .social-icons a:hover { 
    color: #f2c710; 
}

/* =========================================
   RESPONSIVE DESIGN PRINCIPAL (Móviles)
========================================= */
@media (max-width: 960px) {
    .hero { 
        flex-direction: column; 
        text-align: center; 
        padding-top: 130px; 
    }
    .hero-content, .hero-image-placeholder { 
        max-width: 100%; 
        width: 100%; 
        margin-bottom: 40px; 
    }
    .hero h1 { font-size: 2.8rem; }
    .hero p { margin: 0 auto 30px; }
    .cta-buttons { justify-content: center; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-banner { flex-direction: column; gap: 10px; }
    nav ul { display: none; } 
}

/* =========================================
   ESTILOS PARA PÁGINAS INTERIORES
========================================= */
.page-header {
    padding: 160px 8% 60px;
    background: radial-gradient(circle at top, #1a4269 0%, #0b1c31 100%);
    text-align: center;
}
.page-header h1 {
    font-size: 3rem;
    color: #f2c710; /* Amarillo Zionfex */
    text-transform: uppercase;
    letter-spacing: 2px;
}
.page-content {
    padding: 60px 8%;
    background: #f4f4f4;
    color: #333;
}

/* Cuadrículas generales para interiores */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
}
.card:hover {
    border-bottom: 4px solid #f2c710;
    transform: translateY(-5px);
}
.card h3 { 
    margin: 15px 0; 
    color: #0b1c31; 
}

/* Estilos de Contacto */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.form-group { 
    margin-bottom: 20px; 
    text-align: left; 
}
.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: bold; 
    color: #0b1c31; 
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}
.btn-submit {
    width: 100%;
    background: #0b1c31;
    color: #f2c710;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
}
.btn-submit:hover { 
    background: #1a4269; 
}

/* Ajustes de cuadrícula para móviles en interiores */
@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
}
/* =========================================
   ESTILO PARA EL TELÉFONO EN NAVEGACIÓN
========================================= */
.nav-phone {
    color: #f2c710 !important; /* Amarillo Zionfex para resaltar */
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-phone:hover {
    color: #ffffff !important; /* Cambia a blanco al pasar el mouse */
}
v/* Ocultamos el botón en escritorio */
.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Ajustes para Móvil (pantallas menores a 768px) */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block; /* Mostramos el botón en móvil */
    }

    .nav-links {
        display: none; /* Ocultamos el menú horizontal */
        width: 100%;
        position: absolute;
        top: 60px; /* Ajusta según la altura de tu header */
        left: 0;
        background-color: #081324;
        flex-direction: column;
        text-align: center;
    }

    .nav-links.active {
        display: flex; /* Mostramos el menú cuando se active */
    }
}

/* Estilo para las barritas del menú */
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #f2c710;
}