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

.menu-icon{
    margin-left: 0.3cm;
}


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

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
}

/* Services Section - Efectos mejorados */
.services {
    padding: 4rem 0;
}

.services h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
}

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

/* Estado normal - todas las tarjetas tienen elevación básica */
.service-card {
    transform: translateY(0) scale(1);
}

/* Efecto hover - la tarjeta seleccionada se eleva más */
.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;
}

/* Efecto sutil en las tarjetas no hovered cuando una está activa */
.services-grid:hover .service-card:not(:hover) {
    transform: translateY(-4px);
    opacity: 0.9;
}

/* Efecto específico para la imagen en hover */
.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-card 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-card p {
    color: var(--gray-600);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

/* Efecto de borde sutil en hover */
.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);
}

/* Experience Banner */
.experience {
    background: var(--primary);
    color: white;
    border-radius: 0.75rem;
    margin: 6rem 0;
}

.experience-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.experience-number {
    text-align: center;
}

.experience-number .number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
}

.experience-number .label {
    font-size: 1.25rem;
    font-weight: bold;
}

.divider {
    width: 6rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.experience-text {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.75;
    text-align: center;
}

/* Clients Section */
.clients {
    padding: 6rem 0;
}

.clients h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.clients-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.client-card {
    text-align: center;
    padding: 1rem;
}

.client-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(0, 71, 171, 0.2);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.client-icon .material-symbols-outlined {
    font-size: 2rem;
}

.client-card h3 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

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

/* 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 - SOLO ESTA PARTE FUE MODIFICADA */
.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-text 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);
}

/* Efecto específico para cada red social */
.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));
}
/* Para escritorio */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    .footer-text {
        flex: 1;
        
    }
}

/* Responsive */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .hero {
        height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 4.5rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .service-card:hover {
        transform: translateY(-15px) scale(1.03);
    }
    
    .experience-content {
        flex-direction: row;
        padding: 3rem;
    }
    
    .divider {
        width: 1px;
        height: 6rem;
    }
    
    .experience-text {
        text-align: left;
    }
    
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    

}

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

/* ================================
   SESSION MANAGEMENT STYLES
   ================================ */

/* Welcome Message */
.welcome-message {
    display: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 71, 171, 0.1);
    border-radius: 2rem;
    margin-right: 1rem;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .welcome-message {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
        margin-right: 0.5rem;
    }
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: none;
    align-items: center;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-menu-btn:hover {
    background: var(--background-light);
    border-color: var(--primary);
}

.user-menu-btn img {
    width: 1.5rem;
    height: 1.5rem;
}

.user-menu-btn span {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    z-index: 1000;
    border: 1px solid var(--gray-200);
}

.dropdown-content.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.dropdown-content a:hover {
    background: var(--background-light);
    color: var(--primary);
}

.dropdown-content a:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.dropdown-content a:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
    border-top: 1px solid var(--gray-200);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   LOGIN REQUIRED MODAL
   ================================ */

.login-required-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.login-required-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.login-required-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 1rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.login-required-modal .modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.login-required-modal .modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.login-required-modal .modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.login-required-modal .modal-body {
    padding: 0 2rem 1.5rem;
    text-align: center;
}

.login-required-modal .modal-body p {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 1rem;
}

.login-required-modal .modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem 2rem;
    justify-content: center;
}

.login-required-modal .btn-cancel,
.login-required-modal .btn-login {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.login-required-modal .btn-cancel {
    background: var(--gray-200);
    color: var(--gray-700);
}

.login-required-modal .btn-cancel:hover {
    background: var(--gray-300);
}

.login-required-modal .btn-login {
    background: var(--primary);
    color: white;
}

.login-required-modal .btn-login:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 71, 171, 0.3);
}

@media (max-width: 767px) {
    .login-required-modal .modal-content {
        max-width: 95%;
    }
    
    .login-required-modal .modal-header {
        padding: 1.5rem 1.5rem 0.75rem;
    }
    
    .login-required-modal .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .login-required-modal .modal-body {
        padding: 0 1.5rem 1rem;
    }
    
    .login-required-modal .modal-footer {
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .login-required-modal .btn-cancel,
    .login-required-modal .btn-login {
        width: 100%;
    }
}

