/* Variables de colores - Tema Claro */
:root {
    --rosa-pastel: #FFB6C1;
    --rosa-claro: #FFC0CB;
    --dorado: #FFD700;
    --dorado-claro: #FFF8DC;
    --rojo-pastel: #FF6B6B;
    --rojo-claro: #FFB3B3;
    --verde-claro: #B8E6B8;
    --verde-pastel: #90EE90;
    --blanco: #FFFFFF;
    --gris-claro: #F8F9FA;
    --gris-oscuro: #343A40;
    --sombra: rgba(0, 0, 0, 0.1);
    --texto-principal: #343A40;
    --texto-secundario: #666;
    --fondo-principal: #FFFFFF;
    --fondo-secundario: #F8F9FA;
    --borde: #eee;
}

/* Variables de colores - Tema Oscuro */
[data-theme="dark"] {
    --rosa-pastel: #FF8FA3;
    --rosa-claro: #FF6B9D;
    --dorado: #FFD700;
    --dorado-claro: #2A2A1E;
    --rojo-pastel: #FF5252;
    --rojo-claro: #FF6B6B;
    --verde-claro: #4CAF50;
    --verde-pastel: #66BB6A;
    --blanco: #1A1A1A;
    --gris-claro: #2D2D2D;
    --gris-oscuro: #cccaca;
    --sombra: rgba(0, 0, 0, 0.3);
    --texto-principal: #ffffff;
    --texto-secundario: #949494;
    --fondo-principal: #1A1A1A;
    --fondo-secundario: #2D2D2D;
    --borde: #404040;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--texto-principal);
    background-color: var(--fondo-principal);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header y Navegación */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px var(--sombra);
    transition: background 0.3s ease;
}

[data-theme="dark"] .header {
    background: rgba(26, 26, 26, 0.95);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--texto-principal);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--rosa-claro);
    color: var(--fondo-principal);
    transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle {
    color: var(--dorado);
}

.nav-brand {
    display: flex;
    align-items: center;
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--rojo-pastel);
}

.nav-brand i {
    font-size: 2rem;
    margin-right: 0.5rem;
    color: var(--dorado);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--texto-principal);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--rojo-pastel);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--rojo-pastel);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--rosa-pastel) 0%, var(--dorado-claro) 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23FFD700" opacity="0.3"/><circle cx="80" cy="40" r="1.5" fill="%23FFB6C1" opacity="0.3"/><circle cx="40" cy="80" r="1" fill="%23FF6B6B" opacity="0.3"/></svg>');
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    flex: 1;
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: var(--rojo-pastel);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.2rem;
    color: var(--gris-oscuro);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cookie-decoration {
    width: 300px;
    height: 300px;
    background: var(--dorado);
    border-radius: 50%;
    position: relative;
    animation: rotate 20s linear infinite;
}

.cookie-decoration::before {
    content: '🍪';
    font-size: 8rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Botones */
.btn-primary {
    background: linear-gradient(45deg, var(--rojo-pastel), var(--dorado));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: var(--rosa-claro);
    color: var(--gris-oscuro);
    border: 2px solid var(--rosa-pastel);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--rosa-pastel);
    color: white;
    transform: translateY(-2px);
}

/* Botón de agregar al carrito */
.btn-add-cart {
    background: linear-gradient(45deg, var(--verde-claro), var(--verde-pastel));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 1rem;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(45deg, var(--verde-pastel), var(--verde-claro));
}

.btn-add-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-add-cart i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.btn-add-cart:hover i {
    transform: scale(1.1);
}

/* Productos */
.products {
  padding: 80px 0;
  background: var(--fondo-secundario);
}
.products h2 {
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-size: 3rem;
  color: var(--rojo-pastel);
  margin-bottom: 1rem;
}
.section-subtitle {
  text-align: center;
  color: var(--gris-oscuro);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.product-card {
  background: var(--fondo-principal);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px var(--sombra);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--borde);
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rosa-pastel), var(--dorado), var(--rojo-pastel));
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

