/* ========================================= */
/* ESTILOS GLOBALES Y DE ESCRITORIO (BASE) */
/* ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* CRÍTICO para responsividad */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: rgba(228, 222, 222, 0.986);
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden; 
    position: relative;
    background-repeat: no-repeat;
}

/* HEADER Y NAVEGACIÓN */

header {
    display: flex;
    height: 165px; 
    /* Colocación clave: Logo a la izquierda, Título centrado */
    justify-content: space-between; 
    align-items: center; 
    padding: 0px;
}

.imagen2 {
    height: 100%;
    width: auto;
    object-fit: contain;
    margin-right: auto;
}

/* Contenedor añadido para agrupar y centrar los títulos */
.titulo-header-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el texto */
    flex-grow: 1; /* Permite que ocupe el espacio restante y se centre */
    text-align: center;
}

#andromeda {
    text-align: center;
    color: #110f07;
    letter-spacing: 10px;
    font-size: 50px;
    margin-left: 0; 
    margin-top: 40px;
    text-shadow: -2px 2px 4px rgba(0, 0, 0, 0.8);
    transform: skewX(-5deg);
    animation: reflejo 4s infinite;
}

#sub {
    color: #110f07;
    letter-spacing: 5px;
    padding: 0;
    margin-bottom: 0;
}

nav {
    width: 100%;
    border-radius: 8px;
    background-color: #fff;
    height: auto;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    padding: 15px 1%;
    margin: 0 auto; 
    list-style: none;
    justify-content: space-evenly;
    text-align: center;
}

nav li {
    padding: 5px;
}

nav a {
    text-decoration: none;
    color: #000;
    font-size: 15px;
    cursor: pointer;
    padding: 10px 10px;
    border-radius: 20px;
    white-space: nowrap; 
}

nav ul li a:hover {
    color: #145da0;
    transition: color 0.3s ease;
    background-color: #f7f7f7;
    border-color: #255a97 solid 2px;
}

/* CONTENIDO PRINCIPAL Y LAYOUT */

.container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto; 
    gap: 20px;
    /* Por defecto en escritorio es ROW (lado a lado) */
    flex-direction: row; 
    align-items: flex-start;
    padding: 0 10px; 
}

/* COLUMNA LATERAL (CONTAINER1) */

.container1 {
    width: 250px; 
    flex-shrink: 0;
}

.catalogo, .redes, .contacto {
    background-color: #b9a0a041;
    border: solid 2px #002147;
    width: 100%;
    border-radius: 10px;
    margin: 20px 0; 
    padding: 10px;
    margin-left: -12%;
}

.catalogo {
    margin-top: 180px; 
    height: auto;

}

.catalogo h1 {
    padding: 18px;
    font-size: 23px;
    text-align: center;
    
}

#cat {
    text-align: center;
    margin: 20px 0;
    font-weight: normal;
    font-size: 18px;
}

.florsub {
    font-size: 20px;
    margin-right: 0;
}

.categorias {
    padding: 5px;
    list-style: none;
}

.catalogo ul li {
    list-style: none;
    display: flex;
    align-items: center;
    line-height: 1.5; 
}

.categorias a {
    text-decoration: none;
    color: black;
}

.redes h2, .contacto h2 {
    text-align: center;
    margin: 20px 0;
    font-size: 18px;
}

.redes h4 {
    text-align: center;
    margin: 10px 0 5px 0;
}

.redes a {
    display: block;
    text-align: center;
}

