/* 
   Web Site Premium - Generic Template
   Design: Modern, Clean, Glassmorphism
*/

:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e293b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    width: 100%;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    height: 70px;
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo img {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.navbar.scrolled .nav-logo,
.navbar.scrolled .nav-logo span {
    color: var(--text-primary) !important;
    opacity: 0.9;
}

@media (max-width: 1500px) {
    .nav-logo span {
        display: none !important;
    }
}

.navbar.scrolled .nav-logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    opacity: 0.9;
}

.navbar.scrolled .nav-links a {
    color: var(--text-primary);
}

.nav-links a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.nav-btn {
    padding: 0.75rem 1.75rem;
    background: var(--primary-color);
    color: white !important;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.mobile-actions {
    display: none;
}

/* Hide mobile menu parts by default (Desktop) */
.mobile-toggle,
.mobile-menu {
    display: none;
}

/* --- HERO / BANNER --- */
.hero {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.banner-track {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.35);
}

.slide-content {
    position: relative;
    color: white;
    max-width: 900px;
    z-index: 10;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.85;
    font-weight: 400;
}

.cta-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

/* --- SECTIONS --- */
section {
    padding: 100px 0;
    scroll-margin-top: 80px;
    /* Offset para navbar scrolled (70px) + 10px margen */
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    font-size: 3.5rem;
    letter-spacing: -1px;
}

.content-row {
    display: flex;
    align-items: center;
    gap: 6rem;
    flex-wrap: wrap;
}

.content-row.flex-reverse {
    flex-direction: row-reverse;
}

.text-col,
.img-col {
    flex: 1;
    min-width: 350px;
}

.section-img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.section-img:hover {
    transform: translateY(-10px);
}

/* Grid layout for services */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    padding-top: 2rem;
}

.grid-item {
    background: var(--white);
    padding: 4rem 3rem;
    border-radius: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
}

.grid-item h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.grid-item p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.grid-item:hover {
    transform: translateY(-20px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.2);
}

/* CTA Banner */
.cta-banner {
    border-radius: 60px;
    overflow: hidden;
    padding: 100px 50px !important;
    position: relative;
    background: var(--primary-color);
    color: white;
}

/* --- FOOTER --- */
footer {
    background: #0f172a;
    /* Color más oscuro profesional */
    color: white;
    padding: 100px 0 0 0;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    padding: 0 5%;
    margin: 0 auto 80px auto;
    max-width: 1280px;
}

.footer-col.about {
    grid-column: span 1;
}

@media (min-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 45px;
    width: auto;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1.2rem;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.footer-col.contact-info li {
    display: flex;
    gap: 1rem;
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-col.contact-info .icon {
    color: var(--primary-color);
    font-weight: bold;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-btn {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: var(--transition);
    color: white !important;
    font-size: 0.9rem !important;
    font-weight: 700;
    padding: 0 !important;
}

.social-btn:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    padding-left: 0 !important;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px 5%;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: white;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .navbar {
        padding: 0 15px !important;
    }

    .nav-logo {
        display: none !important;
    }

    .nav-links {
        display: none;
    }

    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .mobile-toggle {
        display: flex !important;
        cursor: pointer;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        color: var(--primary-color);
        transition: var(--transition);
        z-index: 1001;
        position: relative;
    }

    .mobile-toggle svg {
        width: 28px;
        height: 28px;
        stroke: currentColor;
    }

    .navbar.scrolled .mobile-toggle,
    .mobile-menu.active~.navbar .mobile-toggle,
    body.no-scroll .mobile-toggle {
        color: var(--text-primary);
    }

    .mobile-toggle svg {
        width: 30px;
        height: 30px;
        stroke: currentColor;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.85);
        /* Más transparente */
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        /* Espaciado entre links y footer */
        align-items: center;
        padding: 6rem 2rem 4rem 2rem;
        transition: all 0.6s cubic-bezier(0.85, 0, 0.15, 1);
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.15);
        border-left: 1px solid rgba(255, 255, 255, 0.3);
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-nav-links {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        width: 100%;
    }

    .mobile-nav-links a {
        text-decoration: none;
        color: var(--text-primary);
        font-size: 1.1rem;
        /* Reducido un ~35% (de 1.6rem) */
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 2px;
        transition: var(--transition);
        display: inline-block;
        padding: 5px 0;
        position: relative;
        opacity: 0;
        transform: translateY(20px);
    }

    .mobile-menu.active .mobile-nav-links a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Animación escalonada */
    .mobile-nav-links li:nth-child(1) a {
        transition-delay: 0.2s;
    }

    .mobile-nav-links li:nth-child(2) a {
        transition-delay: 0.3s;
    }

    .mobile-nav-links li:nth-child(3) a {
        transition-delay: 0.4s;
    }

    .mobile-nav-links li:nth-child(4) a {
        transition-delay: 0.5s;
    }

    .mobile-nav-links li:nth-child(5) a {
        transition-delay: 0.6s;
    }

    .mobile-nav-links li:nth-child(6) a {
        transition-delay: 0.7s;
    }

    .mobile-nav-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: var(--transition);
        transform: translateX(-50%);
    }

    .mobile-nav-links a:hover::after {
        width: 40px;
    }

    .mobile-nav-links .nav-btn {
        background: var(--primary-color);
        color: white;
        padding: 1rem 2.5rem;
        border-radius: 50px;
        font-size: 1.1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
    }

    /* Info extra en el menú móvil */
    .mobile-footer {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s ease;
        transition-delay: 0.8s;
    }

    .mobile-menu.active .mobile-footer {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-socials {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .mobile-socials a {
        padding: 12px;
        background: rgba(var(--primary-rgb), 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-color);
        text-decoration: none;
        transition: var(--transition);
    }

    .mobile-socials a:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-3px);
    }

    .no-scroll {
        overflow: hidden;
    }

    .section-title {
        font-size: 2.5rem;
    }

    section {
        padding: 60px 0;
        scroll-margin-top: 100px;
        /* Offset para el navbar fixed (90px) + 10px de margen */
    }

    .slide-content h1 {
        font-size: 2.2rem;
    }

    .content-row {
        flex-direction: column;
        gap: 2.5rem;
    }

    .cta-banner {
        padding: 40px 20px !important;
        border-radius: 30px;
    }

    .footer-grid {
        gap: 2.5rem;
    }

    .container {
        padding: 0 1.2rem;
    }
}