/* 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;
    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;
}

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

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

/* Menu Hamburguesa */
.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 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);
}

/* 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;
}

/* About Content */
.about-content {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* History Section */
.history-section h2 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--gray-800);
}

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

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

.timeline-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.timeline-date {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-content p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Philosophy Section */
.philosophy-section h2 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.philosophy-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.philosophy-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.philosophy-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.philosophy-card span {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.philosophy-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

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

/* Commitment Section */
.commitment {
    background: var(--primary);
    color: white;
    border-radius: 0.75rem;
    margin: 4rem 0;
}

.commitment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 1rem;
    text-align: center;
}

.commitment-content span {
    font-size: 4rem;
    color: white;
}

.commitment-text h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.commitment-text p {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Team Gallery */
.team-gallery {
    padding: 4rem 0;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-item {
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* 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;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.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);
}

/* ================================
   RESPONSIVE PARA TELEFONOS
   ================================ */

/* 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 */
    .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);
    }
    
    /* Ajustes responsive para el contenido */
    .page-heading {
        padding: 2rem 0;
    }
    
    .heading-content h1 {
        font-size: 1.75rem;
    }
    
    .heading-content p {
        font-size: 1rem;
    }
    
    .about-content {
        padding: 2rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .commitment-content {
        padding: 2rem 1rem;
    }
    
    .commitment-content span {
        font-size: 3rem;
    }
    
    .cta {
        padding: 3rem 0;
    }
    
    .cta h2 {
        font-size: 1.75rem;
    }
}

/* Responsive para escritorio */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .philosophy-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .commitment-content {
        flex-direction: row;
        text-align: left;
        padding: 4rem 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-content p {
        text-align: left;
    }
}

@media (min-width: 1200px) {
    .services-grid {
        gap: 2rem;
    }
}