@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* =========================================
   1. VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================= */
:root {
    /* PALETA DE MARCA */
    --primary: #FF6600;       /* Naranja Principal (Acción) */
    --primary-dark: #E65100;  /* Naranja Oscuro (Hover) */
    --secondary: #FFD700;     /* Amarillo (Detalles/Estrellas) */
    --dark: #1a1a1a;          /* Negro Profundo (Textos) */
    --text-gray: #666666;     /* Gris para descripciones */
    
    /* COLORES DE FONDO */
    --bg-body: #f5f5f5;       /* Gris suave fondo */
    --bg-card: #ffffff;       /* Blanco tarjetas */
    
    /* COLORES DE ESTADO */
    --danger: #d32f2f;        /* Rojo (Ofertas/Errores) */
    --success: #28a745;       /* Verde (Éxito) */
    --whatsapp: #25D366;      /* Verde WhatsApp */
    
    /* EFECTOS NEÓN */
    --neon-green: #39ff14;
    --neon-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
    
    /* SOMBRAS */
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);
    --radius: 8px; /* Bordes redondeados */
}

/* RESET Y BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-body);
    color: var(--dark);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    font-size: 14px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========================================
   2. HEADER Y NAVEGACIÓN
   ========================================= */
header {
    background-color: var(--bg-card);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header::before {
    content: ''; display: block; height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    width: 100%;
}

.header-container {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; max-width: 1400px; margin: 0 auto;
}

header .logo {
    font-size: 1.8em; font-weight: 800; color: var(--dark);
    text-transform: uppercase; letter-spacing: 1px;
}
header .logo span { color: var(--primary); }

/* Navegación */
header nav { display: flex; gap: 30px; }

header nav a {
    font-weight: 600; font-size: 13px; text-transform: uppercase;
    color: var(--dark); position: relative; padding: 5px 0;
}

header nav a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: 0; left: 0; background-color: var(--primary);
    transition: width 0.3s;
}
header nav a:hover { color: var(--primary); }
header nav a:hover::after { width: 100%; }

/* Botón Menú Móvil */
.menu-toggle {
    display: none; font-size: 24px; background: none; border: none;
    cursor: pointer; color: var(--dark);
}

/* --- Barra Superior (Top Bar) --- */
.top-bar {
    background-color: #111; color: white; padding: 8px 0;
    font-size: 0.85rem; border-bottom: 1px solid #333;
}

.top-bar-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}

.social-icons span { margin-right: 10px; color: #ccc; font-weight: 500; }

.top-bar a {
    color: white; margin-left: 15px; transition: color 0.3s;
}
.top-bar a:hover { color: var(--primary); }

/* --- Buscador --- */
.search-bar-container {
    position: relative; display: flex; align-items: center; margin-left: 20px;
}

#input-busqueda {
    padding: 12px 45px 12px 20px; width: 280px; border-radius: 50px;
    border: 1px solid #e0e0e0; background-color: #f8f9fa;
    font-size: 14px; color: #555; outline: none; transition: all 0.3s;
}
#input-busqueda:focus { background-color: #fff; border-color: #ccc; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

#btn-buscar {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; font-size: 16px; color: #888;
}
#btn-buscar:hover { color: var(--primary); }

/* =========================================
   3. SECCIÓN HERO Y PROMOS
   ========================================= */
main { padding: 40px 5%; max-width: 1400px; margin: 0 auto; }

#hero {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url("../imagenes por categoria/IMAGENES/PORTADA_TOTALISSHOP.png");
    aspect-ratio: 2037 / 754; width: 100%; background-size: cover; background-position: center;
    color: white; display: flex; flex-direction: column; justify-content: center; align-items: center;
    border-radius: var(--radius); margin-bottom: 50px; box-shadow: var(--shadow-hover);
}
#hero h1 { font-size: 3.5em; margin-bottom: 15px; text-shadow: 2px 2px 10px rgba(0,0,0,0.7); font-weight: 700; }
#hero p { font-size: 1.4em; font-weight: 300; }

