/* ============================================
   AYNICORE - main.css
   Archivo único de estilos (responsive incluido)
   ============================================ */
   html {
    /* Hace que al hacer clic en 'Sobre Nosotros', la página se deslice suavemente */
    scroll-behavior: smooth; 
    
    /* Crea un margen invisible arriba de la sección para que el menú no tape el título */
    scroll-padding-top: 50px; 
}

/* --- VARIABLES Y RESET --- */
:root {
    --primary-blue: #0f172a; 
    --accent-blue: #f97316; 
    --white: #ffffff;
    --bg-light: #f1f5f9;
    --text-gray: #64748b;
}

* { 
    margin: 0; padding: 0; box-sizing: border-box; 
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth; 
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* --- NAVEGACIÓN --- */
nav { 
    background: var(--white); 
    padding: 0.1rem 3%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: fixed; 
    width: 100%; top: 0; z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.brand img { 
    height: 85px; 
    width: auto;
}

nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 25px; }
nav ul li a { 
    text-decoration: none; 
    color: var(--primary-blue); 
    font-weight: 600; 
    font-size: 15px;
    transition: color 0.3s;
}
nav ul li a:hover { opacity: 0.75; }

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #0f172a;
}

/* --- HERO --- */
.hero { 
    height: 100vh;
    margin-top: 0;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), 
                url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=1470');
    background-attachment: fixed;           
    background-size: cover;
    background-position: center;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    color: white; 
    text-align: center; 
    padding: 0 10%;
}

@keyframes hero-entrada {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.hero > div {
    animation: hero-entrada 1.2s ease forwards;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    margin-top: 10px;
    letter-spacing: 0;
    font-weight: 300;
}

.hero h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; margin-bottom: 20px; }

.btn-main {
    background: var(--accent-blue);
    color: white;
    padding: 18px 45px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.4);
}

/* --- SECCIONES --- */
section { padding: 80px 10%; }
.bg-light { background: var(--bg-light); }
.text-center { text-align: center; }

section h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--primary-blue);
    margin-bottom: 40px;
    font-weight: 700;
}

/* --- NOSOTROS --- */
.about-container {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 60px; 
    align-items: center;
}

.section-title { font-size: 2rem; color: var(--primary-blue); margin-bottom: 20px; }
.section-text { color: var(--text-gray); line-height: 1.8; font-size: 16px; text-align: justify; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: float 5s ease-in-out infinite;
}

/* --- ESTADÍSTICAS NOSOTROS --- */
.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 15px 25px;
    border-bottom: 3px solid var(--accent-blue);
    min-width: 100px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-gray);
    text-align: center;
    margin-top: 5px;
    font-weight: 500;
}

/* --- SERVICIOS --- */
.servicios-subtitle {
    color: var(--text-gray);
    font-size: 16px;
    margin-top: -25px;
    margin-bottom: 50px;
}

.services-grid { 
    display: grid; 
    /* Esto hace que si no caben 3, se ajusten automáticamente a 2 o 1 */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    max-width: 1200px;
    margin: 0 auto;
}

.service-card { 
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.4s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;  /* centra icono y título */
    height: 100%;
}

.accent-card { border-top: 4px solid var(--accent-blue); }
.service-card:hover { transform: translateY(-10px); }
.service-card i { font-size: 50px; color: var(--accent-blue); margin-bottom: 20px; display: block; }
.service-card h3 { margin-bottom: 10px; color: var(--primary-blue); }
.service-card p { color: var(--text-gray); }

/* Badge "Más Solicitado" */
.service-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* Lista dentro de tarjetas de servicio */
.service-list {
    list-style: none;
    text-align: left;
    margin-top: 10px;
    width: 100%;
    align-self: stretch; /* ocupa todo el ancho */
}

