/* --- DISEÑO BASE Y VARIABLES --- */
:root {
  /* Colores de Marca Tooelrato */
  --color-primary: #C4D300; /* Verde Neón */
  --color-primary-hover: #A8B500;
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-bg-light: #F5F5F5;
  --color-text-dark: #333333;
  --color-text-light: #666666;
  --color-price-accent: #E53935; /* Rojo para precios o descuentos */
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;
  
  --transition-speed: 0.3s;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.18);
  --border-radius: 8px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all var(--transition-speed);
}

input {
  font-family: inherit;
}

/* --- UTILIDADES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--color-primary);
  color: var(--color-black);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  text-align: center;
  transition: background-color var(--transition-speed), transform 0.2s;
}

.btn:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}


/* --- AUTH USER UI --- */
.action-item.authenticated {
    position: relative;
    cursor: pointer;
}

.user-avatar {
    border: 2px solid var(--color-primary);
    transition: transform 0.2s;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 8px 0;
    min-width: 180px;
    display: none; /* Oculto por defecto */
    z-index: 1000;
    margin-top: 10px;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Solo se muestra cuando tiene la clase .show (controlada por JS) */
.user-dropdown.show {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text-dark);
    font-size: 0.9rem;
    font-family: var(--font-heading);
    transition: background 0.2s;
    text-align: left;
}

.user-dropdown a:hover {
    background-color: var(--color-bg-light);
    color: var(--color-primary-hover);
}

.user-dropdown a i {
    margin-right: 10px;
    width: 16px;
    color: var(--color-text-light);
}

.top-bar {
  background-color: var(--color-primary);
  color: var(--color-black);
  text-align: center;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-header {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px;
  object-fit: contain;
}



.search-bar {
  flex-grow: 1;
  max-width: 500px;
  display: flex;
  align-items: center;
  background-color: var(--color-white);
  border-radius: 24px;
  overflow: hidden;
  padding: 2px 2px 2px 15px;
}

.search-bar input {
  flex-grow: 1;
  border: none;
  outline: none;
  padding: 10px;
  font-size: 0.95rem;
  color: var(--color-text-dark);
}

.search-bar button {
  background-color: var(--color-primary);
  color: var(--color-black);
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
}

.search-bar button:hover {
  background-color: var(--color-primary-hover);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 500;
}

.action-item i {
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.2s;
}

.action-item:hover i {
  transform: scale(1.1);
}

/* Secondary Navigation */
.nav-categories {
  background-color: #111111;
  border-top: 1px solid #333;
}

.nav-categories ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 12px 0;
}

.nav-categories a {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-categories a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-speed);
}

.nav-categories a:hover::after {
  width: 100%;
}


/* --- PRODUCTS GRID --- */
.products-section {
  padding: 40px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60%;
  height: 4px;
  background-color: var(--color-primary);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: 15px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-speed), transform var(--transition-speed);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.discount-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--color-price-accent);
  color: var(--color-white);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 10;
}

.product-image {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 15px;
  transition: transform 0.3s;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-brand {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  font-family: var(--font-heading);
  margin-bottom: 15px;
  margin-top: auto;
}

.price-current {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-price-accent);
  display: block;
}

.price-old {
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-decoration: line-through;
}

.product-card .btn {
  width: 100%;
}

/* --- FOOTER --- */
.main-footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 60px 0 20px;
  margin-top: 60px;
  border-top: 5px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #CCCCCC;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #333;
  border-radius: 50%;
  color: var(--color-white);
  font-size: 1.2rem;
  transition: background-color var(--transition-speed);
}

.social-links a:hover {
  background-color: var(--color-primary);
  color: var(--color-black);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.85rem;
  color: #888;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  .search-bar {
    order: 3;
    max-width: 100%;
    margin-top: 10px;
  }
  .nav-categories ul {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 12px 20px;
  }
}

/* ==========================================================================
   CART OFF-CANVAS
   ========================================================================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}
.cart-offcanvas {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: white;
    z-index: 1001;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}
.cart-offcanvas.active {
    right: 0;
}
.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}
.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eee;
}
.cart-item-info {
    flex: 1;
}
.cart-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.cart-item-price {
    color: #6366f1;
    font-weight: 700;
}
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.qty-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.qty-btn:hover {
    background: #f5f5f5;
}
.cart-item-remove {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: auto;
}
.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.cart-total-line {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.checkout-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* ==========================================================================
   CHECKOUT MODAL
   ========================================================================== */
.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.checkout-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.checkout-modal-content {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.checkout-modal-overlay.active .checkout-modal-content {
    transform: translateY(0);
}
.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
}
.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}
.modal-body {
    padding: 20px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}
.toast.show {
    transform: translateX(0);
    opacity: 1;
}
.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }

/* Empty state */
.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}
.empty-cart i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

/* ==========================================================================
   SHOP LAYOUT (TIENDA.HTML)
   ========================================================================== */
