/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
    -webkit-tap-highlight-color: transparent; /* Quita el flash azul al tocar en móvil */
}

body {
    background: #fff; /* Tu color original */
    color: #000;
    overflow-x: hidden;
}

/* ===== HEADER (Con efecto Borroso/Glass) ===== */
/* ===== HEADER (Color Sólido y Animado) ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px; /* Tamaño escritorio */
    background: #0a1a2f; /* ✅ AZUL MARINO SÓLIDO (Sin transparencias) */
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    
    /* ✅ MAGIA: Esto permite que se mueva suavemente */
    transition: transform 0.4s ease, height 0.3s ease; 
}

/* Esta clase la pondrá el JavaScript automáticamente */
.header-oculto {
    transform: translateY(-100%); /* Mueve el header hacia arriba para esconderlo */
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.logo {
    width: 350px;
    max-height: 120px;
    object-fit: contain;
}


/* BOTÓN VOLVER */
.btn-atras {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 25px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    transition: transform 0.2s, background 0.3s;
}
/* Animación botón */
.btn-atras:active { transform: scale(0.95); background: rgba(255,255,255,0.1); }

/* ===== MENÚS ===== */
.menu-desktop { display: flex; }

.menu-desktop a {
    color: #fff;
    margin-left: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
.menu-desktop a:hover { color: #00a8ff; }

/* Hamburguesa */
.hamburguesa {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px; /* Área de toque mejorada */
}

.hamburguesa span {
    width: 30px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

/* Menú Mobile Lateral */
.menu-mobile {
    position: fixed;
    inset: 0;
    background: #0a1a2f; /* Tu color original */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateY(-100%);
    transition: .5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Rebote suave al abrir */
    z-index: 3000;
}

.menu-mobile.active { transform: translateY(0); }
.menu-mobile a { color: #fff; font-size: 26px; text-decoration: none; }
.cerrar-menu { position: absolute; top: 30px; right: 30px; font-size: 30px; color: #fff; cursor: pointer; }

/* ===== MAIN & SECCIONES ===== */
.main { padding-top: 100px; }

.hero {
    min-height: 80vh;
    background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)), url('../img/hero.jpg') center/cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centrado */
    text-align: center;  /* Centrado */
    padding: 0 60px;
}

.hero h1 { font-size: 5rem; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }

.hero .btn {
    margin-top: 25px;
    padding: 15px 40px;
    background: #fff;
    color: #0a1a2f;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    width: fit-content;
    transition: all 0.2s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.hero .btn:hover { background: #00a8ff; color: #fff; transform: translateY(-3px); }
.hero .btn:active { transform: scale(0.95) translateY(0); } /* Animación click */

.seccion { padding: 80px 60px; text-align: center; }

/* ===== GRID PRODUCTOS ===== */
.grid-productos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.producto { 
    cursor: pointer; 
    overflow: hidden; 
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Sombrita elegante */
    transition: transform 0.3s, box-shadow 0.3s; 
}

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

/* Hover Desktop */
.producto:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.producto:hover img { transform: scale(1.05); }

/* ===== EMPRESA ===== */
.empresa {
    background: #000 !important;
    color: #fff !important;
    padding: 100px 60px;
    text-align: center;
}

/* ===== MODAL & SWITCH (Tus estilos originales + Mejoras visuales) ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 4000;
    padding: 20px;
    backdrop-filter: blur(5px); /* Fondo borroso detrás del modal */
}

.modal.active { display: flex; animation: fadeUp 0.3s ease; }

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

.modal-contenido {
    background: #fff;
    display: flex;
    width: 900px;
    max-width: 100%;
    height: 550px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-contenido img { width: 45%; object-fit: cover; }
.info { width: 55%; padding: 40px; display: flex; flex-direction: column; gap: 15px; text-align: left; }

.cerrar { 
    position: absolute; top: 20px; right: 20px; 
    font-size: 25px; cursor: pointer; 
    background: #eee; width: 40px; height: 40px; 
    display: flex; justify-content: center; align-items: center; 
    border-radius: 50%; 
    transition: transform 0.2s;
}
.cerrar:active { transform: scale(0.85); }

/* Switch Brillos */
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }

.slider { 
    position: absolute; cursor: pointer; inset: 0; 
    background: #ccc; border-radius: 34px; 
    transition: .4s; 
}
.slider:before { 
    position: absolute; content: ""; height: 18px; width: 18px; 
    left: 4px; bottom: 4px; 
    background: white; border-radius: 50%; 
    transition: .4s; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input:checked + .slider { background: #0a1a2f; } /* Tu azul */
input:checked + .slider:before { transform: translateX(24px); }

/* Botón animado del modal */
.ordenar { 
    margin-top: auto; 
    padding: 15px; 
    background: #0a1a2f; 
    color: #fff; 
    border: none; 
    border-radius: 50px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: transform 0.2s, box-shadow 0.2s;
}
.ordenar:hover { box-shadow: 0 5px 15px rgba(10, 26, 47, 0.4); }
.ordenar:active { transform: scale(0.95); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float { 
    position: fixed; bottom: 30px; right: 30px; 
    background: #25d366; color: #fff; 
    padding: 12px 20px; border-radius: 50px; 
    display: flex; align-items: center; gap: 10px; 
    text-decoration: none; z-index: 2000; 
    font-weight: bold; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
    transition: transform 0.2s;
}
.whatsapp-float:active { transform: scale(0.90); }
.whats-logo { width: 25px; }

/* ===== ANIMACIONES SCROLL ===== */
.animar { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.animar.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   ===== MÓVIL REAL (vertical + horizontal) =====
   ========================================= */
@media (max-width: 900px) and (orientation: portrait),
       (max-height: 500px) and (orientation: landscape) {

    /* HEADER */
    .header { height: 80px; }
    .header-container { padding: 0 20px; }
    .logo { width: 160px; }
    .logok { width: 160px; }
    .main { padding-top: 80px; }

    /* MENÚS */
    .menu-desktop { display: none !important; }
    .hamburguesa { display: flex !important; }

    /* REDES */
    .header-social { display: none !important; }

    /* HERO */
    .hero h1 { font-size: 2.8rem; }
    .hero { padding: 0 20px; }

    /* GRID MÓVIL */
    .grid-productos { 
        grid-template-columns: 1fr !important; 
        gap: 25px;
        padding: 0 15px;
    }

    
    .producto {
        border-radius: 20px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        background: #0a1a2f;
    }

    .producto img { 
        height: 450px; 
        object-fit: contain !important;
        background: #0a1a2f;
    }

    .producto:hover img { transform: none; }

    /* ANIMACIONES */
    .animar,
    .producto.animar,
    .seccion.animar {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* MODAL */
    .modal-contenido { 
        flex-direction: column; 
        height: auto; 
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-contenido img { 
        width: 100%; 
        max-height: 35vh;
        object-fit: contain !important;
        background: #f4f4f4;
    }

    .info { width: 100%; padding: 25px; }

    .seccion { padding: 40px 20px; }
    .empresa { padding: 60px 20px; }
}
/* =========================================
   ===== DESKTOP PURO =====
   ========================================= */
@media (min-width: 901px) {
    .menu-desktop { display: flex; }
    .hamburguesa { display: none; }
    .header-social { display: flex; }
}


.ver-mas {
    margin-top: 40px;
}

.ver-mas a {
    display: inline-block;
    padding: 15px 30px;
    border: 2px solid #0a1a2f;
    color: #0a1a2f;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: 0.3s;
}

.ver-mas a:hover {
    background: #0a1a2f;
    color: #fff;
}


.social-buttons a img {
    width: 45px;
    height: 45px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.social-buttons a img:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

/* Responsive para móvil */
@media (max-width: 600px) {
    .social-buttons a img {
        width: 38px;
        height: 38px;
    }
}


/* ===== REDES SOCIALES EN HEADER ===== */
.header-social {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0; /* evita bugs con el menú */
}

.header-social img {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.header-social img:hover {
    transform: scale(1.15);
    opacity: 0.85;
}

/* MÓVIL */
@media (max-width: 768px) {
    .header-social {
        display: none;
    }
}

/* ===== REDES SOCIALES MENÚ MOBILE ===== */
.menu-social {
    display: flex;
    gap: 25px;
    margin-top: 40px;
}

.menu-social img {
    width: 34px;
    height: 34px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-social img:active {
    transform: scale(0.9);
    opacity: 0.8;
}
/* ===== LOGOS HEADER ===== */
.logos {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre los logos */
}

.logo {
    width: 350px;
    max-height: 120px;
    object-fit: contain;
}

.logo-klosther {
    width: 120px;   /* tamaño normal */
    max-height: 70px; 
    object-fit: contain;
}

/* ===== AJUSTE RESPONSIVE ===== */
@media (max-width: 900px) {
    .logo {
        width: 160px;
    }

    .logo-klosther {
        width: 80px; /* más pequeño en móvil */
        max-height: 50px;
    }
}
/* ===== FIX BUG HORIZONTAL MÓVIL ===== */
@media (max-height: 500px) and (orientation: landscape) {

    /* Fuerza modo móvil */
    .menu-desktop {
        display: none !important;
    }

    .hamburguesa {
        display: flex !important;
    }

    .header-social {
        display: none !important;
    }

    .header {
        height: 70px;
    }

    .main {
        padding-top: 70px;
    }

    .logo {
        width: 140px;
    }

    .logo-klosther {
        width: 70px;
    }
}
