/* ========================== */
/* RESET COMPLETO             */
/* ========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
    color: #333;
}

/* ========================== */
/* CABECERA                   */
/* ========================== */
.cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h2 {
    color: #333;
    font-size: 24px;
}

.menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #ff6b6b;
}

.menu span {
    color: #333;
    font-weight: 500;
}

/* ======================================== */
/* SLIDER DE IMÁGENES PROFESIONAL           */
/* ======================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-bottom: 60px;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slider-item.active {
    opacity: 1;
    z-index: 1;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    width: 90%;
    max-width: 800px;
}

.slider-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    animation: fadeInDown 1s ease-out;
}

.slider-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.slider-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.slider-buttons .btn {
    padding: 15px 40px;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-family: Arial, sans-serif;
}

.slider-buttons .btn-primary {
    background: #ff6b6b;
    color: white;
    font-weight: 700;
}

.slider-buttons .btn-primary:hover {
    background: #ff6b6b;
    transform: translateY(-2px);
}

.slider-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    font-weight: 600;
}

.slider-buttons .btn-secondary:hover {
    background: white;
    color: #333;
}

/* Controles del slider (flechas) */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
    transform: translateY(-50%);
}

.slider-control {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: Arial, sans-serif;
}

.slider-control:hover {
    background: rgba(255, 107, 107, 0.9);
}

/* Animaciones del slider */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ========================== */
/* VALORES DE MARCA - ESTILO MIIN CON IMÁGENES */
/* ========================== */

.section-valores {
    background: #ffffff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
}

