/* ======================= */
/* ESTILOS GENERALES    */
/* ======================= */
:root {
    --color-oro: #c5a47e;
    --color-negro: #1d1d1b;
    --color-fondo-claro: #f0f0f0;
    --color-texto-oscuro: #333;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--color-fondo-claro);
    color: var(--color-texto-oscuro);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    color: var(--color-negro);
    font-weight: 700;
}

h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    border-bottom: 2px solid var(--color-oro);
    display: inline-block;
    padding-bottom: 10px;
}

section {
    padding: 80px 0;
    text-align: center;
}

/* ======================= */
/* HEADER Y NAVEGACIÓN    */
/* ======================= */
.main-header {
    background-color: var(--color-negro);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 250px; 
    height: auto; 
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 1em;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--color-oro);
    background-color: rgba(255, 255, 255, 0.05);
}

/* ========================================================== */
/* ESTILOS DEFINITIVOS PARA HEADER ACTIONS Y MINI-CARRITO   */
/* ========================================================== */

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-actions {
    position: relative; /* Hacemos a este el padre relativo */
    display: flex;
    align-items: center;
}

.cart-icon-link {
    color: white;
    font-size: 1.6em;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block; /* Asegura que el enlace tenga dimensiones correctas */
}

.cart-icon-link:hover {
    color: var(--color-oro);
}

.cart-item-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--color-oro);
    color: var(--color-negro);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7em;
    font-weight: bold;
    border: 2px solid var(--color-negro);
}

.mini-cart-preview {
    display: none;
    position: absolute;
    top: calc(100% + 20px);
    right: 0;
    width: 340px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 1100;
    padding: 20px;
    text-align: left;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.header-actions:hover .mini-cart-preview {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mini-cart-preview::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 20px;
    border: 8px solid transparent;
    border-bottom-color: white;
}

@media (max-width: 480px) {
    .mini-cart-preview {
        left: 10px;
        right: 10px;
        width: auto;
    }
    .mini-cart-preview::before {
        display: none;
    }
}

/* ========================================================== */
/* ESTILOS PARA EL CONTENIDO INTERNO DEL MINI-CARRITO     */
/* ========================================================== */

.mini-cart-preview h4 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: var(--color-negro);
    font-size: 1.2em;
}

/* --- Lista de items --- */
.mini-cart-items {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.mini-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.mini-cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.mini-cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mini-cart-item-name {
    font-weight: bold;
    color: var(--color-negro);
    font-size: 0.9em;
    line-height: 1.4;
}

.mini-cart-item-price {
    font-size: 0.9em;
    color: #666;
}

.mini-cart-remove-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #ccc;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}
.mini-cart-remove-btn:hover {
    color: #e74c3c;
}

/* --- Subtotal y Botón --- */
.mini-cart-subtotal {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--color-negro);
}

.mini-cart-cta {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin-top: 20px;
    padding: 12px;
}

/* --- Estado de carrito vacío --- */
.mini-cart-empty {
    padding: 40px 20px;
    text-align: center;
    color: #888;
}

/* ======================= */
/* SECCIÓN "HERO" A DOS COLUMNAS */
/* ======================= */
.hero-section.split-hero {
    display: flex;
    align-items: center;
    background-color: white;
    min-height: 85vh;
    padding: 0;
}

.hero-content-split {
    flex: 1;
    padding: 5%;
    text-align: left;
}

.hero-content-split h1 {
    font-size: 3.2em;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--color-negro);
}