/* Carrusel Promociones */
#promo-carousel-section { max-width: 1200px; margin: 40px auto; padding: 0 15px; }
.promo-swiper { border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

.promo-banner {
    padding: 40px 20px; text-align: center; min-height: 400px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.promo-banner.dark-theme { background-color: #1a1a1a; color: white; border: 2px solid #333; }
.promo-banner.orange-theme { background: linear-gradient(135deg, var(--primary), #ff8c00); color: white; }

.promo-title { color: var(--secondary); font-size: 1.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 30px; }
.promo-banner.orange-theme .promo-title { color: white; }

/* Grid VS (Precios Promo) */
.promo-content-grid { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; max-width: 800px; }
.price-box { border-radius: 15px; padding: 25px; width: 100%; max-width: 320px; position: relative; }
.price-box.basic { border: 2px solid var(--secondary); background: transparent; }
.price-box.premium { background-color: var(--primary); color: white; border: 2px solid var(--primary); transform: scale(1.05); box-shadow: 0 0 20px rgba(255,102,0,0.4); }

.price-display { font-size: 2.5rem; font-weight: 800; margin: 10px 0; }
.save-badge { background-color: var(--secondary); color: black; font-weight: bold; padding: 5px 10px; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); border-radius: 5px; font-size: 0.8rem; }
.vs-badge { font-size: 1.5rem; font-weight: 900; color: var(--primary); margin: 10px 0; }

/* Botones Swiper */
.swiper-button-next, .swiper-button-prev {
    background-color: rgba(0,0,0,0.5); width: 50px; height: 50px; border-radius: 50%;
    color: var(--secondary) !important; z-index: 100; transition: all 0.3s;
}
.swiper-button-next:hover, .swiper-button-prev:hover { background-color: rgba(255,102,0,0.9); transform: scale(1.1); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 20px; font-weight: 900; }
.swiper-button-prev { left: 20px; } .swiper-button-next { right: 20px; }

/* =========================================
   4. TARJETAS DE PRODUCTO (GRID)
   ========================================= */
#product-container h2, #best-sellers h2, .form-page h2, #categorias h2 {
    text-align: center; font-size: 2em; font-weight: 700; margin-bottom: 40px; color: var(--dark); position: relative;
}
#product-container h2::after, #best-sellers h2::after {
    content: ''; display: block; width: 60px; height: 3px; background-color: var(--primary); margin: 15px auto 0;
}

.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px;
}

.product-card {
    background-color: var(--bg-card); border-radius: var(--radius); overflow: hidden;
    transition: all 0.4s ease; position: relative; box-shadow: var(--shadow-soft);
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-8px); }

.product-card a.product-link { display: block; overflow: hidden; height: 280px; }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover img { transform: scale(1.1); }

.product-details { padding: 20px; text-align: center; }
.product-details h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; color: var(--dark); height: 44px; overflow: hidden; line-height: 1.4; }
.product-details p { display: none; }

/* Precios en tarjeta pequeña */
.product-card .price { justify-content: center; margin-top: 10px; display: flex; gap: 10px; align-items: baseline; color: var(--primary); font-weight: 700; font-size: 1.2em; }

.product-card .btn-detail {
    display: inline-block; width: 100%; background-color: transparent; color: var(--dark);
    border: 2px solid var(--dark); padding: 10px 0; border-radius: 4px; font-size: 13px;
    font-weight: 700; text-transform: uppercase; transition: all 0.3s; margin-top: 10px;
}
.product-card:hover .btn-detail { background-color: var(--primary); border-color: var(--primary); color: white; }

.badge {
    position: absolute; top: 15px; left: 15px; background-color: var(--secondary);
    color: var(--dark); padding: 5px 12px; font-size: 11px; font-weight: 800; border-radius: 20px; z-index: 10;
}

/* =========================================
   5. PÁGINA DE DETALLE (PRODUCTO.HTML) - MEJORADO
   ========================================= */
.product-info-grid {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; padding: 40px;
    background: #ffffff; border-radius: 12px; box-shadow: var(--shadow-soft);
    margin-top: 20px; align-items: start;
}