.valores-header {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.valores-header h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.valores-header p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.valor-item {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.valor-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Contenedor de imagen - estilo MiIN */
.valor-imagen {
    width: 120px; /* Más grande que los iconos anteriores */
    height: 120px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa; /* Fondo sutil para la imagen */
    padding: 20px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.valor-item:hover .valor-imagen {
    transform: scale(1.1);
    background: #fff5f5; /* Fondo rosado suave al hover */
}

.valor-imagen img {
    width: 60px; /* Tamaño de la imagen */
    height: 60px;
    object-fit: contain;
    filter: brightness(1.2); /* Aclarar ligeramente la imagen */
    transition: filter 0.3s ease;
}

.valor-item:hover .valor-imagen img {
    filter: brightness(1.3);
}

.valor-item h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.valor-item p {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
    max-width: 300px;
    margin: 0 auto;
}

/* Números decorativos */
.valor-item .numero-decorativo {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.03);
    line-height: 1;
    user-select: none;
}

.valor-item:nth-child(1) .numero-decorativo { content: "01"; }
.valor-item:nth-child(2) .numero-decorativo { content: "02"; }
.valor-item:nth-child(3) .numero-decorativo { content: "03"; }

/* ========================== */
/* RESPONSIVE VALORES         */
/* ========================== */
@media (max-width: 992px) {
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .valor-item {
        padding: 35px 25px;
    }
    
    .valor-imagen {
        width: 100px;
        height: 100px;
    }
    
    .valor-imagen img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .section-valores {
        padding: 60px 20px;
    }
    
    .valores-header {
        margin-bottom: 40px;
    }
    
    .valores-header h2 {
        font-size: 28px;
    }
    
    .valores-header p {
        font-size: 16px;
    }
    
    .valores-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 25px;
    }
    
    .valor-item {
        padding: 30px 20px;
    }
    
    .valor-imagen {
        width: 90px;
        height: 90px;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .valor-imagen img {
        width: 45px;
        height: 45px;
    }
    
    .valor-item h4 {
        font-size: 18px;
    }
}
/* ========================== */
/* PRODUCTOS POPULARES INDEX - TIPOGRAFÍA ARIAL */
/* ========================== */

.section-populares {
    padding: 80px 20px;
    background: #ffffff;
    font-family: Arial, sans-serif; /* Añadido explícitamente */
}

.section-populares .container-populares {
    max-width: 1200px;
    margin: 0 auto;
}

/* Título estilo MiIN */
.title-populares {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 50px;
    font-weight: 400;
    letter-spacing: -0.5px;
    position: relative;
    font-family: Arial, sans-serif; /* Añadido explícitamente */
}

.title-populares::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1.5px;
    background: #333;
}

/* Contenedor de productos populares */
.container-cards-populares {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

/* Tarjeta de producto popular */
.card-popular {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: Arial, sans-serif; /* Añadido explícitamente */
}

.card-popular:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #ddd;
}

/* Imagen del producto popular */
.img-container-popular {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.img-container-popular img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.card-popular:hover .img-container-popular img {
    transform: scale(1.05);
}

/* Placeholder para productos populares */
.placeholder-popular {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    background: #fafafa;
    font-size: 12px;
    padding: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: Arial, sans-serif; /* Añadido explícitamente */
}

/* Contenido de la tarjeta popular */
.content-popular {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
    text-align: center;
    font-family: Arial, sans-serif; /* Añadido explícitamente */
}

.content-popular h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600; /* CAMBIADO: de 400 a 600 para más grosor */
    line-height: 1.4;
    min-height: 45px;
    letter-spacing: 0.3px;
    font-family: Arial, sans-serif !important; /* Añadido explícitamente */
}

/* Precio producto popular */
.price-popular {
    color: #333;
    font-size: 18px;
    font-weight: 500;
    margin: 10px 0 20px;
    font-family: Arial, sans-serif; /* Añadido explícitamente */
}

/* Botón contenedor popular */
.btn-container-popular {
    margin-top: auto;
    padding-top: 15px;
}

/* Botones IGUAL que .btn-primary del slider */
.btn-add-popular,
.btn-details-popular {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-family: Arial, sans-serif; /* MANTENIDO como slider */
    font-weight: 700;
    width: 100%;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-add-popular:hover,
.btn-details-popular:hover {
    background: #ff6b6b;
    transform: translateY(-2px);
}

/* Botón "Ver Todos" también igual a .btn-primary */
.btn-all-products {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-family: Arial, sans-serif; /* MANTENIDO como slider */
    font-weight: 700;
}

.btn-all-products:hover {
    background: #ff6b6b;
    transform: translateY(-2px);
}

/* Asegurar que el botón dentro del form herede estilos */
.btn-container-popular form {
    width: 100%;
    margin: 0;
}

.btn-container-popular button {
    width: 100%;
    font-family: Arial, sans-serif; /* Añadido explícitamente */
    font-size: inherit;
    font-weight: inherit;
    cursor: pointer;
}

/* No products message para populares */
.no-products-populares {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
    grid-column: 1 / -1;
    font-weight: 300;
    font-family: Arial, sans-serif; /* Añadido explícitamente */
}

/* ========================== */
/* RESPONSIVE PRODUCTOS POPULARES */
/* ========================== */
@media (max-width: 992px) {
    .container-cards-populares {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .img-container-popular {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .section-populares {
        padding: 60px 20px;
    }
    
    .title-populares {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .container-cards-populares {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 40px;
    }
    
    .img-container-popular {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .container-cards-populares {
        gap: 25px;
    }
    
    .content-popular {
        padding: 20px;
    }
    
    .content-popular h3 {
        font-size: 15px;
        min-height: auto;
    }
    
    .price-popular {
        font-size: 16px;
    }
    
    .btn-add-popular,
    .btn-details-popular {
        padding: 12px 25px;
        font-size: 1em;
    }
    
    .btn-all-products {
        padding: 12px 30px;
        font-size: 1em;
    }
}

/* ========================== */
/* FOOTER                     */
/* ========================== */
.site-footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.site-footer p {
    margin-bottom: 15px;
    font-size: 16px;
}

.site-footer a {
    color: #ff6b6b;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    text-decoration: underline;
    color: #ff8e8e;
}

/* ========================== */
/* MAIN CONTENT               */
/* ========================== */
main {
    min-height: calc(100vh - 200px);
}

/* ========================== */
/* ANIMACIONES                */
/* ========================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================== */
/* ESTILOS PARA CARRITO       */
/* ========================== */
.carrito-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.carrito-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: between;
    align-items: center;
}

.carrito-total {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ========================== */
/* FORMULARIOS                */
/* ========================== */
.form-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b6b;
}


/* ========================== */
/* RESPONSIVE                 */
/* ========================== */
@media (max-width: 1200px) {
    .productos-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-slider {
        height: 500px;
    }
    
    .slider-content h1 {
        font-size: 2.8em;
    }
    
    .slider-content p {
        font-size: 1.1em;
    }
    
    .productos-container { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .cabecera { 
        flex-direction: column; 
        padding: 15px 20px; 
        gap: 15px; 
    }
    .menu { 
        gap: 15px; 
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-slider {
        height: 400px;
        margin-bottom: 40px;
    }
    
    .slider-content h1 {
        font-size: 2em;
    }
    
    .slider-content p {
        font-size: 1em;
    }
    
    .slider-buttons .btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    
    .productos-container { 
        grid-template-columns: 1fr; 
        padding: 0 15px; 
    }
    
    .newsletter-form { 
        flex-direction: column; 
        gap: 10px; 
    }
    .section-newsletter input,
    .section-newsletter button { 
        border-radius: 6px; 
        width: 100%; 
        border-right: 2px solid #e0e0e0; 
    }
    .valores-grid {
        flex-direction: column;
        align-items: center;
    }
    
}

@media (max-width: 480px) {
    .hero-slider {
        height: 350px;
    }
    
    .slider-content h1 {
        font-size: 1.8em;
    }
    
    .slider-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .slider-buttons .btn {
        width: 100%;
    }
    
    .slider-control {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .productos-container { 
        grid-template-columns: 1fr; 
    }
    .post-card {
        width: 100%;
        margin: 0 10px;
    }
    .cabecera {
        padding: 10px 15px;
    }
    .menu {
        gap: 10px;
        font-size: 14px;
    }
}

/* ======================================== */
/* FIX CRÍTICO - AGREGAR AL FINAL DEL ARCHIVO */
/* ======================================== */

/* 1. OCULTAR TODOS LOS SLIDES POR DEFECTO */
.slider-item {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transition: opacity 0.5s ease !important;
}

/* 2. MOSTRAR SOLO EL SLIDE ACTIVO */
.slider-item.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 3. CONTENEDOR QUE OCULTA EXCESO */
.hero-slider {
    position: relative !important;
    overflow: hidden !important;
    height: 600px !important;
}

/* 4. IMÁGENES DENTRO DE CADA SLIDE */
.slider-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* 5. CONTENIDO DEL SLIDE */
.slider-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10 !important;
}


/* ========================== */
/* PRODUCTOS - CATALOGO       */
/* ========================== */
/* ========================== */
/* UNIFICAR ESTILOS PRODUCTOS - IGUAL QUE POPULARES */
/* ========================== */

/* 1. CONTENEDOR PRINCIPAL - mantener 4 columnas */
.productos-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px; /* Igual que populares */
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 2. TARJETA DE PRODUCTO - estilo igual a .card-popular */
.producto-card {
    background: white;
    border-radius: 8px; /* Igual que populares */
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05); /* Igual que populares */
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0; /* Igual que populares */
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: Arial, sans-serif;
}

.producto-card:hover {
    transform: translateY(-5px); /* Igual que populares */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* Igual que populares */
    border-color: #ddd; /* Igual que populares */
}

/* 3. CONTENEDOR DE IMAGEN - mantener fondo blanco */
.imagen-forzada {
    width: 100%;
    height: 280px; /* Altura igual a .img-container-popular */
    overflow: hidden;
    background: white; /* FONDO BLANCO MANTENIDO */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px; /* Igual que populares */
    border-bottom: 1px solid #f0f0f0; /* Línea sutil como populares */
}

.imagen-forzada img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.5s ease; /* Animación igual que populares */
}

.producto-card:hover .imagen-forzada img {
    transform: scale(1.05); /* Animación igual que populares */
}

/* Placeholder igual que populares */
.placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    background: #fafafa;
    font-size: 12px;
    padding: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: Arial, sans-serif;
}

/* 4. CONTENIDO DE LA TARJETA - igual a .content-popular */
.producto-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px; /* Igual que populares */
    text-align: center; /* Igual que populares */
    font-family: Arial, sans-serif;
}

/* Título igual que populares */
.producto-content h3 {
    color: #333;
    font-size: 16px; /* Tamaño igual que populares */
    margin-bottom: 12px; /* Espaciado igual que populares */
    font-weight: 600; /* Igual que populares */
    line-height: 1.4;
    min-height: 45px; /* Altura mínima igual que populares */
    letter-spacing: 0.3px; /* Igual que populares */
    font-family: Arial, sans-serif !important;
}

/* Precio igual que populares */
.producto-content .price {
    color: #333;
    font-size: 18px; /* Tamaño igual que populares */
    font-weight: 500; /* Igual que populares */
    margin: 10px 0 20px; /* Espaciado igual que populares */
    font-family: Arial, sans-serif;
}

/* 5. BOTÓN - igual que populares */
.boton-container {
    margin-top: auto;
    padding-top: 15px; /* Igual que populares */
}

.boton-container form {
    width: 100%;
    margin: 0;
}

.boton-container button,
.boton-container a {
    background: #ff6b6b !important;
    color: white !important;
    border: none !important;
    padding: 15px 40px !important; /* Igual que populares */
    font-size: 1.1em !important; /* Igual que populares */
    border-radius: 5px !important;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-family: Arial, sans-serif !important;
    font-weight: 700 !important; /* Igual que populares */
    width: 100% !important;
    text-align: center;
    letter-spacing: 0.5px !important;
    height: auto !important;
    min-height: 50px !important;
    line-height: normal !important;
}

.boton-container button:hover,
.boton-container a:hover {
    background: #ff6b6b !important;
    transform: translateY(-2px) !important;
}

/* Estilo para enlace de "Inicia sesión" */
.boton-container a[href*="login"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9em !important;
    padding: 12px 20px !important;
    background:#ff6b6b !important; 
}

.boton-container a[href*="login"]:hover {
    background: #ff6b6b !important;
}

/* 6. TÍTULO DE SECCIÓN - igual que populares */
.titulo-seccion {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin: 50px 0;
    font-weight: 400;
    letter-spacing: -0.5px;
    position: relative;
    font-family: Arial, sans-serif;
}

.titulo-seccion::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1.5px;
    background: #333;
}

/* 7. RESPONSIVE - mantener igual que populares pero con 4→3→2→1 columnas */
@media (max-width: 1200px) {
    .productos-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
        padding: 25px;
    }
}

@media (max-width: 992px) {
    .productos-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 20px;
    }
    
    .imagen-forzada {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .productos-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 40px;
        gap: 25px;
    }
    
    .titulo-seccion {
        font-size: 28px;
        margin: 40px 0;
    }
    
    .imagen-forzada {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .productos-container {
        gap: 25px;
        padding: 15px;
    }
    
    .producto-content {
        padding: 20px;
    }
    
    .producto-content h3 {
        font-size: 15px;
        min-height: auto;
    }
    
    .producto-content .price {
        font-size: 16px;
    }
    
    .boton-container button,
    .boton-container a {
        padding: 12px 25px !important;
        font-size: 1em !important;
    }
}

/* ========================== */
/* CORRECCIÓN TÍTULOS PRODUCTOS - AÑADIDO AL FINAL */
/* ========================== */

/* Para productos en el catálogo (página Products) - YA APLICADO ARRIBA */
/* Para productos en la sección populares (Home) - YA APLICADO ARRIBA */

/* Para títulos de sección (como "Innovación Coreana") - mantener consistencia */
.valor-item h4,
.title-populares {
    font-weight: 600 !important;
    font-family: Arial, sans-serif !important;
}

/* ========================== */
/* CORRECCIÓN PRECIO Y BOTÓN - AÑADE ESTO AL FINAL */
/* ========================== */

/* Para precio en productos populares (Home) */
.price-popular {
    font-weight: 600 !important; /* Más grosor */
    color: #333 !important; /* Negro puro en lugar de gris */
    font-size: 20px !important; /* Un poco más grande */
}

/* Para precio en catálogo (Products) */
.price {
    font-weight: 600 !important; /* Más grosor */
    color: #333 !important; /* Negro puro */
    font-size: 22px !important; /* Un poco más grande */
}

/* Para botones en productos populares (Home) */
.btn-add-popular,
.btn-details-popular {
    font-weight: 700 !important; /* Asegurar grosor */
    letter-spacing: 0.5px !important;
}

/* Para botones en catálogo (Products) */
.boton-container button {
    font-weight: 700 !important; /* Más grosor en el texto */
    font-size: 17px !important; /* Un poco más grande */
    letter-spacing: 0.5px !important;
}

/* Para botón "Ver Todos" */
.btn-all-products {
    font-weight: 700 !important; /* Asegurar grosor */
    letter-spacing: 0.5px !important;
}

/* ========================== */
/* LOGO CON IMAGEN            */
/* ========================== */
.cabecera .logo h2 {
    display: none; /* Oculta el texto "Angel Glow Cosmetic" */
}

.cabecera .logo {
    height: 50px; /* Altura del contenedor del logo */
    display: flex;
    align-items: center;
}

.cabecera .logo a {
    display: block;
    height: 100%;
    text-decoration: none;
}

.cabecera .logo img {
    height: 100%; /* La imagen ocupa toda la altura del contenedor */
    width: auto; /* Mantiene proporción */
    max-width: 200px; /* Ancho máximo para escritorio */
    object-fit: contain; /* Mantiene calidad de imagen */
}

/* Responsive para tablets */
@media (max-width: 992px) {
    .cabecera .logo {
        height: 45px;
    }
    
    .cabecera .logo img {
        max-width: 180px;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .cabecera {
        padding: 12px 20px !important;
    }
    
    .cabecera .logo {
        height: 40px;
    }
    
    .cabecera .logo img {
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .cabecera .logo {
        height: 35px;
    }
    
    .cabecera .logo img {
        max-width: 140px;
    }
}


/* ========================== */
/* FIX PARA FOOTER EN LOGIN   */
/* ========================== */
.pagina-formulario {
    min-height: calc(100vh - 200px); /* Altura total menos header y footer */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ========================== */
/* FIX PARA PÁGINAS DE FORMULARIO */
/* ========================== */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1; /* Esto empuja el footer hacia abajo */
}

.pagina-formulario {
    min-height: calc(100vh - 200px); /* Altura total menos header y footer */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ========================== */
/* CARRITO DE COMPRAS - DISEÑO 2 COLUMNAS */
/* ========================== */

.carrito-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* --- COLUMNA IZQUIERDA: CESTA --- */
.carrito-cesta {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
}

.carrito-titulo {
    font-size: 28px;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

.carrito-count {
    color: #ff6b6b;
    font-weight: 700;
}

.btn-volver {
    display: inline-block;
    color: #666;
    text-decoration: none;
    margin-bottom: 25px;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 15px;
}

.btn-volver:hover {
    color: #ff6b6b;
}

.separador {
    border: none;
    height: 1px;
    background: #f0f0f0;
    margin: 20px 0 30px;
}

/* Items del carrito */
.carrito-items {
    margin-bottom: 30px;
}

.carrito-item {
    display: grid;
    grid-template-columns: 80px 2fr 1fr auto;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.carrito-item:last-child {
    border-bottom: none;
}

.carrito-item-imagen {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    color: #666;
    font-weight: 600;
    font-size: 20px;
}

.carrito-item-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
}

.precio-unitario {
    color: #666;
    font-size: 15px;
    font-weight: 500;
}

.carrito-item-cantidad {
    text-align: center;
}

.carrito-cantidad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-cantidad {
    background: #f8f9fa;
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #333;
}

.btn-cantidad:hover {
    background: #eee;
    border-color: #ccc;
}

.input-cantidad {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    font-size: 15px;
    font-weight: 500;
}

.subtotal {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    margin-top: 5px;
}

.carrito-item-acciones {
    text-align: right;
}

.btn-eliminar {
    background: #ffeaea;
    color: #ff6b6b;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-eliminar:hover {
    background: #ff6b6b;
    color: white;
}

.carrito-acciones {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.btn-actualizar {
    background: #666;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s;
}

.btn-actualizar:hover {
    background: #555;
}

/* --- COLUMNA DERECHA: RESUMEN --- */
.carrito-resumen {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.resumen-titulo {
    font-size: 22px;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

.resumen-detalle {
    margin-bottom: 25px;
}

.resumen-linea {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
    font-size: 16px;
}

.resumen-linea.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.monto-total {
    color: #ff6b6b;
    font-size: 24px;
}

.resumen-vacio {
    color: #666;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.resumen-botones {
    margin: 30px 0;
}

.btn-finalizar {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 17px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: background 0.3s;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-finalizar:hover {
    background: #ff6b6b;
}

.resumen-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.info-envio,
.info-seguridad {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Carrito vacío */
.carrito-vacio {
    text-align: center;
    padding: 60px 20px;
}

.carrito-vacio p {
    color: #666;
    font-size: 18px;
    margin-bottom: 20px;
}

.btn-volver-tienda {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .carrito-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .carrito-item {
        grid-template-columns: 70px 1fr;
        gap: 20px;
    }
    
    .carrito-item-cantidad,
    .carrito-item-acciones {
        grid-column: 2;
        text-align: left;
        margin-top: 10px;
    }
    
    .carrito-resumen {
        position: static;
    }
}

@media (max-width: 768px) {
    .carrito-container {
        padding: 0 15px;
    }
    
    .carrito-cesta,
    .carrito-resumen {
        padding: 25px;
    }
    
    .carrito-item {
        grid-template-columns: 60px 1fr;
        gap: 15px;
        padding: 20px 0;
    }
    
    .carrito-item-imagen {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }
    
    .carrito-cantidad {
        justify-content: flex-start;
    }
}
/* ========================== */
/* IMÁGENES EN CARRITO        */
/* ========================== */

.carrito-item-imagen {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    overflow: hidden;
    flex-shrink: 0;
}

.carrito-item-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.carrito-item-imagen .placeholder-imagen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #666;
    font-weight: 600;
    font-size: 24px;
}

/* Ajustar grid para imágenes más grandes */
.carrito-item {
    grid-template-columns: 100px 2fr 1fr auto;
    gap: 25px;
}

.carrito-item {
    display: grid;
    grid-template-columns: 120px 1.8fr 1.2fr auto; /* ← MÁS ESPACIO */
    gap: 35px; /* ← MÁS SEPARACIÓN ENTRE COLUMNAS */
    padding: 30px 15px; /* ← PADDING A LOS LADOS DE CADA ITEM */
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

/* ESPACIO ESPECÍFICO ENTRE LA COLUMNA DE CANTIDAD Y ELIMINAR */
.carrito-item-cantidad {
    padding: 0 20px; /* ← ESPACIO INTERNO */
    margin-right: 20px; /* ← MARGEN A LA DERECHA */
}

/* MÁS ESPACIO AL BOTÓN ELIMINAR */
.carrito-item-acciones {
    padding-left: 30px; /* ← ESPACIO A LA IZQUIERDA DEL BOTÓN */
    min-width: 130px; /* ← ANCHO MÍNIMO PARA ELIMINAR */
}

/* Responsive con imágenes */
@media (max-width: 992px) {
    .carrito-item {
        grid-template-columns: 80px 1fr;
        gap: 20px;
    }
    
    .carrito-item-imagen {
        width: 80px;
        height: 80px;
    }
    
    .carrito-item-imagen .placeholder-imagen {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .carrito-item {
        grid-template-columns: 70px 1fr;
        gap: 15px;
    }
    
    .carrito-item-imagen {
        width: 70px;
        height: 70px;
    }
    
    .carrito-item-imagen img {
        padding: 8px;
    }
}

/* ========================== */
/* ADMIN COMPLETO - CON PEDIDOS */
/* ========================== */

.admin-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.admin-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.admin-container h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 5px;
    font-weight: 700;
}

.admin-welcome {
    color: #666;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* ESTADÍSTICAS */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-color: #ff6b6b;
}

.stat-icon {
    font-size: 28px;
    background: #f8f9fa;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info h3 {
    color: #333;
    font-size: 24px;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.stat-info p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* MENSAJES */
.admin-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 15px;
    border-left: 4px solid;
}

.admin-message.success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.admin-message.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.admin-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* SECCIONES */
.admin-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.admin-section h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* TABLAS */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 800px;
}

.admin-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.admin-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f8f9fa;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: #fafafa;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* INDICADORES DE STOCK */
.stock-indicator {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

.stock-indicator.high {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.stock-indicator.good {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.stock-indicator.medium {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.stock-indicator.low {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.stock-indicator.out {
    background: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
}

/* FORMULARIO AGREGAR PRODUCTO */
.product-form {
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff6b6b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-submit {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #ff6b6b;
    transform: translateY(-2px);
}

/* FORMULARIO DE STOCK EN TABLA */
.stock-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0;
}

.stock-input {
    width: 100px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #333;
}

.stock-input:focus {
    border-color: #ff6b6b;
    outline: none;
}

.btn-update {
    background: #666;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
}

.btn-update:hover {
    background: #555;
}

/* PIE DE TABLA */
.table-footer {
    margin-top: 20px;
    text-align: center;
}

.legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #666;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.legend-item::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-item.high::before { background: #d4edda; }
.legend-item.good::before { background: #d1ecf1; }
.legend-item.medium::before { background: #fff3cd; }
.legend-item.low::before { background: #f8d7da; }
.legend-item.out::before { background: #e9ecef; }

/* ENLACES */
.admin-links {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.btn-back {
    background: #666;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-back:hover {
    background: #555;
}

.btn-logout {
    background: #ffeaea;
    color: #ff6b6b;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #ffdddd;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #ff6b6b;
    color: white;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .admin-container {
        padding: 0 15px;
    }
    
    .admin-section {
        padding: 25px;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-container {
        margin: 20px auto;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-back,
    .btn-logout {
        width: 100%;
        text-align: center;
    }
    
    .legend {
        justify-content: flex-start;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .admin-section {
        padding: 20px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .stock-form {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .stock-input {
        width: 100%;
    }
}

/* LOGOUT - Estilo básico SIN BOTONES */
.mensaje-container {
    max-width: 500px;
    margin: 80px auto;
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mensaje-container h1 {
    color: #1a1a1a;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.mensaje-container p {
    color: #555;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* ENLACES COMO TEXTO NORMAL (sin botones) */
.mensaje-enlaces {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.mensaje-enlaces a {

    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

/* Efecto hover simple */
.mensaje-enlaces a:hover {

    text-decoration: underline;
}

/* Separador opcional entre enlaces */
.mensaje-enlaces a:not(:last-child)::after {
    content: "|";
    color: #ccc;
    margin-left: 20px;
}

/* Footer */
.mensaje-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    font-size: 0.9rem;
    color: #666;
}

.mensaje-footer-links {
    margin-top: 10px;
}

.mensaje-footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 8px;
}

.mensaje-footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .mensaje-container {
        margin: 40px 15px;
        padding: 25px 15px;
    }
    
    .mensaje-enlaces {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    /* Quitar separador en móvil */
    .mensaje-enlaces a:not(:last-child)::after {
        display: none;
    }
}
/* ===== ESTILOS PARA EL FORMULARIO DE LOGIN ===== */

/* Contenedor principal */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Títulos */
.login-container h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.login-container h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #666;
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Campos de entrada */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background-color: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: #a0b3c6;
}

/* Placeholder estilizado (para los puntos) */
.input-field::placeholder {
    color: #a0a0a0;
    letter-spacing: 2px;
}

/* Línea divisoria */
.login-divider {
    height: 1px;
    background-color: #eaeaea;
    margin: 1.5rem 0;
    border: none;
}

/* === BOTÓN PERSONALIZADO CON TUS COLORES === */
/* Cambia esta variable al color principal de tu página */
:root {
    --mi-color-principal: #ff6b6b; 
    --mi-color-hover: #ff6b6b;     
}

.login-button {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: var(--mi-color-principal);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 1.5rem;
}

.login-button:hover {
    background-color: var(--mi-color-hover);
}

.login-button:active {
    transform: scale(0.98);
}

/* Enlace de registro */
.register-link {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
}

.register-link a {
    color: var(--mi-color-principal);
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
    }
    
    .login-container h1 {
        font-size: 1.75rem;
    }
}

/* ========================== */
/* BANNER DE COOKIES - RGPD */
/* ========================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    display: none;
    animation: slideUp 0.5s ease;
}

.cookie-banner.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: #4CAF50;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s;
}

.cookie-btn-accept {
    background: #4CAF50;
    color: white;
}

.cookie-btn-accept:hover {
    background: #45a049;
}

.cookie-btn-reject {
    background: #f44336;
    color: white;
}

.cookie-btn-reject:hover {
    background: #da190b;
}

.cookie-btn-settings {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-btn-settings:hover {
    background: rgba(255,255,255,0.1);
}

/* Modal de Configuración */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    color: #333;
}

.cookie-modal h2 {
    margin-top: 0;
    color: #333;
}

.cookie-option {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.cookie-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
}

.cookie-option input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cookie-option p {
    margin: 10px 0 0 30px;
    font-size: 0.9rem;
    color: #666;
}

.cookie-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-banner-buttons {
        justify-content: center;
    }
    
    .cookie-modal-content {
        padding: 20px;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}