/* Círculo y foto: una sola fuente de verdad */
.product-image{
  width: clamp(110px, 7vw, 140px);
  height: clamp(110px, 7vw, 140px);
  border-radius: 50%;
  overflow: hidden;
  display:flex; align-items:center; justify-content:center;
  margin: 0 auto 1.5rem;
  background: var(--dorado-claro);
  border: 3px solid var(--rojo-pastel);
  transition: box-shadow .25s ease;
}
.product-image > img{
  display:block;
  width:100%;
  height:100%;
  object-fit: cover;
  transition: transform .25s ease;
}

/* Títulos y textos */
.product-card h3 { color: var(--texto-principal); margin-bottom: 1rem; font-size: 1.3rem; }
.product-card p  { color: var(--texto-secundario); margin-bottom: 1.5rem; line-height: 1.6; }
.product-price   { font-size: 1.5rem; font-weight: 700; color: var(--rojo-pastel); margin-bottom: 1rem; display:flex; gap:.5rem; flex-wrap:wrap; justify-content:center; }

/* Mobile: como te gustaba */
@media (max-width: 480px){
  .product-image{ width:140px; height:140px; }
}

/* Desktop: aleja un poco la foto */
@media (min-width: 1025px){
  .product-image > img{ transform: scale(0.88); }             /* ajusta 0.85–0.90 a gusto */
  .product-card:hover .product-image > img{ transform: scale(0.95); }
}

/* Loading de productos */
.loading-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--texto-secundario);
    font-size: 1.1rem;
    min-height: 200px;
}

.loading-products i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--rojo-pastel);
    animation: spin 1s linear infinite;
}

.loading-products p {
    margin: 0;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Carrito Flotante */
.cart-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--fondo-principal);
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--borde);
}

.cart-floating:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    color: var(--rojo-pastel);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--dorado);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.cart-total {
    font-weight: 600;
    color: var(--texto-principal);
}

/* Modal del Carrito */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-modal.active {
    display: flex !important;
    opacity: 1;
}

.cart-modal-content {
    background: var(--fondo-principal);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: grid;
    grid-template-rows: auto 1fr auto;  /* header / body (scroll) / footer */
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
    border: 1px solid var(--borde);
}

.cart-modal.active .cart-modal-content {
    transform: scale(1);
}

.cart-modal-header {
    background: linear-gradient(45deg, var(--rosa-pastel), var(--dorado));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cart-modal-body {
    overflow-y: auto;
    padding: 12px 20px 0;
    scrollbar-gutter: stable;   
    overscroll-behavior: contain;
}

.cart-modal-footer {
    padding: 16px 20px 20px;
    background: #fff;
    box-shadow: 0 -8px 16px rgba(0,0,0,.06);  
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid var(--borde);
    animation: slideIn 0.3s ease;
    transition: all 0.3s ease;
    position: relative;
}

.cart-item:hover {
    background-color: var(--fondo-secundario);
}

.cart-item.quantity-updated {
    background-color: var(--rosa-claro);
    transform: scale(1.02);
}

.cart-item.removing {
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    color: var(--texto-principal);
    margin-bottom: 5px;
    font-size: 1rem;
}

.cart-item-price {
    color: var(--rojo-pastel);
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 15px;
}

.btn-quantity {
    background: var(--rosa-claro);
    border: 2px solid var(--rosa-pastel);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
    color: var(--texto-principal);
    font-size: 0.8rem;
}

.btn-quantity:hover {
    background: var(--rosa-pastel);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-quantity:active {
    transform: scale(0.95);
}

.btn-quantity-minus {
    background: var(--rosa-claro);
    border-color: var(--rosa-pastel);
}

.btn-quantity-plus {
    background: var(--verde-claro);
    border-color: var(--verde-pastel);
}

.btn-quantity-plus:hover {
    background: var(--verde-pastel);
}

.cart-item-quantity {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
    padding: 4px 8px;
    background: var(--fondo-secundario);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.cart-item-quantity:hover {
    background: var(--borde);
    transform: scale(1.05);
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 2px solid var(--rosa-pastel);
    border-radius: 4px;
    padding: 2px;
    font-weight: 600;
    background: white;
}

.cart-item-subtotal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 80px;
    margin: 0 15px;
}

.subtotal-label {
    font-size: 0.8rem;
    color: var(--texto-secundario);
    margin-bottom: 2px;
}

.subtotal-amount {
    font-weight: 700;
    color: var(--rojo-pastel);
    font-size: 1rem;
}

.btn-remove {
    background: var(--rojo-claro);
    border: 2px solid var(--rojo-pastel);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 0.8rem;
}

.btn-remove:hover {
    background: var(--rojo-pastel);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-remove:active {
    transform: scale(0.95);
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--texto-secundario);
}

.cart-empty i {
    font-size: 4rem;
    color: var(--rosa-claro);
    margin-bottom: 20px;
}

.cart-empty p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.cart-summary {
    background: var(--fondo-secundario);
    padding: 20px;
    border-top: 1px solid var(--borde);
}

.cart-total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1rem;
}

.cart-total-line.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rojo-pastel);
    border-top: 2px solid var(--rosa-claro);
    padding-top: 10px;
    margin-top: 10px;
}

