/* Reset de márgenes y paddings por defecto */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales del body */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top center, #0D1B2A, #000000); /* Degradado azul a negro */
    color: white; /* Todo el texto en blanco */
    margin: 0;
    padding: 0;
}

/* Estilos del encabezado */
header {
    background: linear-gradient(135deg, #0D1B2A 0%, #1E293B 50%, #000000 100%); /* Azul/negro */
    color: white;
    padding: 15px 20px; /* Consistente con detalle_producto.php */
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex; /* Usar flexbox */
    align-items: center; /* Alinear ítems verticalmente */
    justify-content: space-between; /* Espaciar ítems horizontalmente */
}

/* Botones */
button {
    background-color: #1E293B; /* Azul grisáceo */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    margin: 5px;
}

button:hover {
    background-color: #0D1B2A; /* Azul profundo */
}

/* Navbar móvil */
@media (max-width: 768px) {
    .navbar {
        background: linear-gradient(135deg, #0D1B2A 0%, #1E293B 100%); /* Azul/negro */
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0D1B2A 0%, #1E293B 50%, #000000 100%);
    padding: 15px;
    text-align: center;
    font-size: 14px;
    color: white;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer a {
    color: #FFB74D;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Responsividad */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        padding: 0 10px;
    }

    header {
        text-align: center;
        flex-direction: column; /* Column layout for header in mobile */
        align-items: center;
    }

    header .logo {
        max-width: 10%; /* Keep this, as it's specific to header's logo in mobile */
        height: auto;
        margin-bottom: 10px;
    }

    header h1 {
        font-size: 1.5rem;
        margin: 0;
    }

    /* Hamburger menu for mobile */
    .hamburger {
        display: block; /* Show hamburger in mobile */
        font-size: 1.5rem;
        cursor: pointer;
        margin: 10px 0;
    }

    /* Navbar */
    .navbar {
        display: none; /* Hide by default */
        width: 100%;
        flex-direction: column; /* Stack links vertically when active */
        align-items: center; /* Center links */
        gap: 5px; /* Space between links */
        /* Additional styling for the dropdown menu */
        background: linear-gradient(to right, #8B0000, #000000); /* Background for the expanded menu */
        position: absolute;
        top: 100%;
        left: 0;
        padding: 10px 0;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .navbar.active {
        display: flex; /* Show when active */
    }

    .navbar a, .dropdown .button {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Submenu (dropdown content) for mobile */
    .submenu {
        position: static; /* No absolute positioning in mobile dropdown */
        display: none;
        width: 100%;
    }

    .dropdown.active .submenu {
        display: block;
    }

    .texto-centrado {
        font-size: 18px;
        text-align: center;
        padding: 10px;
    }

    .cotizador {
        font-size: 14px;
        margin: 10px 0;
        text-align: center;
    }

    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 95%;
        padding: 15px;
        min-height: auto; /* Permitir que la altura sea automática en móviles */
    }

    .hero-content {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .hero-gif, .hero-video {
        min-width: 100%;
        max-width: 100%;
        min-height: auto; /* Permitir altura automática en móviles */
        flex: none; /* Evitar que se estiren */
    }

    .hero-image, .hero-video-element {
        max-height: 200px; /* Altura más apropiada para móviles */
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Asegurar que el video esté debajo del GIF */
    .hero-gif {
        order: 1; /* El GIF aparece primero */
    }

    .hero-video {
        order: 2; /* El video aparece segundo (debajo) */
    }

    footer {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
}

/* Hide hamburger in desktop */
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
    
    .navbar {
        display: flex !important; /* Ensure navbar is visible in desktop */
    }

    /* Hide "Menú" text on desktop */
    .hamburger span {
        display: none;
    }
}

.texto-centrado {
    color: white; /* Color blanco */
    text-align: center; /* Centra el texto */
    font-size: 1.2rem; /* Tamaño de letra */
    line-height: 1.5; /* Espaciado entre líneas */
    font-weight: bold; /* Negrita */
    max-width: 80%; /* Limita el ancho para mejor legibilidad */
    margin: 0 auto; /* Centra horizontalmente */
    padding: 20px;
}