.hero-content-split p {
    font-size: 1.2em;
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-image-split {
    flex: 1;
    height: 85vh;
}

.hero-image-split img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-principal {
    background-color: var(--color-oro);
    color: var(--color-negro);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-principal:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(197, 164, 126, 0.4);
}

/* ======================= */
/* SECCIÓN PRODUCTOS     */
/* ======================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    max-width: 100%;
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
}

.product-card h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.btn-secundario {
    background-color: var(--color-negro);
    color: var(--color-oro);
    padding: 10px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn-secundario:hover {
    background-color: #333;
}

/* ======================= */
/* SECCIÓN "CÓMO FUNCIONA" (Línea de Tiempo) */
/* ======================= */
.how-it-works-section {
    background-color: white;
}

.steps-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--color-oro);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 60px;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: 70px;
    height: 70px;
    background-color: var(--color-negro);
    border: 4px solid var(--color-oro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon svg {
    stroke: var(--color-oro);
    width: 32px;
    height: 32px;
}

.timeline-content {
    background-color: var(--color-fondo-claro);
    padding: 25px 30px;
    border-radius: 8px;
    width: calc(50% - 70px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    text-align: left;
}

.timeline-content h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
}

.timeline-content p {
    margin: 0;
    line-height: 1.6;
}

/* ======================= */
/* SECCIÓN DE TESTIMONIOS (Carrusel) */
/* ======================= */
.testimonials-section {
    background-color: var(--color-negro);
    color: white;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden; 
}

.testimonial-slider > input {
    display: none;
}

.testimonials {
    display: flex;
    width: 300%; 
    transition: transform 0.5s ease-in-out;
}

.testimonial-card.slide {
    width: 33.333%;
    padding: 0 40px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.testimonial-card blockquote {
    font-size: 1.3em;
    line-height: 1.6;
    margin: 0 0 25px 0;
    font-style: italic;
    min-height: 130px; 
}

.testimonial-card cite {
    font-weight: bold;
    color: var(--color-oro);
}

/* Lógica del slider */
#t-1:checked ~ .testimonials {
    transform: translateX(0%);
}
#t-2:checked ~ .testimonials {
    transform: translateX(-33.333%);
}
#t-3:checked ~ .testimonials {
    transform: translateX(-66.666%);
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.slider-nav label {
    width: 12px;
    height: 12px;
    background-color: #555;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-nav label:hover {
    background-color: #888;
}

#t-1:checked ~ .slider-nav label[for="t-1"],
#t-2:checked ~ .slider-nav label[for="t-2"],
#t-3:checked ~ .slider-nav label[for="t-3"] {
    background-color: var(--color-oro);
}

/* ======================= */
/* PIE DE PÁGINA      */
/* ======================= */
.main-footer {
    background-color: #111;
    color: #aaa;
    padding: 30px 0;
    text-align: center;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: #aaa;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--color-oro);
}

/* ======================================= */
/* ESTILOS RESPONSIVOS (PARA MÓVILES)    */
/* ======================================= */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-oro);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


@media (max-width: 768px) {
    
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 80px; /* Ajusta según la altura de tu header */
        left: 0;
        width: 100%;
        background-color: var(--color-negro);
    }
    
    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .main-nav li {
        border-bottom: 1px solid #444;
    }

    .main-nav a {
        padding: 20px;
        display: block;
    }

    h2 {
        font-size: 2em;
    }
    
    section {
        padding: 60px 20px;
    }

    .hero-section.split-hero {
        flex-direction: column-reverse;
    }

    .hero-content-split {
        text-align: center;
        padding: 60px 20px;
    }
    
    .hero-image-split {
        width: 100%;
        height: 400px;
    }

    .steps-timeline::before {
        left: 35px;
    }

    .timeline-icon {
        left: 35px;
    }

    .timeline-content {
        width: calc(100% - 90px);
        margin-left: auto;
        text-align: left;
    }
    
    /* --- Ajustes del Carrusel de Testimonios --- */
    .testimonial-card blockquote {
        font-size: 1.1em;
        min-height: 180px;
    }

    .main-footer .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .social-links a {
        margin: 0 10px;
    }
}

/* ================================================================== */
/* ESTILOS PARA LA PÁGINA DE GALERÍA (Sidebar y Tarjetas de Diseño) */
/* ================================================================== */

/* --- Título de la Página --- */
.page-title-section {
    background-color: white;
    padding: 60px 0;
    text-align: center;
}
.page-title-section h1 {
    font-size: 3.5em;
    margin-top: 0;
    margin-bottom: 10px;
}
.page-title-section p {
    font-size: 1.2em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Layout Principal de la Galería con Sidebar --- */
.gallery-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 40px;
    align-items: flex-start;
    padding-top: 80px;
    padding-bottom: 80px;
}

.gallery-sidebar {
    flex: 1;
    min-width: 220px;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}

.gallery-sidebar h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    font-size: 1.4em;
}

.sidebar-filters {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-link {
    text-decoration: none;
    color: var(--color-texto-oscuro);
    padding: 12px 15px;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
}

.filter-link:hover {
    background-color: #f8f9fa;
    color: var(--color-negro);
}

.filter-link.active {
    background-color: var(--color-oro);
    color: var(--color-negro);
    font-weight: bold;
}

.gallery-main-content {
    flex: 3;
    min-width: 0;
}

/* --- Estructura de Categorías y Tarjetas de Diseño --- */
.category-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.category-title {
    font-size: 2.2em;
    text-align: left;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-oro);
    color: var(--color-negro);
    display: inline-block;
}

.design-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .design-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .design-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.design-card-link {
    text-decoration: none; /* Quita el subrayado del enlace */
    color: inherit;      /* Hace que el texto herede el color normal y no sea azul */
    display: block;
}