.facebook-icon, .instagram-icon, .tiktok-icon {
    font-size: 40px;
    margin-left: 0;
    display: inline-block;
}
.facebook-icon { color: #1877f2; }
.instagram-icon { color: #E4405F; }
.tiktok-icon { color: #000; }

.telefono {
    width: 60px;
    height: 60px;
    margin: 20px 0;
    margin-left: 38%;
}

/* COLUMNA PRINCIPAL (IMAGEN Y CARDS) */

.imagen {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: auto;
}

.titulo1 h1 {
    font-size: 45px;
    text-align: center;
    margin-left: 0;
    text-shadow: #0e0333 8px 10px 7px;
}

.decripcion6 {
    color: rgb(52, 58, 29);
    margin-top: 20px;
    height: auto;
    font-size: 20px;
    padding: 0 10px;
    text-align: justify;
}

.cards {
    font-size: 20px;
    box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #9e69ff;
    border: #9e69ff;
    background-color: gray;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.titulos, .titulos2 {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    text-align: center;
}

.titulos h4, .titulos2 h4 {
    margin: 10px;
    font-size: 15px;
    width: 30%; 
}

.ramoros, .ramoros1, .ramoros2 {
    margin-left: 0;
}

.primimagenes {
    display: flex;
    width: 100%;
    justify-content: space-around;
    gap: 10px;
    margin: 10px 0;
}

.imagen img {
    width: 30%; 
    max-width: 250px;
    height: 375px;
    border-radius: 8px;
    border: 4px solid #fff;
    box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #9e69ff;
    object-fit: cover;
}

.boton {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-bottom: 10px;
    padding: 5px;
}

.boton-compara {
    width: 30%; 
    text-align: center;
}

.producto-precio {
    text-align: center;
    margin-left: 0;
    font-size: 12px;
}

button {
    width: 50%;
    padding: 8px 10px;
    margin: 5px 0;
    border-radius: 8px;
}
button:hover {
    background-color: #234164;
    color: white;
    border: none;
}

/* PEDIDO MAYOR */

.pedido-mayor {
    height: auto;
    text-align: center;
    width: 100%;
    margin: 40px auto;
    padding: 20px;
    font-size: 20px;
    color: white;
}

/* ========================================= */
/* SECCIÓN DE ACCESORIOS (CENTRADO FINAL) */
/* ========================================= */

.general {
    margin-top: 40px;
    background-color: #808080;
    height: 500px;
    width: 98.5%;
    margin-left: 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column; 
    align-items: center;    
    justify-content: center; 
    padding: 20px 0;
}

.accesorio {
    font-size: 50px; 
    color: white;
    margin-left: 0; 
    text-align: center;
    margin-bottom: 20px; 
    order: 1; /* Título primero */
}

.accesorios {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: animate 60s linear infinite;
    margin-left: 0; 
    margin-bottom: 30px; 
    order: 2; /* Carrusel después del título */
}

.accesorios span {
    padding: 40px;
    position:absolute;
    width: 100%;
    height: 100%;
    transform-origin: center;
    transform-style: preserve-3d;
    transform: rotateY(calc(var(--i)* 50deg)) translateZ(400px) ;
    -webkit-box-reflect:below 0px linear-gradient(transparent ,transparent #0004) ;
}

.accesorios span img {
    top: 30%;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.accesorios2 {
    padding: 10px 20px; 
    width: 100%;
    text-align: center;
    order: 3; /* Descripción y botón al final */
}

.accesorios1 {
    /* Botón de Accesorios */
    color: white;
    text-decoration: none;
    list-style: none;
    text-align: center;
    background-color: #1a2025;
    margin-top: 144px; 
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block; 
}
.accesorios1:hover {
    color: #1a2025;
    background-color: white;
}

/* ========================================= */
/* footerTER */
/* ========================================= */

.site-footer {
    background-color: #040404bd;
    color: #fdfaf7;
    margin: 5px 5px 5px 5px;
    padding: 40px 10px;
    font-size: 14px;
    display:flex;
    flex-direction: column;
    border-radius: 10px;

    width: auto;
}
.footer-section {
    margin-left: 0;
    width: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 221px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 80px;
    padding-top: 20px;
}
.footer-section h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #E0CDB6;
    font-weight: 700;
}

.footer-section {
    margin-left: 0;
    padding: 0 10px;
}

.footer-section p, .footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    line-height: 1.5;
    width: auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-icons a {
    font-size: 1.5rem;
    color: #E0CDB6;
    transition: color 0.3s 
ease, transform 0.3s 
ease;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    margin-left: 0;
}
.social-icons a:hover {
            color: #ffffff;
            transform: translateY(-3px);
            text-decoration: none;
        }
.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    font-size: 12px;
    color: #b0b0b0;
    margin-left: 0;
    width: 100%;
}


/* ========================================= */
/* MEDIA QUERIES PARA RESPONSIVIDAD */
/* ========================================= */

/* PORTÁTILES (Max 1200px) - Ajuste de accesorios */
@media (max-width: 1200px) {
    
    .accesorios {
        width: 150px; 
        height: 150px;
    }
    .accesorios span {
        transform: rotateY(calc(var(--i)* 50deg)) translateZ(250px);
    }
    .accesorio {
        font-size: 30px; 
        margin-left: 0; 
    }
    .accesorios2 {
        padding: 10px 20px;
    }
}
@media (max-width: 360px) {
    
    .site-footer {
    background-color: #040404bd;
    color: #fdfaf7;
    margin: 5px 5px 5px 5px;
    padding: 40px 20px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    width: auto;
    margin-left: -100px;
}
}

/* TABLETS (Max 992px) - Apilamiento de contenido */
@media (max-width: 992px) {
    
    /* ENCABEZADO */
    header {
        flex-direction: column; /* Apilamos logo y título */
        height: auto;
        padding: 10px;
    }
    .imagen2 {
        /* Logo más visible en tabletas */
        height: 100px;
        width: auto;
        margin-right: 0; /* Deshacer el auto-margen */
    }
    .titulo-header-container {
        margin-top: 10px; /* Espacio entre logo y título */
    }
    #andromeda {
        font-size: 40px;
        margin-left: 0; 
    }

    /* LAYOUT PRINCIPAL: Apilamos columnas */
    .container {
        flex-direction: column;
        align-items: center;
    }

    /* NAVEGACIÓN y CONTENEDOR LATERAL */
    nav ul {
        justify-content: space-around;
        padding: 10px 0;
    }
    .container1 {
        width: 95%;
        max-width: 600px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .catalogo, .redes, .contacto {
        width: 100%;
        max-width: 400px;
        margin-top: 10px;
    }
    
    /* CONTENIDO PRINCIPAL Y CARDS */
    .imagen {
        width: 95%;
    }
    .titulo1 h1 {
        font-size: 35px;
    }
    .primimagenes {
        flex-wrap: wrap;
        justify-content: center;
    }
    .imagen img {
        width: 45%;
        height: auto;
    }
    .titulos, .titulos2, .boton {
        flex-wrap: wrap;
    }
    .titulos h4, .titulos2 h4, .boton-compara {
        width: 45%;
        margin-bottom: 10px;
    }
    
    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* MÓVILES (Max 576px) */
@media (max-width: 576px) {
    
    /* ENCABEZADO */
    .imagen2 {
        height: 60px;
        margin-right: 0;
    }
    #andromeda {
        font-size: 28px;
        letter-spacing: 4px;
    }
    
    /* NAVEGACIÓN: STACKING (COLUMNA) */
    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }
    nav li {
        width: 90%;
        margin-bottom: 5px;
    }
    nav a {
        display: block;
        width: 100%;
    }

    /* TARJETAS DE PRODUCTOS: 1 POR FILA */
    .primimagenes {
        flex-direction: row;
        align-items: center;
    }
    .imagen img {
        width: 90%;
        max-width: 300px;
        height: auto;
    }
    .titulos, .titulos2, .boton {
        
        align-items: center;
    }
        .titulos h4, .titulos2 h4, .boton-compara {
        width: 90%;
        text-align: center;
        margin: 5px 0;
        font-size: x-small;
    }
    
    /* ACCESORIOS (SIMPLIFICACIÓN Y ORDEN) */
    .general {
        width: 95%;
        height: auto; 
        padding: 20px 0;
    }
    .accesorios {
        display: none; /* Ocultamos la animación 3D en móviles */
    }
    .accesorio {
        order: 1; 
        margin-bottom: 10px;
    }
    .accesorios2 {
        order: 2; 
        padding: 20px;
        width: 100%;
        text-align: center;
        margin-top: 0;
    }
    .accesorios1 {
        margin-top: 10px;
    }
    button {
    width: 100%;
    padding: 8px 10px;
    margin: 5px 0;
    border-radius: 4px;
    font-size: unset;
}

    .footer-container {
        grid-template-columns: 1fr;
    }
}
/* ==================================== */
/* MEDIA QUERY ESPECÍFICO PARA MÓVILES PEQUEÑOS (412px) */
/* Garantiza un diseño de una sola columna y optimiza tamaños. */
/* ==================================== */
@media (max-width: 412px) {

    
    /* Layout principal */
    .container {
        flex-direction: column;
        gap: 10px;
    }

    /* Ocupa casi todo el ancho */
    .container1, .imagen {
        width: 98%;
        padding: 5px;
        margin: 0 auto;
    }

    /* Aseguramos la columna única para las tarjetas */
    .primimagenes {
        justify-content: center;
    }
    
    .producto-item {
        /* Fuerza una sola columna */
        width: 95%; 
        margin-bottom: 10px;
    }

    /* Reducimos el tamaño de la imagen para que quepa bien verticalmente */
    .producto-item img {
        height: 280px; 
    }

    .producto-item h4 {
        font-size: 14px;
    }

    /* Footer más compacto */
    .footer-container {
        grid-template-columns: 1fr;
    }
}
/* ==================================== */
/* MEDIA QUERY ESPECÍFICO PARA MÓVILES (425px) */
/* ==================================== */
@media (max-width: 425px) {
    
    /* Aseguramos que los contenedores principales ocupen todo el ancho */
    .container1, .imagen {
        width: 98%;
        padding: 5px;
        margin: 0 auto;
    }
    
    /* Títulos y encabezados un poco más pequeños */
    #andromeda {
        font-size: 28px;
    }

    .titulo1 h1 {
        font-size: 25px;
    }

    /* Forzamos una sola columna para las tarjetas */
    .producto-item {
        width: 95%; 
        margin-bottom: 10px;
    }

    /* Reducimos la altura de la imagen para que el contenido quepa en la vista vertical (563px) */
    .producto-item img {
        height: 250px; 
    }
    
    /* Footer más compacto */
    .footer-container {
        grid-template-columns: 1fr;
    }
    .site-footer {
    margin-left: -100px;
}
}
@media (max-width: 1024px) {

.catalogo, .redes, .contacto {
   
    margin-left: 4%;
}

}
/* ==================================== */
/* MEDIA QUERY ESPECÍFICO PARA TABLET (768px) */
/* Asegura el layout de 2 columnas para las tarjetas de producto */
/* ==================================== */

@media (max-width: 768px) {
    /* Mantenemos el layout de una columna (columna y contenido principal apilados) */
    .container {
        flex-direction: column;
    }

    /* La barra lateral y el contenido principal ocupan más ancho */
    .container1 {
        width: 90%;
        margin: 0 auto;
    }
    
    .imagen2 {
        height: 118PX;
        border-radius: 2%;
        /* margin-right: 0; */
    }
        .imagen img {
        width: 21%;
        height: auto;
    }
    .titulos h4, .titulos2 h4, .boton-compara {
        width: 29%;
        margin-bottom: 10px;
    }

    .titulo1 h1 {
        font-size: 30px;
    }
    .imagen2 {
        height: 100px;
        width: auto;
        margin-right: 0;
    }
    
    .primimagenes {
        /* Aseguramos la distribución en tablet */
        justify-content: space-around;
        gap: 20px;
    }

    /* ¡CLAVE! Dos elementos por fila */
    .producto-item {
        /* Ocupa el 45% del ancho para que quepan dos con espacio */
        width: 45%; 
        margin-bottom: 20px;
    }

    /* Ajustamos la altura de la imagen en tablet */
    .producto-item img {
        height: 300px; 
    }
    
    /* El footer cambia a 2 columnas */
    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* ========================================= */
/* ANIMACIONES */
/* ========================================= */

@keyframes reflejo {
    0% { text-shadow: -4px 2px 4px rgba(0, 0, 0, 0.5); }
    50% { text-shadow: -8px 4px 8px rgba(0, 0, 0, 0.8); }
    100% { text-shadow: -6px 2px 4px rgba(0, 0, 0, 0.5); }
}

@keyframes gradient {
    0% { background-position: 0% 50%; text-shadow: 6px 2px 4px rgb(238, 255, 2); }
    100% { background-position: 0% 50%; text-shadow: -6px -2px -4px rgba(1, 1, 17, 0.9); }
}

@keyframes animate {
    0% { transform: perspective(1000px) rotateY(0deg); }
    100% { transform: perspective(1000px) rotateY(360deg); }
}