/* Variables y reset */
:root {
    --primary: #0047AB;
    --secondary: #D81E05;
    --background-light: #F4F4F4;
    --background-dark: #101922;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --white: #ffffff;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--background-light);
    color: var(--gray-800);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 50;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    height: 3.5rem; /* Ajusta según el tamaño de tu logo */
    width: auto;
    object-fit: contain;
}

/* Nav Icons Styles */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.nav-icon {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0.25rem;
}

.nav-icon:hover {
    transform: scale(1.1);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2.3rem;
    margin: 0 auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.875rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.btn-primary {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary.large {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.btn-primary.full-width {
    width: 100%;
    justify-content: center;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

/* Page Heading */
.page-heading {
    padding: 4rem 0;
    text-align: center;
}

.heading-content h1 {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.heading-content p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Content */
.contact-content {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Contact Form */
.contact-form-section {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--gray-800);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: Arial, Helvetica, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
}

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

/* Contact Info */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(0, 71, 171, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon span {
    font-size: 1.5rem;
}

.info-content h3 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.info-content p {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
}

.info-content .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.social-icon:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
}

/* Map Section */
.map-section {
    margin-top: 4rem;
}

.map-section h2 {
    font-size: 1.875rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--gray-800);
}

.map-container {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    border: none;
}

.map-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.map-overlay .btn-primary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
}

.map-overlay .btn-primary:hover {
    background: var(--primary);
    color: white;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-content p {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.footer-content .social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
/* AGREGAR ESTO AL FINAL DE style.css */

/* Estilos para el contador del carrito */
.cart-container {
    position: relative;
    display: inline-block;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Estilos para botones que son enlaces */
a.btn-primary {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
    font-size: 0.875rem;
}

a.btn-primary:hover {
    opacity: 0.9;
    color: white;
    text-decoration: none;
}

a.btn-primary.large {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}
/* Estilo simple para el contenedor de usuario */
.user-container {
    display: inline-block;
}

.user-icon {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.user-icon:hover {
    transform: scale(1.1);
}
/* ================================
   RESPONSIVE PARA TELEFONOS
   ================================ */

/* Menu Hamburguesa MEJORADO */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
}

.bar {
    width: 1.5rem;
    height: 2px;
    background: var(--gray-700);
    transition: all 0.3s ease;
}

/* Estilos para móviles */
@media (max-width: 767px) {
    /* Header */
    .hamburger {
        display: flex;
    }
    
    .nav {
        height: 3.5rem;
        padding: 0 1rem;
    }
    
    .logo-image {
        height: 2.5rem;
    }
    
    .nav-icons {
        gap: 0.25rem;
    }
    
    .nav-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 0.65rem;
        top: -6px;
        right: -6px;
    }
    
    /* Menu móvil - LO MÁS IMPORTANTE */
    .nav-links {
        position: fixed;
        top: 3.5rem;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        display: none;
        z-index: 100;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 0.75rem 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--gray-200);
        font-size: 1rem;
    }
    
    /* Animación del hamburguesa cuando está activo */
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}
/* Responsive */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .contact-grid {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-content p {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1.5fr 1fr;
    }
    
    .map-section h2 {
        font-size: 2.25rem;
    }
}