/* ===============================================
   ESTILOS TIENDA VIRTUAL DE ROPA
   Paleta: Blanco, Verde Oscuro, Verde Medio, Verde Claro
   =============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores Principales */
    --blanco-base: #FFFFFF;
    --verde-oscuro: #285A48;
    --verde-medio: #408A71;
    --verde-claro: #B0E4CC;
    --gris-claro: #F5F5F5;
    --gris-medio: #E0E0E0;
    --gris-oscuro: #333333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Bebas Neue', sans-serif;
    line-height: 1.6;
    color: var(--gris-oscuro);
    background-color: var(--blanco-base);
    letter-spacing: 0.5px;
    background-image: url('logo.png');
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    background-color: var(--blanco-base);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===============================================
   HEADER Y NAVEGACIÓN
   =============================================== */

.header {
    background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-medio) 100%);
    color: var(--blanco-base);
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(189, 181, 153, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.logo-imagen {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-texto {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo h1 {
    font-family: 'Bodoni Moda', serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo p {
    font-size: 12px;
    opacity: 0.9;
}

.nav-principal ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-principal a {
    color: var(--blanco-base);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-principal a:hover {
    opacity: 0.8;
    border-bottom: 2px solid var(--verde-claro);
}

.header-acciones {
    display: flex;
    gap: 15px;
}

.btn-buscar,
.btn-carrito,
.btn-usuario {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--blanco-base);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
}

.btn-buscar:hover,
.btn-carrito:hover,
.btn-usuario:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.carrito-contador {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF6B6B;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* ===============================================
   HERO SECTION
   =============================================== */

.hero {
    background: linear-gradient(135deg, rgba(40, 90, 72, 0.85) 0%, rgba(64, 138, 113, 0.85) 100%);
    color: var(--blanco-base);
    padding: 120px 20px;
    text-align: center;
    margin-bottom: 60px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}

.btn-primario {
    background: var(--blanco-base);
    color: var(--verde-oscuro);
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primario:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ===============================================
   SECCIÓN DE CATEGORÍAS
   =============================================== */

.categorias {
    padding: 60px 0;
    background: rgba(245, 245, 245, 0.95);
}

.categorias h2 {
    font-size: 32px;
    color: var(--verde-oscuro);
    margin-bottom: 40px;
    text-align: center;
}

.grid-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.categoria-card {
    background: var(--blanco-base);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(40, 90, 72, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.categoria-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(40, 90, 72, 0.2);
}

.categoria-imagen {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.categoria-card h3 {
    color: var(--verde-oscuro);
    padding: 20px;
    font-size: 22px;
    font-weight: 600;
}

.categoria-card p {
    padding: 0 20px 20px;
    color: var(--verde-medio);
    font-size: 14px;
}

/* ===============================================
   PRODUCTOS DESTACADOS
   =============================================== */

.productos-destacados {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.95);
}

.productos-destacados h2 {
    font-size: 32px;
    color: var(--verde-oscuro);
    margin-bottom: 40px;
    text-align: center;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tarjeta-producto {
    background: var(--blanco-base);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(40, 90, 72, 0.1);
    transition: all 0.3s ease;
}

.tarjeta-producto:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(40, 90, 72, 0.2);
}

.producto-imagen {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--verde-medio) 0%, var(--verde-claro) 100%);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    position: relative;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tarjeta-producto:hover .producto-imagen img {
    transform: scale(1.05);
}

.etiquetas-producto {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.etiqueta-color,
.etiqueta-talla {
    background: rgba(40, 90, 72, 0.95);
    color: var(--blanco-base);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 100px;
    text-align: center;
    word-break: break-word;
}

.etiqueta-color {
    background: rgba(64, 138, 113, 0.95);
}

.etiqueta-talla {
    background: rgba(40, 90, 72, 0.95);
}

.producto-info {
    padding: 20px;
}

.producto-info h3 {
    color: var(--verde-oscuro);
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.categoria {
    color: var(--verde-medio);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.puntuacion {
    font-size: 13px;
    color: var(--gris-oscuro);
    margin-bottom: 12px;
}

.precio-container {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.precio {
    font-size: 22px;
    font-weight: 700;
    color: var(--verde-oscuro);
}

.precio-original {
    font-size: 14px;
    color: var(--gris-medio);
    text-decoration: line-through;
}

.btn-agregar {
    width: 100%;
    background: linear-gradient(135deg, var(--verde-medio) 0%, var(--verde-oscuro) 100%);
    color: var(--blanco-base);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-agregar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 90, 72, 0.3);
}

/* ===============================================
   CARRUSELES DE PRODUCTOS
   =============================================== */

.productos-wrapper {
    display: flex;
    gap: 30px;
}

.sidebar-filtros {
    flex-shrink: 0;
    width: 250px;
    background: var(--gris-claro);
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

.contenedor-carruseles {
    flex: 1;
}

.seccion-carrusel {
    margin: 60px 0;
    padding: 40px 0;
}

.seccion-carrusel h3 {
    font-size: 28px;
    color: var(--verde-oscuro);
    margin-bottom: 30px;
    text-align: left;
    font-weight: 700;
}

.carrusel-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.carrusel-contenedor {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    background: var(--blanco-base);
}

.carrusel-productos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    min-height: 500px;
}

.carrusel-productos .tarjeta-producto {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
}

.btn-carrusel {
    background: var(--verde-oscuro);
    color: var(--blanco-base);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-carrusel:hover {
    background: var(--verde-medio);
    transform: scale(1.1);
}

.btn-carrusel:active {
    transform: scale(0.95);
}

/* ===============================================
   SECCIÓN BENEFICIOS
   =============================================== */

.beneficios {
    background: linear-gradient(135deg, rgba(245, 245, 245, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 60px 0;
    margin: 60px 0;
}

.grid-beneficios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.beneficio-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--blanco-base);
    border-radius: 12px;
    border-left: 4px solid var(--verde-medio);
    transition: all 0.3s ease;
}

.beneficio-card:hover {
    box-shadow: 0 6px 16px rgba(40, 90, 72, 0.15);
    transform: translateY(-4px);
}

.beneficio-icono {
    font-size: 40px;
    margin-bottom: 15px;
}

.beneficio-card h3 {
    color: var(--verde-oscuro);
    margin-bottom: 8px;
    font-size: 18px;
}

.beneficio-card p {
    color: var(--gris-oscuro);
    font-size: 14px;
}

/* ===============================================
   NEWSLETTER
   =============================================== */

.newsletter {
    background: linear-gradient(135deg, rgba(40, 90, 72, 0.95) 0%, rgba(64, 138, 113, 0.95) 100%);
    color: var(--blanco-base);
    padding: 60px 20px;
    margin: 60px 0;
    border-radius: 12px;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.newsletter-content p {
    margin-bottom: 30px;
    opacity: 0.95;
}

.form-newsletter {
    display: flex;
    gap: 10px;
}

.form-newsletter input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.btn-secundario {
    background: var(--blanco-base);
    color: var(--verde-oscuro);
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secundario:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===============================================
   FOOTER
   =============================================== */

.footer {
    background: var(--verde-oscuro);
    color: var(--blanco-base);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--verde-claro);
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--verde-claro);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--blanco-base);
    text-decoration: none;
    font-size: 14px;
    line-height: 2;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--verde-claro);
}

.formas-pago {
    font-size: 28px;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ===============================================
   FILTROS
   =============================================== */

.filtro-seccion {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gris-medio);
}

.filtro-seccion:last-child {
    border-bottom: none;
}

.filtro-seccion h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--verde-oscuro);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.opciones-ordenar,
.opciones-colores,
.opciones-tallas {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.opciones-ordenar label,
.opciones-colores label,
.opciones-tallas label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--gris-oscuro);
    transition: color 0.2s ease;
}

.opciones-ordenar label:hover,
.opciones-colores label:hover,
.opciones-tallas label:hover {
    color: var(--verde-oscuro);
}

.opciones-ordenar input[type="radio"],
.opciones-colores input[type="checkbox"],
.opciones-tallas input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--verde-medio);
}

.btn-limpiar-filtros {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: var(--verde-claro);
    color: var(--verde-oscuro);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-limpiar-filtros:hover {
    background: var(--verde-medio);
    color: var(--blanco-base);
}

/* ===============================================
   CARRITO MODAL
   =============================================== */

.carrito-modal {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--blanco-base);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.carrito-modal.active {
    right: 0;
}

.carrito-header {
    background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-medio) 100%);
    color: var(--blanco-base);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carrito-header h2 {
    font-size: 20px;
    margin: 0;
}

.btn-cerrar-carrito {
    background: none;
    border: none;
    color: var(--blanco-base);
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrito-contenido {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.carrito-vacio {
    text-align: center;
    padding: 60px 20px;
    color: var(--gris-medio);
}

.carrito-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--gris-claro);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.item-info {
    flex: 1;
}

.item-nombre {
    font-size: 14px;
    font-weight: 600;
    color: var(--gris-oscuro);
    margin-bottom: 5px;
}

.item-precio {
    font-size: 14px;
    color: var(--verde-oscuro);
    margin-bottom: 8px;
}

.item-cantidad {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.btn-cantidad {
    width: 24px;
    height: 24px;
    border: 1px solid var(--verde-claro);
    background: var(--blanco-base);
    color: var(--verde-oscuro);
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-cantidad:hover {
    background: var(--verde-claro);
}

.btn-eliminar {
    background: none;
    border: none;
    color: #FF6B6B;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 10px;
    transition: all 0.2s ease;
}

.btn-eliminar:hover {
    color: #FF4444;
}

.carrito-footer {
    padding: 20px;
    border-top: 2px solid var(--gris-claro);
    background: var(--gris-claro);
}

.total-carrito {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--verde-oscuro);
}

.btn-comprar {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-medio) 100%);
    color: var(--blanco-base);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-comprar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 90, 72, 0.3);
}

.overlay-carrito {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 999;
    transition: background 0.3s ease;
    pointer-events: none;
}

.overlay-carrito.active {
    background: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

/* ===============================================
   ANIMACIONES
   =============================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tarjeta-producto,
.categoria-card,
.beneficio-card {
    animation: fadeIn 0.6s ease-out;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 1024px) {
    .productos-wrapper {
        gap: 20px;
    }

    .sidebar-filtros {
        width: 200px;
        padding: 15px;
    }

    .filtro-seccion h3 {
        font-size: 13px;
    }

    .opciones-ordenar label,
    .opciones-colores label,
    .opciones-tallas label {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav-principal ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero {
        background-attachment: scroll;
        padding: 80px 20px;
        min-height: 400px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .grid-productos,
    .grid-categorias {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .form-newsletter {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .carrito-modal {
        width: 100%;
        right: -100%;
    }

    .productos-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .sidebar-filtros {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        margin-bottom: 20px;
    }

    .filtro-seccion {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 0;
    }

    .header-acciones {
        gap: 10px;
    }

    .hero {
        padding: 80px 20px;
        min-height: 350px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .grid-productos,
    .grid-categorias {
        grid-template-columns: 1fr;
    }
}
