/* Variables y reset - EXACTAMENTE IGUAL al index */
: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 - EXACTAMENTE IGUAL al index.html */
.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;
}

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

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

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

/* Services Grid Section */
.services-grid-section {
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
}

.service-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.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.service-card {
    transform: translateY(0) scale(1);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.15),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 2px rgba(0, 71, 171, 0.1);
    z-index: 10;
}

.services-grid:hover .service-card:not(:hover) {
    transform: translateY(-4px);
    opacity: 0.9;
}

.service-card:hover .service-image {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}

.service-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}
/* Estilos para los enlaces de las tarjetas de servicio */
.service-card-link {
    text-decoration: none; /* Esto quita el subrayado */
    color: inherit; /* Mantiene el color original del texto */
    display: block;
}

.service-card-link:hover {
    text-decoration: none; /* También quita el subrayado en hover */
}

.service-card-link:hover .service-card {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.15),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 2px rgba(0, 71, 171, 0.1);
    z-index: 10;
}

.service-card-link:hover h3 {
    color: var(--primary);
}

.service-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary);
}

.service-content p {
    color: var(--gray-600);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: var(--gray-700);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 0.75rem 0.75rem 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.social-links a[aria-label="WhatsApp"] .social-icon:hover {
    filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.4));
}

.social-links a[aria-label="Facebook"] .social-icon:hover {
    filter: drop-shadow(0 0 8px rgba(59, 89, 152, 0.4));
}

.social-links a[aria-label="Instagram"] .social-icon:hover {
    filter: drop-shadow(0 0 8px rgba(225, 48, 108, 0.4));
}

/* Responsive */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .service-card:hover {
        transform: translateY(-15px) scale(1.03);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-content p {
        text-align: left;
    }
}


/* 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);
    }
}
@media (min-width: 1200px) {
    .services-grid {
        gap: 2rem;
    }
    
}