.cart-actions {
    padding: 20px;
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.cart-actions button {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cart-actions button:hover {
    transform: translateY(-2px);
}

/* Sección Nosotros */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dorado-claro) 0%, var(--rosa-claro) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--rojo-pastel);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--gris-oscuro);
}

.features {
    display: grid;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

.feature i {
    font-size: 1.5rem;
    color: var(--dorado);
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-decoration-2 {
    width: 250px;
    height: 250px;
    background: var(--rosa-pastel);
    border-radius: 50%;
    position: relative;
    animation: pulse 3s ease-in-out infinite;
}

.cookie-decoration-2::before {
    content: '🍪';
    font-size: 6rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Contacto */
.contact {
    padding: 48px 0;
    background: var(--fondo-secundario);
}

.contact h2 {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--rojo-pastel);
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--fondo-principal);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--sombra);
    border: 1px solid var(--borde);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--dorado);
    width: 40px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid var(--rosa-claro);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--fondo-principal);
    color: var(--texto-principal);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--rojo-pastel);
}

.contact-images-stack {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: -50px -170px 0 auto;
    height: 250px;
}

.contact-image-container {
    position: absolute;
    width: 100%;
    max-width: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 3px solid var(--rosa-pastel);
    cursor: pointer;
}

.image-layer-1 {
    transform: rotate(-35deg) translateY(-150px) translateX(-200px);
    z-index: 1;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.image-layer-2 {
    transform: rotate(0deg) translateY(-5px) translateX(0px);
    z-index: 2;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.image-layer-3 {
    transform: rotate(35deg) translateY(-150px) translateX(200px);
    z-index: 1;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.contact-image-container:hover {
    transform: translateY(-15px) scale(1.15) rotate(0deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    border-color: var(--dorado);
    z-index: 10;
}

/* Efectos específicos para cada capa */
.image-layer-1:hover {
    transform: translateY(-50px) scale(1.15) rotate(0deg) translateX(-250px);
    z-index: 10;
}

.image-layer-2:hover {
    transform: translateY(-15px) scale(1.15) rotate(0deg) translateX(0px);
    z-index: 10;
}

.image-layer-3:hover {
    transform: translateY(-50px) scale(1.15) rotate(0deg) translateX(250px);
    z-index: 10;
}

.contact-image {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.contact-image-container:hover .contact-image {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.1);
}

/* Efecto de brillo en el borde */
.contact-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(45deg, var(--rosa-pastel), var(--dorado), var(--rojo-pastel));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-image-container:hover::before {
    opacity: 1;
}

.contact-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    transform: translateY(100%) rotate(15deg);
    transition: all 0.3s ease;
}

.contact-image-container:hover .contact-image-overlay {
    transform: translateY(0) rotate(0deg);
}

.contact-image-overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.contact-image-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    color: white;
}

/* Responsive para la imagen de contacto */
@media (max-width: 768px) {
    .contact-images-stack {
        max-width: 400px;
        height: 200px;
        margin: 1rem 0 0 auto;
    }
    
    .contact-image-container {
        max-width: 220px;
    }
    
    .contact-image-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .contact-image-overlay h3 {
        font-size: 1.1rem;
    }
    
    .contact-image-overlay p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .contact-images-stack {
        max-width: 340px;
        height: 180px;
        margin: 0.5rem 0 0 auto;
    }
    
    .contact-image-container {
        max-width: 180px;
        border-radius: 15px;
    }
    
    .contact-image-overlay {
        padding: 1rem 0.8rem 0.8rem;
    }
    
    .contact-image-overlay h3 {
        font-size: 1rem;
    }
    
    .contact-image-overlay p {
        font-size: 0.75rem;
    }
}   

/* Footer */
.footer {
    background: var(--fondo-principal);
    color: var(--texto-principal);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--dorado);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--rosa-pastel);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--rojo-pastel);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--dorado);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-images-stack {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-image-container {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-image-overlay h3 {
        font-size: 1.2rem;
    }
    
    .contact-image-overlay p {
        font-size: 0.9rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cookie-decoration,
    .cookie-decoration::before {
        display: none;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .cart-floating {
        right: 20px;
        bottom: 20px;
    }
    
    .cart-modal-content {
        width: 95%;
        max-width: 500px;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .cart-actions button {
        width: 100%;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px;
    }
    
    .cart-item-controls {
        align-self: center;
        margin: 10px 0;
    }
    
    .cart-item-subtotal {
        align-self: flex-end;
        margin: 0;
    }
    
    .btn-remove {
        align-self: flex-end;
        margin-top: -40px;
    }
}

    .btn-add-cart {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .cart-modal-content {
        width: 98%;
        margin: 10px;
    }
    
    .cart-item {
        padding: 15px;
    }
    
    .cart-item-controls {
        gap: 5px;
    }
    
    .btn-quantity {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .cart-item-quantity {
        min-width: 25px;
        font-size: 0.9rem;
    }
    
    .btn-remove {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
} 

/* Tooltips para botones del carrito */
.btn-quantity,
.btn-remove {
    position: relative;
}

.btn-quantity::before,
.btn-remove::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gris-oscuro);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    pointer-events: none;
}

.btn-quantity::after,
.btn-remove::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--gris-oscuro);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    pointer-events: none;
}

.btn-quantity:hover::before,
.btn-remove:hover::before,
.btn-quantity:hover::after,
.btn-remove:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 5px);
}

