/* VARIABLES Y RESET */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --accent-color: #FFD300;
    --text-dark: #111827;
    --text-light: #6b7280;
    --background-light: #f3f4f6;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    --font-main: 'Inter', sans-serif;
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
}

img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* HEADER & NAV */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; width: 100%; z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.header-content { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo img { height: 36px; width: auto; }
.main-nav ul { display: flex; list-style: none; gap: 1.5rem; }
.main-nav a { text-decoration: none; color: var(--text-light); font-weight: 500; transition: 0.3s; }
.main-nav a:hover { color: var(--primary-color); }
.header-actions { display: flex; gap: 1rem; align-items: center; }

/* BOTONES GLOBALES */
.btn { padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: 0.3s; display: inline-block; cursor: pointer; text-align: center;}
.btn-primary { background: var(--primary-color); color: white; border: 1px solid transparent; }
.btn-primary:hover { background: var(--secondary-color); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2); }
.btn-secondary { background: white; color: var(--text-dark); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--background-light); border-color: #d1d5db; }
.btn-login:hover { color: var(--primary-color); }


/* FOOTER PROFESIONAL */
.main-footer {
    background-color: #0f172a; /* Un azul casi negro, muy elegante */
    color: #94a3b8;
    padding: 80px 0 30px;
    margin-top: 5rem;
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr; /* La primera columna es más ancha para el logo */
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Logo y Marca */
.footer-logo img {
    height: 40px; /* Ajusta este valor según tu logo */
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-tagline {
    margin-bottom: 2rem;
    max-width: 300px;
    line-height: 1.6;
}

/* Redes Sociales */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--accent-color); /* Amarillo al pasar el mouse */
    color: var(--text-dark); /* Icono oscuro sobre amarillo */
    transform: translateY(-3px);
}

/* Columnas de Enlaces */
.footer-col h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent-color); /* Amarillo al pasar el mouse */
    padding-left: 5px; /* Pequeño efecto de movimiento */
}

/* Barra inferior (Copyright) */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 968px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo img { margin: 0 auto 1.5rem; }
    .footer-tagline { margin: 0 auto 2rem; }
    .social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
}


/* ======================== */
/* === BOTÓN WHATSAPP === */
/* ======================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* Verde Oficial */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Para que siempre esté encima de todo */
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1); /* Crece un poco al pasar el mouse */
    background-color: #20BA56;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* Animación de "Latido" para llamar la atención */
@keyframes pulse-green {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    animation: pulse-green 2s infinite;
}


/* Animación de Entrada Suave */
.hero-text, .hero-image, .stats-bar {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0; /* Empiezan invisibles */
}

/* Retrasos para que aparezcan en cascada */
.hero-text { animation-delay: 0.2s; }
.hero-image { animation-delay: 0.4s; }
.stats-bar { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px); /* Vienen desde abajo */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- TECH LOGOS (Barra de Tecnologías) --- */
.tech-logos-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: #fafafa;
}
.tech-title {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.logos-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.6; /* Un poco transparentes para que no roben atención */
    filter: grayscale(100%); /* Elegante: en blanco y negro */
    transition: 0.3s;
}
.logos-wrapper:hover {
    opacity: 1;
    filter: grayscale(0%); /* Al pasar el mouse, recuperan el color */
}
.tech-logo img, .tech-logo svg {
    height: 40px;
    width: auto;
    object-fit: contain;
}