/* ========================================
   1. VARIABLES GLOBALES
======================================== */

:root {
    --color-principal: rgb(103, 38, 108);
    --color-secundario: rgb(81, 4, 136);
    --blanco: #ffffff;
    --gris-claro: #f4f4f9;
    --gradiente: linear-gradient(
        135deg,
        var(--color-principal),
        var(--color-secundario)
    );
}

section {
    padding: 80px 10%;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--color-secundario);
}

/* ========================================
   2. RESET Y CONFIGURACIÓN GENERAL
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--gris-claro);
}


/* ========================================
   3. NAVBAR
======================================== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background: var(--blanco);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-secundario);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo span {
    color: var(--color-principal);
    font-weight: 300;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    margin: 0 15px;
    transition: 0.3s;
}

.btn-nav {
    background: var(--gradiente);
    color: var(--blanco) !important;
    padding: 10px 20px;
    border-radius: 25px;
}

/* ========================================
   4. BOTONES GENERALES
======================================== */

.btn-main {
    background: var(--gradiente);
    border: none;
    color: var(--blanco);
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(81, 4, 136, 0.4);
}

/* =========================================================
   5. HEADER
   ========================================================= */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s ease-in-out;
}

.nav-hidden {
    transform: translateY(-100%);
}

/* ========================================
   6. FOOTER
======================================== */

.footer-avante {
    background-color: #1a1a1a;
    color: var(--blanco);
    padding: 60px 10% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.logo-footer {
    color: var(--blanco);
    margin-bottom: 15px;
}

.logo-footer span {
    color: var(--color-principal);
}

.footer-section h3 {
    border-left: 4px solid var(--color-secundario);
    padding-left: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
}

.footer-section ul li a:hover {
    color: var(--color-principal);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #777;
}

/* ========================================
   6. REDES SOCIALES
======================================== */

.socials {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: var(--blanco);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: #444;
}

.social-icon:hover .fa-facebook-f {
    color: #1877F2;
}

.social-icon:hover .fa-tiktok {
    color: #ff0050;
}

.social-icon:hover .fa-whatsapp {
    color: #25D366;
}

/* ========================================
   7. WHATSAPP
======================================== */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

/* ========================================
   8. ANIMACIONES GENERALES
======================================== */

/* animaciones que sean compartidas */