/* PQS PERU - ESTILOS PREMIUM 2026 */
:root {
    --primary: #2772EF;
    --primary-dark: #1A5BBF;
    --secondary: #252525;
    --accent: #FFBB00;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --gray: #666666;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--secondary);
    line-height: 1.6;
}

/* HEADER & NAV PREMIUM */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

header.scrolled {
    padding: 0.5rem 8%;
    background: rgba(255, 255, 255, 0.95);
}

.logo img {
    height: 50px;
    transition: var(--transition);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

/* Efecto subrayado elegante */
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    width: 100%;
}

/* Dropdown Menu Premium */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 280px;
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-left: 1px solid rgba(0,0,0,0.05);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: 100%;
    transform: translateX(-50%) translateY(15px);
}

.dropdown-menu li {
    list-style: none;
    width: 100%;
}

.dropdown-menu a {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-menu a::after { display: none; }

.dropdown-menu a:hover {
    background: var(--light);
    color: var(--primary);
    padding-left: 1.5rem;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
    transition: var(--transition);
}

@media (max-width: 992px) {
    header { padding: 1rem 5%; }
    .menu-toggle { display: block; }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        display: none;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        max-height: 85vh;
        overflow-y: auto;
    }

    nav.active { display: flex; }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    nav a { width: 100%; font-size: 1.1rem; }

    .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--light);
        margin: 0.5rem 0;
        min-width: 100%;
        border: none;
    }

    .dropdown-menu::before { display: none; }

    .dropdown.active .dropdown-menu { display: block; }

    header .btn-cta { display: none; }
}

/* HERO SECTION */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('../images/consultoria_sistemas_de_gestion.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 0 10%;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 800px;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.btn-cta {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(39, 114, 239, 0.3);
}

.btn-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 114, 239, 0.4);
}

/* SERVICES GRID */
.services {
    padding: 6rem 10%;
    background: var(--light);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.service-card i {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1.8rem;
    transition: var(--transition);
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* FOOTER */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 5rem 10% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

/* ANIMACIONES */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* WHATSAPP FLOTANTE */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white !important;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none !important;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128C7E;
    color: white;
}

.whatsapp-float i {
    margin-top: 2px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