.service-list li {
    color: var(--text-gray);
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.service-list li::before {
    content: '✓';
    color: var(--accent-blue);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.service-list li:last-child { border-bottom: none; }

/* Botón Consultar en tarjetas */
/* Botón Consultar en tarjetas - CORREGIDO */
.btn-service {
    display: flex;            /* Cambiado de inline-flex a flex */
    align-items: center;
    justify-content: center;
    gap: 10px;          /* Esto crea el espacio exacto entre el logo y el texto */
    width: 170px;
    text-align: center;
    
    margin-top: auto;         /* Empuja el botón al fondo si las listas tienen largos diferentes */
    background: var(--accent-blue);
    color: white;
    
    /* Ajuste de dimensiones */
    width: 160px;             /* Un poco más ancho para que respire el texto */
    height: 45px;             /* Altura fija para control total */
    padding: 0;               /* Eliminamos padding lateral que causaba el descentrado */
    
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Control del ícono de WhatsApp dentro del botón */
.btn-service i {
    font-size: 18px;    /* Tamaño moderado para que no domine el botón */
    margin: 0;          /* Quitamos márgenes extraños */
    display: inline-block;
    color: white;       /* El ícono debe ser blanco como el texto */
}

.btn-service:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
    background: #e66714;      /* Un naranja un poco más oscuro al pasar el mouse */
}

/* --- MARCAS --- */
.brand-section {
    padding: 40px 0 0 0;
    text-align: center;
}

.brand-text {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
    font-weight: 500;
}

.brand-track {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px; 
    max-width: 1100px; 
    margin: 0 auto;
}

.brand-track img {
    height: 30px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.brand-track img:hover { 
    filter: grayscale(0%); 
    opacity: 1; 
    transform: scale(1.1);
}

/* --- PROCESO / CÓMO TRABAJAMOS --- */
.proceso-subtitle {
    color: var(--text-gray);
    font-size: 16px;
    margin-top: -25px;
    margin-bottom: 50px;
}

.proceso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.proceso-card {
    background: white;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    position: relative;
    transition: transform 0.4s, box-shadow 0.4s;
    border-bottom: 4px solid transparent;
}

.proceso-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--accent-blue);
}

.proceso-numero {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    opacity: 0.15;
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.proceso-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.proceso-icon i {
    font-size: 28px;
    color: var(--accent-blue);
}

.proceso-card h3 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-weight: 700;
}

.proceso-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* --- CONTACTO --- */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin: 30px 0 40px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
}

.contact-item i {
    font-size: 28px;
    color: var(--accent-blue);
}

.contact-item a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}
.contact-item a:hover { color: var(--accent-blue); }

/* --- REDES SOCIALES --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 50px; 
    margin-top: 20px;
    margin-bottom: 20px;
}

.social-links a {
    font-size: 35px;
    color: var(--text-gray);
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover { transform: translateY(-5px); }
.social-links a:has(.fa-instagram):hover { color: #E1306C; }
.social-links a:has(.fa-facebook):hover { color: #1877F2; }
.social-links a:has(.fa-tiktok):hover { color: #000000; }
.social-links a:has(.fa-youtube):hover { color: #FF0000; }
.social-links a:has(.fa-envelope):hover { color: var(--accent-blue); }

/* --- FOOTER --- */
footer { 
    background: var(--primary-blue); 
    color: white; 
    padding: 50px 40px; 
    text-align: center; 
}

.footer-content { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.footer-brand { font-size: 1.3rem; font-weight: 700; margin-bottom: 5px; }
.footer-location, .footer-hours { color: #94a3b8; font-size: 14px; }
.footer-location i, .footer-hours i { color: var(--accent-blue); margin-right: 6px; }
.footer-copy { color: #64748b; font-size: 13px; margin-top: 15px; }

/* --- BOTÓN FLOTANTE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulse-whatsapp 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--primary-blue);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--primary-blue);
    border-right: none;
}

.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 8px 35px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/* ============================================
   RESPONSIVE - MÓVIL (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    
    body { overflow-x: hidden; }

    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        height: 70px;
    }

    .brand img { height: 45px; }
    .menu-toggle { display: block; }

    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 10px 0;
        text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .nav-menu.active {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu li { margin: 10px 0; }

    .hero { 
        margin-top: 0;
        background-attachment: scroll;
        height: 100vh;
        padding: 0 5%;
    }

    .hero h1 { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; }

    .about-stats {
        gap: 15px;
        justify-content: center;
    }

    .stat-item {
        padding: 12px 18px;
        min-width: 85px;
    }

    .services-grid { grid-template-columns: 1fr; }

    .proceso-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-info {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }

    .brand-section { padding: 30px 0 0 0; }

    .brand-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        align-items: center;
        justify-items: center;
        padding: 0 10%;
    }

    .brand-track img {
        height: 22px;
        max-width: 75px;
        opacity: 0.6;
    }

    .brand-track img[alt="HP"],
    .brand-track img[alt="Dell"] { transform: scale(1.1); }
    .brand-track img[alt="ASUS"],
    .brand-track img[alt="Lenovo"] { transform: scale(0.85); }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-tooltip { display: none; }

    footer { padding: 40px 20px; }
}