.design-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.design-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.design-image-container img {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.design-card-link {
    text-decoration: none;
    color: inherit;
}
.design-content {
    padding: 20px;
}

.design-title {
    font-size: 1.25em;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 700;
}

.availability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    font-size: 0.75em;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
    background-color: #e9ecef;
    color: #495057;
}

.tag.woman {
    background-color: #fce4ec;
    color: #c2185b;
}

.tag.kid {
    background-color: #e3f2fd;
    color: #1565c0;
}

.design-sizes {
    font-size: 0.9em;
    color: #666;
    margin: 0;
}

.design-sizes strong {
    color: #333;
}

@media (max-width: 991px) { 
    .gallery-sidebar {
        position: static;
        width: 100%;
    }
    .gallery-container {
        flex-direction: column;
    }
}
/* =================================================== */
/* ESTILOS PARA LA PÁGINA DE UBICACIÓN Y CONTACTO    */
/* =================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: flex-start;
    text-align: left;
}

.contact-details h2, .contact-form-container h2 {
    margin-top: 0;
    text-align: left;
    display: inline-block;
    border-bottom: 2px solid var(--color-oro);
    padding-bottom: 10px;
    font-size: 2em;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.contact-info-list i {
    font-size: 1.8em;
    color: var(--color-oro);
    width: 30px;
    text-align: center;
}

.contact-details h3 {
    margin-top: 40px;
}

/* --- Estilos del Formulario --- */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--color-oro);
    box-shadow: 0 0 0 3px rgba(197, 164, 126, 0.3);
    outline: none;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn-principal {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* --- Sección del Mapa --- */
.map-section {
    padding: 0;
}

.map-container {
    position: relative;
    padding-bottom: 40%;
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
/* =================================================== */
/* ESTILOS PARA LA PÁGINA DE LOGIN ADMINISTRATIVO    */
/* =================================================== */

.login-page-body {
    background-color: var(--color-negro);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.login-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-logo {
    max-width: 280px;
    margin-bottom: 25px;
}

.login-container h1 {
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 30px;
    color: var(--color-negro);
    font-weight: 700;
}

.login-form .form-group {
    margin-bottom: 25px;
    text-align: left;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.1em;
}

.login-form input[type="text"],
.login-form input[type="password"], 
.login-form input[type="email"] {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: var(--color-oro);
    box-shadow: 0 0 0 3px rgba(197, 164, 126, 0.3);
    outline: none;
}

.login-form .btn-principal {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.forgot-password-link {
    display: block;
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--color-oro);
    text-decoration: underline;
}
/* ========================================================== */
/* ESTILOS PARA LA PÁGINA DE DETALLE DE PRODUCTO          */
/* ========================================================== */

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-top: 80px;
    padding-bottom: 80px;
    align-items: flex-start;
}

/* --- Columna de Imágenes --- */
.product-images {
    position: sticky;
    top: 120px;
}

.product-image-main img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-image-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.product-image-thumbnails img {
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid #eee;
    transition: border-color 0.3s ease;
}

.product-image-thumbnails img:hover {
    border-color: #ccc;
}

.product-image-thumbnails img.active {
    border-color: var(--color-oro);
    box-shadow: 0 0 0 3px var(--color-oro);
}

/* --- Columna de Información --- */
.product-info h1 {
    font-size: 2.8em;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 10px;
}

.product-price {
    font-size: 2em;
    font-weight: 700;
    color: var(--color-oro);
    margin-bottom: 25px;
}

.product-short-description {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 35px;
    color: #555;
}

/* --- Opciones del Producto --- */
.product-options-group {
    margin-bottom: 25px;
}

.product-options-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.product-options-group select,
.product-options-group input[type="number"] {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.fit-options-container {
    display: flex;
    gap: 10px;
}
.fit-options-container input[type="radio"] {
    display: none;
}
.fit-options-container label {
    flex: 1;
    text-align: center;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-bottom: 0;
}
.fit-options-container input[type="radio"]:checked + label {
    border-color: var(--color-oro);
    background-color: #fefcf9;
    color: var(--color-negro);
    font-weight: bold;
    box-shadow: 0 0 0 2px var(--color-oro);
}


/* --- Botones de Acción --- */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 35px;
    margin-bottom: 35px;
}
.cta-buttons .btn-principal, .cta-buttons .btn-secundario {
    text-align: center;
    padding: 18px;
    font-size: 1.2em;
}


/* --- Acordeón de Detalles --- */
.product-accordion details {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}
.product-accordion summary {
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    list-style: none;
}
.product-accordion summary::-webkit-details-marker {
    display: none;
}
.accordion-content {
    padding-top: 15px;
    line-height: 1.6;
    color: #555;
}
.accordion-content ul {
    margin: 0;
    padding-left: 20px;
}

@media (max-width: 991px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }
    .product-images {
        position: static;
    }
}
/* ========================================================== */
/* ESTILOS DEFINITIVOS PARA HEADER ACTIONS Y MINI-CARRITO   */
/* ========================================================== */

.header-right {
display: flex;
align-items: center;
gap: 25px;
}

.header-actions {
position: relative; /* <-- CAMBIO CLAVE 1: Hacemos a este el padre relativo */
display: flex;
align-items: center;
}

.cart-icon-link {
/* Ya no necesita ser position: relative */
color: white;
font-size: 1.6em;
text-decoration: none;
transition: color 0.3s ease;
display: block; /* Asegura que el enlace tenga dimensiones correctas */
}

.cart-icon-link:hover {
color: var(--color-oro);
}

.cart-item-count {
position: absolute;
top: -8px;
right: -10px;
background-color: var(--color-oro);
color: var(--color-negro);
width: 22px;
height: 22px;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
font-size: 0.7em;
font-weight: bold;
border: 2px solid var(--color-negro);
}

.mini-cart-preview {
display: none;
position: absolute;
top: calc(100% + 20px);
right: 0; /* <-- CAMBIO CLAVE 2: Ahora se alinea al borde de header-actions */
width: 340px;
background-color: white;
border-radius: 8px;
box-shadow: 0 8px 30px rgba(0,0,0,0.2);
z-index: 1100;
padding: 20px;
text-align: left;
opacity: 0;
transform: translateY(10px);
transition: opacity 0.3s ease, transform 0.3s ease;
pointer-events: none;
}

.header-actions:hover .mini-cart-preview {
display: block;
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}

.mini-cart-preview::before {
content: '';
position: absolute;
bottom: 100%;
right: 20px;
border: 8px solid transparent;
border-bottom-color: white;
}

@media (max-width: 480px) {
    .mini-cart-preview {
    left: 10px;
    right: 10px;
    width: auto;
    }
    .mini-cart-preview::before {
    display: none;
    }
}
/* ========================================================== */
/* ESTILOS PARA EL CONTENIDO INTERNO DEL MINI-CARRITO     */
/* ========================================================== */

.mini-cart-preview h4 {
margin-top: 0;
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 1px solid #eee;
color: var(--color-negro);
font-size: 1.2em;
}

/* --- Lista de items --- */
.mini-cart-items {
list-style: none;
padding: 0;
margin: 0;
max-height: 300px; /* Altura máxima antes de que aparezca el scroll */
overflow-y: auto;
}

.mini-cart-item {
display: flex;
align-items: flex-start; /* Alinea los elementos arriba para evitar estiramientos */
gap: 15px;
margin-bottom: 15px;
}

.mini-cart-item img {
width: 70px;
height: 70px;
object-fit: cover;
border-radius: 4px;
border: 1px solid #eee;
flex-shrink: 0; /* Asegura que la imagen no se encoja o estire */
}

.mini-cart-item-details {
flex: 1;
display: flex;
flex-direction: column;
}

.mini-cart-item-name {
font-weight: bold;
color: var(--color-negro);
font-size: 0.9em;
line-height: 1.4;
}

.mini-cart-item-price {
font-size: 0.9em;
color: #666;
}

.mini-cart-remove-btn {
background: none;
border: none;
font-size: 1.5em;
color: #ccc;
cursor: pointer;
padding: 5px;
transition: color 0.3s ease;
}
.mini-cart-remove-btn:hover {
color: #e74c3c;
}

/* --- Subtotal y Botón --- */
.mini-cart-subtotal {
border-top: 1px solid #eee;
padding-top: 15px;
margin-top: 10px;
display: flex;
justify-content: space-between;
font-weight: bold;
font-size: 1.1em;
color: var(--color-negro);
}

.mini-cart-cta {
display: block;
width: 100%;
box-sizing: border-box;
text-align: center;
margin-top: 20px;
padding: 12px;
}

/* --- Estado de carrito vacío --- */
.mini-cart-empty {
padding: 40px 20px;
text-align: center;
color: #888;
}

/* --- Estilos para la página de recuperación de contraseña --- */

.instruction-text {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.6;
}

.back-to-login-link {
    display: inline-flex; /* Para alinear el ícono y el texto */
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    font-size: 0.9em;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-login-link:hover {
    color: var(--color-oro);
    text-decoration: underline;
}

.error-message {
    padding: 20px;
    border: 1px solid #e74c3c;
    background-color: #fbeae8;
    color: #c0392b;
    border-radius: 5px;
    text-align: center;
}

/* ======================================= */
/* ESTILOS PARA NOTIFICACIONES/ALERTAS     */
/* ======================================= */

/* --- Clase Base para Todas las Alertas --- */
.alert {
    display: flex;
    gap: 15px;
    padding: 20px;
    margin-top: 15px; /* Para separarlo del título */
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 5px solid;
}
.alert i {
    font-size: 1.8em;
    margin-top: 5px;
}
.alert p {
    margin: 5px 0 0 0;
    line-height: 1.6;
}
.alert strong {
    font-size: 1.1em;
}

/* --- Modificador para Alertas de Éxito (Verde) --- */
.alert-success {
    background-color: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

/* --- Modificador para Alertas de Error (Rojo) --- */
.alert-danger {
    background-color: #fbeae8;
    border-color: #e74c3c;
    color: #c0392b;
}

/* ======================================= */
/* ESTILOS PARA LA PÁGINA DEL CARRITO V2   */
/* ======================================= */

/* --- ESTRUCTURA PRINCIPAL --- */
.cart-page-main .container {
    padding-top: 60px;
    padding-bottom: 80px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Divide en 2/3 para la lista y 1/3 para el resumen */
    gap: 60px;
    align-items: flex-start;
}

h1 {
    font-size: 2em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

/* --- COLUMNA IZQUIERDA: LISTA DE ITEMS --- */
.cart-list-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #e0e0e0;
}

.item-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.item-info {
    flex: 1; /* Ocupa el espacio disponible */
}

.item-name {
    font-weight: bold;
    font-size: 1.1em;
    display: block;
    margin-bottom: 15px;
}

.item-quantity-details .item-color-group {
    margin-bottom: 10px;
}
.item-quantity-details .color-label {
    font-size: 0.9em;
    color: #555;
    display: block;
}
.item-quantity-details .size-breakdown {
    display: inline-block;
    font-size: 0.85em;
    color: #777;
    background-color: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 8px;
    margin-top: 5px;
}

.item-price {
    font-weight: bold;
    font-size: 1.1em;
}

/* --- COLUMNA DERECHA: RESUMEN DEL PEDIDO --- */
.order-summary {
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    padding: 30px;
    border-radius: 8px;
    position: sticky;
    top: 120px;
}

.order-summary h2 {
    font-size: 1.5em;
    text-align: left;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #555;
}

.summary-row.total {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-negro);
    border-top: 1px solid #ccc;
    padding-top: 15px;
    margin-top: 15px;
}

.order-summary .checkout-button {
    display: block;
    width: 100%;
    box-sizing: border-box; /* <-- La clave para que el padding no lo haga más ancho */
    text-align: center;
    padding: 18px 20px;     /* Ajustamos el padding para que sea más alto y menos ancho */
    margin-top: 20px;
    border: none;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;

    /* Estilo extra para que coincida con tu imagen de referencia (fondo negro) */
    background-color: var(--color-oro);
    color: var(--color-negro);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.order-summary .checkout-button:hover {
    background-color: #333; /* Un negro un poco más claro al pasar el mouse */
    transform: translateY(-2px);
}

.secure-payment-info {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #777;
}

/* --- ESTADO DE CARRITO VACÍO --- */
.cart-empty-container {
    text-align: center;
    padding: 80px 0;
}

.cart-empty-container p {
    color: #666;
    margin-bottom: 30px;
}

/* --- ESTILOS RESPONSIVOS --- */
@media (max-width: 991px) {
    .cart-grid {
        grid-template-columns: 1fr; /* Una sola columna en tablets y móviles */
    }
    .order-summary {
        position: static;
        margin-top: 40px;
    }
}
@media (max-width: 576px) {
    .cart-list-item {
        flex-direction: column;
    }
    .item-image {
        align-self: center;
    }
    .item-price {
        align-self: flex-end;
        margin-top: 15px;
    }
}
/* ================================================= */
/* ESTILOS PARA LAS MINIATURAS DEL CARRITO (CORREGIDO) */
/* ================================================= */

/* Contenedor de la imagen principal */
.cart-list-item .item-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0; /* MUY IMPORTANTE: Evita que el contenedor se encoja */
}
.cart-list-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

/* Contenedor para la fila de miniaturas */
.item-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Estilo para cada imagen miniatura */
.thumbnail-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.thumbnail-img:hover {
    border-color: #aaa;
    transform: scale(1.05);
}

/* Estilo para la miniatura activa (la que se está mostrando en grande) */
.thumbnail-img.active {
    border-color: var(--color-oro);
    box-shadow: 0 0 0 2px var(--color-oro);
}