/* === RESET & BASE === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0b1120;
    --primary-light: #1a2a4a;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --text: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #0b1120;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container: 1200px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: #0b1120;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

a[href^="tel:"] {
    pointer-events: none;
    cursor: default;
}

@media (pointer: coarse) {
    a[href^="tel:"] {
        pointer-events: auto;
        cursor: pointer;
    }
}

/* === HEADER === */
.header-spacer {
    height: 72px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 17, 32, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(11, 17, 32, 0.98);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.3);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo {
    overflow: hidden;
    border-radius: 8px;
}

.logo img {
    height: 44px;
    width: auto;
    border-radius: 8px;
    transition: transform var(--transition);
    transform: scale(1.15);
    display: block;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 8px;
    transition: all var(--transition);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: transform var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 8px;
    position: fixed;
    top: 12px;
    right: 20px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 80vw;
    height: 100%;
    background: #0b1120;
    z-index: 1001;
    padding: 0 28px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 80px;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu nav a {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 14px 16px;
    border-radius: 10px;
    transition: all var(--transition);
}

.mobile-menu nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* === FOOTER === */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    height: 48px;
    width: auto;
    margin: 0 auto 16px;
    border-radius: 0;
    transform: scale(1.12);
    transform-origin: center;
    display: block;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links a,
.footer-contact a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    padding: 6px 0;
    transition: all var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contact a i {
    width: 20px;
    margin-right: 6px;
    color: var(--accent);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
}

/* === SECTION TITLES === */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    background: rgba(245, 158, 11, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
}

.section-header h2 {
    font-size: clamp(1.4rem, 4.5vw, 2.2rem);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
}

/* === ANIMATIONS === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* === WHATSAPP FLOAT === */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 997;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.7rem;
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45);
    transition: all var(--transition);
    animation: wa-pulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 32px rgba(37, 211, 102, 0.6);
    color: #fff;
}

@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 4px 40px rgba(37, 211, 102, 0.7); }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* === UTILITY === */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        text-align: center;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-brand p {
        max-width: 100%;
    }
    .footer-logo {
        transform: none;
        margin: 0 auto 16px;
        display: block;
    }
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-links h4,
    .footer-contact h4 {
        text-align: center;
    }
    .footer-links,
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-links a,
    .footer-contact a {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .footer-contact a i {
        margin-right: 4px;
        width: 16px;
        text-align: center;
    }
}


@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .site-header,
    .hamburger,
    .header-spacer,
    .mobile-overlay,
    .mobile-menu {
        display: none;
    }
    .main-nav {
        display: none;
    }
    .logo img {
        height: 34px;
    }
    .logo-text {
        font-size: 1rem;
    }
    .section-header h2 {
        font-size: 1.6rem;
    }
    .section-header p {
        font-size: 0.95rem;
    }
    .section-header {
        margin-bottom: 36px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-brand p {
        max-width: 100%;
    }
    .footer-logo {
        transform: none;
        margin: 0 auto 16px;
        display: block;
    }
    .footer-links,
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-links h4,
    .footer-contact h4 {
        text-align: center;
    }
    .footer-links a,
    .footer-contact a {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 6px 0;
    }
    .footer-links a:hover,
    .footer-contact a:hover {
        padding-left: 0;
    }
    .footer-contact a i {
        margin-right: 4px;
        width: 16px;
        text-align: center;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        bottom: 16px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    .section-header h2 {
        font-size: 1.3rem;
    }
    .section-header p {
        font-size: 0.85rem;
    }
    .section-tag {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    .btn {
        padding: 11px 22px;
        font-size: 0.85rem;
    }
    .whatsapp-float {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        bottom: 12px;
        right: 12px;
    }
}