.shop-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 992px) {
    .shop-layout {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* SIDEBAR FILTERS */
.sidebar-filters {
    background: var(--color-white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    flex: 0 0 250px; /* Ancho fijo en desktop */
}

.sidebar-title {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar para la lista de categorias */
.category-list::-webkit-scrollbar {
    width: 6px;
}
.category-list::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}
.category-list::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}
.category-list::-webkit-scrollbar-thumb:hover {
    background: #aaa; 
}

.category-item {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
    width: 100%;
}

.category-item:hover, .category-item.active {
    background-color: var(--color-primary);
    color: var(--color-black);
    font-weight: 600;
}

.category-item span.count {
    float: right;
    font-size: 0.8rem;
    background: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 10px;
}

/* SHOP PRODUCTS AREA */
.shop-products {
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background-color: var(--color-white);
    border: 1px solid #ddd;
    color: var(--color-text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.page-btn.active {
    background-color: var(--color-primary);
    color: var(--color-black);
    border-color: var(--color-primary);
}

.page-btn:disabled {
    background-color: #f9f9f9;
    color: #ccc;
    cursor: not-allowed;
    border-color: #eee;
}

.page-dots {
    color: #999;
    padding: 0 5px;
}

/* ==========================================================================
   AGE GATE (Solo index.html)
   ========================================================================== */
.age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background-image: url('assets/age-gate-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.age-gate-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
}

.age-gate-card {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid rgba(200, 255, 0, 0.2);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 60px rgba(200, 255, 0, 0.1), 0 20px 60px rgba(0,0,0,0.8);
    animation: ageGateIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes ageGateIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.age-gate-logo {
    margin-bottom: 20px;
}


.age-gate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-black);
    font-size: 1.3rem;
    font-weight: 900;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-family: var(--font-heading);
    box-shadow: 0 0 20px rgba(200,255,0,0.4);
}

.age-gate-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-white);
    margin: 0 0 12px;
}

.age-gate-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 12px;
    font-family: var(--font-heading);
}

.age-gate-sub {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin: 0 0 30px;
}

.age-gate-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.age-btn {
    font-family: var(--font-heading), 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 14px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    min-width: 130px;
}

.age-btn-yes {
    background-color: var(--color-primary);
    color: var(--color-black);
}

.age-btn-yes:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200,255,0,0.3);
}

.age-btn-no {
    background-color: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.2);
}

.age-btn-no:hover {
    background-color: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.4);
}

.age-gate-legal {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.5;
    margin: 0;
}

.age-denied {
    animation: ageGateIn 0.3s ease forwards;
}

/* ==========================================================================
   HERO CAROUSEL
   ========================================================================== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: #111;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 1;
}

.carousel-slide.leaving {
    opacity: 0;
    transform: scale(0.97);
    z-index: 2;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.15) 100%
    );
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px;
    max-width: 600px;
    animation: slideInLeft 0.7s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.carousel-slide.active .carousel-content {
    animation: slideInLeft 0.7s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.carousel-tag {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-black);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 14px;
    width: fit-content;
    letter-spacing: 1px;
}

.carousel-content h2 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.carousel-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    margin: 0 0 24px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* NAVIGATION BUTTONS */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: var(--color-black);
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 18px; }
.carousel-next { right: 18px; }

/* DOTS */
.carousel-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--color-primary);
    width: 28px;
    border-radius: 5px;
}

/* PROGRESS BAR (optional nice touch) */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--color-primary);
    z-index: 10;
    animation: progressBar 5s linear infinite;
    transform-origin: left;
}

@keyframes progressBar {
    from { width: 0%; }
    to   { width: 100%; }
}

@media (max-width: 768px) {
    .hero-carousel { height: 320px; }
    .carousel-content { padding: 25px 25px; }
    .carousel-btn { width: 36px; height: 36px; font-size: 0.8rem; }
}

/* ==========================================================================
   ADVERTENCIA MINSAL (Flotante - derecha)
   ========================================================================== */
.minsal-warning {
    position: fixed;
    right: 16px;
    top: 110px;
    z-index: 9000;
    width: 170px;
    background: #000;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.1);
}

.minsal-body {
    padding: 18px 12px 14px;
}

.minsal-title {
    font-family: var(--font-heading), 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0 0 12px;
    line-height: 1;
    color: #fff;
    word-break: break-word;
    white-space: normal;
}

.minsal-text {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.4px;
    margin: 0 0 14px;
    text-transform: uppercase;
    color: #fff;
}

.minsal-footer {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 8px 4px 0;
    margin-bottom: 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    text-transform: uppercase;
}

/* Franja bandera chilena */
.minsal-flag {
    display: flex;
    height: 7px;
    margin-top: 8px;
}
.minsal-flag-blue  { flex: 1; background: #0032A0; }
.minsal-flag-white { flex: 1; background: #fff; }
.minsal-flag-red   { flex: 1; background: #D52B1E; }

.minsal-warning.hidden {
    display: none;
}

@media (max-width: 992px) {
    .minsal-warning {
        width: 110px;
        right: 10px;
        top: auto;
        bottom: 80px;
        border-radius: 10px;
    }
    .minsal-title { font-size: 0.9rem; }
    .minsal-text  { font-size: 0.58rem; }
    .minsal-footer { font-size: 0.52rem; }
}
