/* ===================================
   BASE STYLES & VARIABLES
   =================================== */

:root {
    /* Typography Scale (Major Third 1.250) */
    --font-xs: 0.75rem;      /* 12px */
    --font-sm: 0.875rem;     /* 14px */
    --font-base: 1rem;       /* 16px */
    --font-lg: 1.25rem;      /* 20px */
    --font-xl: 1.75rem;      /* 28px */
    --font-2xl: 2.5rem;      /* 40px */
    
    /* Spacing Scale (8px base) */
    --space-xs: 0.5rem;      /* 8px */
    --space-sm: 1rem;        /* 16px */
    --space-md: 1.5rem;      /* 24px */
    --space-lg: 2rem;        /* 32px */
    --space-xl: 3rem;        /* 48px */
    --space-2xl: 4rem;       /* 64px */
    
    /* Container Sizes */
    --container-max: 1280px; /* Updated to 1280px as requested */
    --container-padding: 1.5rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;     /* 8px */
    --radius-md: 0.75rem;    /* 12px */
    --radius-lg: 1rem;       /* 16px */
    
    /* Typography Settings */
    --line-height-tight: 1.4;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Georgia', serif;
    color: #333;
    line-height: var(--line-height-normal);
    overflow-x: hidden;
    background-color: #ffffff;
    width: 100%;
    max-width: 100vw;
    font-size: var(--font-base);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Header */
header {
    background-color: #ffffff;
    padding: .4rem var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
  
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-xl);
    font-style: italic;
    color: #333;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.logo img {
    max-width: 6.375rem;
}

nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Botón hamburguesa */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--space-xs);
    justify-self: end;
}

.mobile-menu-btn span {
    width: 1.5625rem;
    height: 0.1875rem;
    background-color: #333;
    margin: 0.1875rem 0;
    transition: 0.3s;
    border-radius: 0.125rem;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-0.3125rem, 0.375rem);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-0.3125rem, -0.375rem);
}

nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-md);
    flex-wrap: nowrap;
}

nav a {
    text-decoration: none;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-xs);
    font-weight: bold;
    letter-spacing: 0.05rem;
    transition: color 0.3s;
    white-space: nowrap;
}

nav a:hover {
    color: #8b7355;
}

/* Footer */
footer {
    background: #1a1a1a;
    padding: var(--space-lg) var(--container-padding);
    width: 100%;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left h3,
.footer-contact h3 {
    font-size: var(--font-base);
    margin-bottom: var(--space-sm);
    font-weight: var(--font-weight-normal);
    color: white;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-sm);
}

.footer-logo img {
    max-width: 4.375rem;
    filter: brightness(0) invert(1);
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-contact h3 {
    margin-bottom: 0;
}

.social-icons,
.contact-icons {
    display: flex;
    gap: var(--space-sm);
}

.social-icon {
    width: 2rem;
    height: 2rem;
    background: white;
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.contact-icon {
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: transform 0.3s;
}

.social-icon:hover,
.contact-icon:hover {
    transform: scale(1.1);
}

/* Common Components */
.section-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: var(--font-xl);
    margin-bottom: var(--space-lg);
    font-weight: var(--font-weight-normal);
    letter-spacing: 0.03125rem;
    text-align: left;
}

.btn-comprar {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    background: white;
    color: #333;
    text-decoration: none;
    border: 0.125rem solid #333;
    font-size: var(--font-sm);
    letter-spacing: 0.0625rem;
    transition: all 0.3s;
    margin-top: var(--space-md);
    cursor: pointer;
}

.btn-comprar:hover {
    background: #333;
    color: white;
}

/* Modal Tiendas */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(0.25rem);
    animation: fadeIn 0.4s ease;
}

.modal-content {
    font-family: 'Georgia', serif;
    background-color: #fff;
    margin: 3% auto;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 59.375rem;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.15);
    animation: slideIn 0.4s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, #f8f7f5 0%, #f0ede8 100%);
    border-bottom: 0.0625rem solid rgba(139, 115, 85, 0.1);
}

.modal-header h2 {
    font-family: 'Georgia', serif;
    font-size: var(--font-xl);
    font-weight: var(--font-weight-normal);
    color: #333;
    margin: 0;
    letter-spacing: 0.03125rem;
}

.close {
    color: #8b7355;
    font-size: var(--font-xl);
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
}

.close:hover {
    color: #333;
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.modal-body {
    padding: var(--space-xl);
    background: #ffffff;
}

.tiendas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.tienda-card {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 0.0625rem solid rgba(139, 115, 85, 0.1);
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tienda-card:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1.875rem rgba(0, 0, 0, 0.1);
}

.tienda-card h3 {
    font-family: 'Georgia', serif;
    font-size: var(--font-lg);
    font-weight: var(--font-weight-normal);
    color: #333;
    margin-bottom: var(--space-md);
    border-bottom: 0.125rem solid #8b7355;
    padding-bottom: var(--space-xs);
    display: inline-block;
}

.tienda-card p {
    font-family: 'Georgia', serif;
    font-size: var(--font-sm);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
    color: #555;
}

.tienda-card strong {
    color: #8b7355;
    font-weight: var(--font-weight-semibold);
}

.mapa-container {
    grid-column: 1 / -1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.12);
    border: 0.0625rem solid rgba(139, 115, 85, 0.2);
}

.mapa-container iframe {
    border-radius: var(--radius-lg);
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        backdrop-filter: blur(0);
    }
    to { 
        opacity: 1; 
        backdrop-filter: blur(0.25rem);
    }
}

@keyframes slideIn {
    from { 
        transform: translateY(-1.875rem) scale(0.95); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
  z-index: 1000;
}
/* Responsive Design - Base */
@media (max-width: 768px) {
    header {
        padding: var(--space-sm) var(--space-md);
        grid-template-columns: 1fr auto 1fr;
        gap: var(--space-sm);
    }

    .logo {
        justify-self: center;
    }

    .logo img {
        max-width: 5rem;
    }

    .mobile-menu-btn {
        display: flex;
        justify-self: end;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: var(--space-md) 0;
    }

    nav ul li {
        border-bottom: 0.0625rem solid #f0f0f0;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--font-base);
        transition: background-color 0.3s;
    }

    nav ul li a:hover {
        background-color: #f8f8f8;
        color: #8b7355;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }

    /* Modal Responsive */
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 90vh;
        border-radius: var(--radius-md);
    }
    
    .modal-header {
        padding: var(--space-md);
    }
    
    .modal-header h2 {
        font-size: 1.625rem;
    }
    
    .close {
        font-size: 1.75rem;
        width: 2.25rem;
        height: 2.25rem;
    }
    
    .modal-body {
        padding: var(--space-md);
    }
    
    .tiendas-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        margin-bottom: var(--space-lg);
    }
    
    .tienda-card {
        padding: var(--space-md);
    }
    
    .tienda-card h3 {
        font-size: 1.375rem;
        margin-bottom: var(--space-sm);
    }
    
    .tienda-card p {
        font-size: var(--font-sm);
        margin-bottom: var(--space-sm);
    }
    
    .mapa-container {
        border-radius: var(--radius-md);
    }
    
    .mapa-container iframe {
        border-radius: var(--radius-md);
        height: 15.625rem;
    }
}