/* Mejoras en el hover del carrito */
.cart-item:hover .btn-quantity,
.cart-item:hover .btn-remove {
    transform: scale(1.05);
}

.cart-item:hover .btn-quantity:hover,
.cart-item:hover .btn-remove:hover {
    transform: scale(1.1);
} 

/* Sistema de Notificaciones */
.notificacion {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    max-width: 350px;
    animation: slideIn 0.3s ease-out;
    border: 2px solid #45A049;
    font-family: inherit;
}

/* Notificación de confirmación */
.notificacion-confirmacion {
    background: #FF6B6B !important;
    border-color: #FF5252 !important;
}

.notificacion-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notificacion-mensaje {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    line-height: 1.4;
}

.notificacion-mensaje i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.notificacion-botones {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-confirmar {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    min-width: 80px;
}

.btn-si {
    background: #4CAF50;
    color: white;
}

.btn-si:hover {
    background: #45A049;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-no {
    background: #f8f9fa;
    color: #343a40;
    border: 1px solid #dee2e6;
}

.btn-no:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.notificacion-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notificacion-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Responsive para notificaciones */
@media (max-width: 768px) {
    .notificacion {
        right: 10px;
        left: 10px;
        max-width: none;
        top: 10px;
    }
    
    .notificacion-botones {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-confirmar {
        width: 100%;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .notificacion {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .notificacion-mensaje {
        font-size: 0.9rem;
    }
    
    .btn-confirmar {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}
/* ============== MOBILE (≤ 768px) — BLOQUE ÚNICO ============== */
@media (max-width: 768px){

  /* HERO: centrado real del contenido y separación correcta del header */
  .hero{
    position: relative;
    display: block;                /* por si venía en flex */
    overflow: visible;             /* no recortar la galleta */
    min-height: calc(100vh - 96px);/* ajusta 96px si tu header mide más/menos */
    padding-top: clamp(40px, 30vh, 120px);   /* baja el texto sin exagerar */
    padding-bottom: clamp(24px, 6vh, 72px);  /* aire abajo */
  }

  .hero-content{
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 12px;
    max-width: 32ch;
    margin: 0 auto;
  }

  .hero-content h1{
    font-size: 34px;
    line-height: 1.15;
    margin: 0 0 10px 0;
  }

  .hero-content p{
    font-size: 15px;
  }

  .hero-content .btn-primary{
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  /* contenedor de la imagen no “empuja” nada en mobile */
  .hero-image{
    position: static;
  }

  /* galleta amarilla del hero (tu .cookie-decoration) arriba-derecha */
  .hero-image .cookie-decoration{
    position: absolute !important;
    top: 6% !important;            /* súbela/bájala desde acá si la quieres más abajo */
    right: 6% !important;
    width: min(160px, 40vw) !important;
    height: min(160px, 40vw) !important;
    display: block !important;
    opacity: 1 !important;
    pointer-events: none;
    z-index: 0;                    /* detrás del header y del contenido */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  /* Evitar scroll lateral en secciones con decoraciones grandes */
  html, body{ overflow-x: hidden; }
  img, svg, video{ max-width: 100%; height: auto; }
  .about, .sobre, .nosotros, .decor, .illustration,
  .about-illustration, .section, .container{ overflow-x: hidden; }

  /* ABOUT & CONTACT: de 2 columnas a 1 columna */
  .about-content,
  .contact-content{
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .about-text, .about-image,
  .contact-info, .contact-form{ width: 100%; }

  /* círculo/galleta grande de ABOUT centrado y controlado si aplica */
  .cookie-decoration-2{
    width: min(240px, 70vw);
    height: min(240px, 70vw);
    margin: 0 auto;
  }

  /* Tarjetas de producto más compactas en móvil */
  .product-card{ padding: 14px; }
  .product-card h3{ font-size: 18px; line-height: 1.25; }
  .product-card .product-price, .product-card .price{ font-size: 22px; }
  .product-card .btn, .btn-primary{ width: 100%; }

  /* Form cómodo */
  #contact-form{ width: 100%; }
  #contact-form input, #contact-form textarea{ font-size: 16px; }

  /* Modal/Carrito cómodo en iPhone (respeta barra inferior) */
  .cart-modal-content{
    width: 92vw;
    max-width: 640px;
    max-height: 80vh;
    border-radius: 16px;
  }
  .cart-modal-body{
    max-height: 60vh;
    overflow-y: auto;
  }

  /* Footer */
  .footer-content{ align-items: start; }
  .social-links{ display: flex; gap: 12px; }
  .social-links i{ font-size: 18px; }
}

/* Mobile pequeño: ajusta tipografías del hero un pelín */
@media (max-width: 480px){
  .hero-content h1{ font-size: 32px; line-height: 1.15; }
  .hero-content p{ font-size: 15px; }
  .hero-content .btn-primary{ width: 100%; max-width: 320px; }
}

/* (Opcional) Si tu toast/aviso se pega al header en iOS, dale aire: */
.toast, .notification, .alert {
  top: calc(env(safe-area-inset-top) + 8px) !important;
  z-index: 5000 !important;
}
@media (max-width: 768px){
  body .hero{
    padding-top: 28vh !important;   /* súbelo/bájalo a tu gusto */
    padding-bottom: clamp(24px, 6vh, 72px) !important;
  }

  /* por si la galleta se mete encima del texto, la subimos un poco */
  .hero-image .cookie-decoration{
    top: 4% !important;   /* ajústalo si hace falta */
    right: 6% !important;
  }
}
/* === FIX 1: “Sobre nosotros” legible en modo oscuro === */
[data-theme="dark"] .about{
  /* fondo más oscuro y uniforme para contraste */
  background: linear-gradient(135deg, #1f1f1f 0%, #2a1f29 100%);
}

[data-theme="dark"] .about-text h2{
  color: var(--rosa-pastel); /* tu rosa del tema oscuro */
}

[data-theme="dark"] .about-text p{
  color: var(--texto-secundario);
}

[data-theme="dark"] .feature{
  background: rgba(255,255,255,0.06);  /* tarjetita oscura translúcida */
  color: var(--texto-principal);
  border: 1px solid var(--borde);
}
/* Mobile (igual que como te gustaba) */
@media (max-width: 480px){
  .product-image{ width:140px; height:140px; }
}

@media (min-width: 1025px){
  .product-image img{ transform: scale(1); }
  .product-card:hover .product-image img{ transform: scale(1.03); }
}