/* Galería */
.product-gallery { display: flex; flex-direction: column; gap: 15px; width: 100%; align-items: center; }
#main-product-image {
    width: 100%; height: auto; max-height: 550px; object-fit: contain;
    border-radius: 10px; border: 1px solid #eee; background-color: #fff;
    transition: transform 0.3s ease;
}
#main-product-image:hover { transform: scale(1.02); }

.thumbnail-gallery { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; }
.thumb-img {
    width: 80px; height: 80px; object-fit: cover; border-radius: 8px; cursor: pointer;
    border: 2px solid #eee; transition: all 0.3s ease; opacity: 0.7; background-color: #fff;
}
.thumb-img:hover, .thumb-img.active { border-color: var(--primary); opacity: 1; transform: translateY(-3px); }

/* Detalles Texto */
.product-details-content h1 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 10px; color: var(--dark); }
.category-link { color: #888; font-size: 0.9rem; margin-bottom: 20px; text-transform: uppercase; font-weight: 600; }
.category-link a { color: var(--primary); }
.product-description { font-size: 1rem; line-height: 1.7; color: #555; margin-bottom: 25px; white-space: pre-line; }

hr { border: 0; height: 1px; background-color: #e0e0e0; margin: 30px 0; }

/* Precios */
.price-section { display: flex; align-items: baseline; gap: 15px; margin-bottom: 20px; }
.old-price { font-size: 1.4rem; text-decoration: line-through; color: #999; font-weight: 400; }
.current-price { font-size: 3rem; font-weight: 800; color: var(--danger); line-height: 1; }

/* Stock */
.stock-indicator {
    background-color: #fff3e0; color: var(--primary-dark); padding: 12px 20px;
    border-radius: 8px; margin-bottom: 30px; font-weight: 600; display: inline-flex;
    align-items: center; gap: 10px; border: 1px solid #ffe0b2;
}

/* Botones Acción */
.action-buttons { display: flex; flex-direction: column; gap: 15px; width: 100%; }
.btn-add-to-cart, .btn-whatsapp {
    display: flex; justify-content: center; align-items: center; gap: 12px;
    padding: 18px; border-radius: 12px; font-size: 1.1rem; font-weight: 700;
    text-transform: uppercase; text-decoration: none; border: none; cursor: pointer; transition: all 0.3s ease;
}

.btn-add-to-cart { background-color: var(--dark); color: white; box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.btn-add-to-cart:hover { transform: translateY(-3px); background-color: #333; }

.btn-whatsapp {
    background: linear-gradient(to right, #25D366, #1ebc57); color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); animation: pulse-green 2s infinite;
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6); background: linear-gradient(to right, #1ebc57, #189d49); }

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   6. CATEGORÍAS (BOTONES)
   ========================================= */
#categorias { text-align: center; padding: 60px 0; background-color: var(--bg-card); border-radius: var(--radius); margin: 50px 0; box-shadow: var(--shadow-soft); }
.category-links { display: flex; justify-content: center; align-items: center; gap: 15px; flex-wrap: wrap; }

.category-links a {
    text-decoration: none; background-color: #f0f0f0; color: var(--dark); padding: 12px 35px;
    border-radius: 30px; font-weight: 600; font-size: 13px; text-transform: uppercase;
    transition: all 0.3s;
}
.category-links a:hover {
    background-color: var(--primary); color: white; transform: translateY(-4px); box-shadow: 0 8px 20px rgba(255,102,0,0.3);
}

/* Galería Promo Box (Home) */
.gallery-container { display: flex; gap: 20px; margin-bottom: 50px; }
.promo-box { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.promo-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.promo-box:hover img { transform: scale(1.05); }
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; text-align: left;
}
.overlay h3, .overlay h4 { color: white; margin: 0; text-transform: uppercase; font-weight: 700; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.promo-box.large-box { width: 45%; } .small-box-group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; flex-grow: 1; }

/* =========================================
   7. FORMULARIOS, BLOG Y FOOTER
   ========================================= */
.form-page { display: flex; justify-content: center; padding: 60px 0; }
#register-form, #login-form, #contact-form { background-color: var(--bg-card); padding: 50px; border-radius: var(--radius); box-shadow: var(--shadow-hover); width: 100%; max-width: 480px; margin: 0 auto; }

input, textarea { width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; background-color: #f9f9f9; }
button[type="submit"] { width: 100%; background-color: var(--primary); color: white; padding: 16px; border: none; border-radius: 4px; font-weight: 700; cursor: pointer; text-transform: uppercase; transition: 0.3s; }
button[type="submit"]:hover { background-color: var(--primary-dark); transform: translateY(-2px); }

/* Blog */
.blog-card { background-color: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: 0.4s ease; border-bottom: 3px solid transparent; cursor: pointer; }
.blog-card:hover { transform: translateY(-10px); border-bottom-color: var(--primary); }
.blog-image-wrapper { height: 220px; overflow: hidden; position: relative; }
.blog-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.blog-card:hover img { transform: scale(1.15); }
.blog-content { padding: 25px; }
.blog-date { position: absolute; top: 20px; left: 20px; background-color: var(--primary); color: white; padding: 8px 15px; border-radius: 4px; font-weight: 700; font-size: 0.85em; }

/* Testimonios */
.testimonial-section { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 80px 20px; color: white; }
.testimonial-card { background: white; border-radius: 20px; padding: 40px 30px; box-shadow: 0 15px 30px rgba(0,0,0,0.15); color: #555; }
.card-header { display: flex; align-items: center; margin-bottom: 25px; border-bottom: 1px solid #f0f0f0; padding-bottom: 15px; }
.profile-img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin-right: 20px; border: 3px solid var(--primary); }
.star-rating { color: var(--secondary); }

/* Footer */
footer { background-color: var(--dark); color: #bbb; padding: 60px 5% 30px; margin-top: 80px; text-align: center; }

/* Botón Flotante */
.wsp-flotante { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: var(--whatsapp); color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 1000; transition: transform 0.3s; }
.wsp-flotante:hover { transform: scale(1.1); }

/* Ocultar elementos restringidos por defecto */
#add-to-cart-btn, a[href="carrito.html"], a[href="registro.html"], a[href="login.html"], #auth-link { display: none !important; }
#no-products-message { text-align: center; padding: 40px; background-color: #fff3cd; color: #856404; display: none; margin: 20px auto; }

/* =========================================
   8. RESPONSIVE (MÓVIL)
   ========================================= */
@media (max-width: 900px) {
    .header-container { flex-wrap: wrap; }
    .menu-toggle { display: block; margin-left: auto; }
    header nav { display: none; width: 100%; flex-direction: column; margin-top: 15px; background: #f9f9f9; }
    header nav.is-open { display: flex; }
    header nav a { padding: 15px; border-bottom: 1px solid #eee; }
    
    .gallery-container { flex-direction: column; }
    .promo-box.large-box { width: 100%; height: 250px; }
    .small-box-group { grid-template-columns: 1fr; }
    
    .product-info-grid { grid-template-columns: 1fr; padding: 20px; gap: 30px; }
    #main-product-image { max-height: 400px; }
    .current-price { font-size: 2.2rem; }
    
    .top-bar-container { justify-content: center; gap: 15px; }
    .top-contact, .social-icons span { display: none; }
    .search-bar-container { order: 3; width: 100%; margin: 15px 0; justify-content: center; }
    #input-busqueda { width: 100%; }
    
    .promo-content-grid { flex-direction: column; }
    .swiper-button-next, .swiper-button-prev { width: 35px; height: 35px; top: auto; bottom: 10px; }
    .vs-badge { position: relative; left: auto; top: auto; transform: none; margin: 10px 0; }
}

/* =========================================
   SECCIÓN BLOG (GALERÍA RESPONSIVA)
   ========================================= */

#blog-section {
    padding: 60px 5%;
    background-color: #ffffff;
}

/* LA REJILLA MÁGICA (GRID) */
.blog-grid {
    display: grid;
    /* Esto hace que sea responsivo automáticamente sin media queries */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Espacio entre tarjetas */
    max-width: 1200px;
    margin: 0 auto;
}

/* LA TARJETA */
.blog-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden; /* Para que la imagen no se salga de las esquinas */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Sombra suave */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column; /* Para alinear el contenido verticalmente */
}

/* Efecto al pasar el mouse (Hover) */
.blog-card:hover {
    transform: translateY(-8px); /* Sube un poquito */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); /* Sombra más fuerte */
    border-color: var(--primary); /* Borde naranja */
}

/* LA IMAGEN (Tamaño uniforme) */
.blog-image-wrapper {
    width: 100%;
    height: 220px; /* Altura fija para que todas se vean iguales */
    position: relative;
    overflow: hidden;
}

.blog-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para llenar el hueco sin deformar */
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image-wrapper img {
    transform: scale(1.1); /* Zoom suave a la foto */
}

/* LA FECHA (Etiqueta flotante) */
.blog-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary); /* Naranja */
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

/* EL CONTENIDO */
.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Ocupa el espacio restante para alinear el botón abajo */
}

.blog-category {
    color: #999;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}

.blog-content h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.blog-excerpt {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    margin-top: auto; /* Empuja el botón al final de la tarjeta */
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more i {
    transition: transform 0.3s;
}

.blog-card:hover .read-more i {
    transform: translateX(5px); /* Flechita se mueve */
}

/* =========================================
   DISEÑO ESPECÍFICO DEL BLOG (MEJORADO)
   ========================================= */
.blog-hero {
    /* 1. Capa oscura semitransparente (0.5) sobre la imagen */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                /* 👇 ASEGÚRATE QUE ESTA RUTA SEA CORRECTA 👇 */
                url('../imagenes por categoria/IMAGENES/PORTADA_TOTALISSHOP.png');
    
    /* 2. Configuración de la imagen de fondo */
    background-size: cover;      /* La imagen cubre todo el espacio */
    background-position: center; /* Se centra la imagen */
    background-attachment: fixed; /* EFECTO PARALLAX (Opcional: la imagen se queda quieta al hacer scroll) */
    
    /* 3. Estilos del contenedor */
    color: white;
    text-align: center;
    padding: 100px 20px; /* Más altura para que se luzca la foto */
    margin-bottom: 50px;
    border-radius: 0 0 20px 20px; /* Bordes redondeados abajo */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Sombra inferior para dar profundidad */
}

.blog-hero h1 {
    font-size: 3.5em;
    color: #FF6600; /* Tu naranja corporativo */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 800;
    /* Sombra para que el texto resalte sobre la foto */
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.blog-hero p {
    color: #f0f0f0; /* Blanco hueso */
    max-width: 700px;
    margin: 0 auto 30px auto; /* Centrado y con espacio abajo para el buscador */
    font-size: 1.2em;
    font-weight: 500;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

/* =========================================
   DISEÑO PREMIUM PARA LECTURA DE BLOG
   ========================================= */

/* Contenedor Principal de Lectura */
.blog-post-container {
    max-width: 850px; /* Ancho ideal para lectura sin cansar la vista */
    margin: 40px auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

/* Cabecera del Artículo */
.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-header .badge {
    background-color: var(--primary); /* Tu naranja #FF6600 */
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.blog-header h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 800;
}

.post-meta {
    color: #888;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Imagen Destacada */
.post-featured-image {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cuerpo del Contenido */
.post-content {
    font-size: 1.15rem;
    line-height: 1.8; /* Espaciado para lectura cómoda */
    color: #333;
}

.post-content p {
    margin-bottom: 25px;
}

.post-content h2, .post-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--dark);
}

/* Tarjeta de Producto Recomendado (Spotlight) */
.product-spotlight {
    background: linear-gradient(135deg, #fffcf9 0%, #fff4e6 100%);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 35px;
    margin-top: 60px;
    position: relative;
}

.product-spotlight h3 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--primary-dark);
}

.spotlight-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 102, 0, 0.1);
}

.spotlight-card img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
}

.spotlight-info h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.spotlight-info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

.spotlight-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.spotlight-action .price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
}

.btn-spotlight {
    background-color: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-spotlight:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

/* Responsivo */
@media (max-width: 768px) {
    .blog-post-container { padding: 25px; margin: 20px; }
    .blog-header h1 { font-size: 2rem; }
    .post-featured-image { height: 250px; }
    .spotlight-card { flex-direction: column; text-align: center; }
    .spotlight-action { flex-direction: column; gap: 15px; }
}
