/* 
 * Intercobros Cía. Ltda - Premium Landing Page Styles
 * Colors: Navy Blue (#153158) & Teal (#21ceb2)
 */

:root {
    --brand-dark: #153158;
    --brand-teal: #21ceb2;
    --brand-teal-light: rgba(33, 206, 178, 0.1);
    --brand-dark-light: rgba(21, 49, 88, 0.05);

    --font-heading: 'Nirmala UI', system-ui, sans-serif;
    --font-body: 'Nirmala UI', system-ui, sans-serif;
    --font-logo: 'Cinzel', serif;

    /* Spacing & Sizes */
    --p-6: 6rem;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(21, 49, 88, 0.5);
    /* 80% opacidad del brand-dark */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.loader-content {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 300px;
}

.loader-logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: loaderPulse 2s infinite ease-in-out;
}

.loader-progress {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--brand-teal);
    box-shadow: 0 0 15px var(--brand-teal);
    animation: loaderProgress 2s forwards ease-in-out;
}

.loader-scan {
    position: absolute;
    top: -100vh;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--brand-teal-light), transparent);
    opacity: 0.3;
    pointer-events: none;
    animation: loaderScan 3s infinite linear;
}

@keyframes loaderPulse {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.03);
        filter: drop-shadow(0 0 10px var(--brand-teal));
    }
}

@keyframes loaderProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes loaderScan {
    0% {
        top: -100vh;
    }

    100% {
        top: 100vh;
    }
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Base Styles */
html {
    scroll-padding-top: 90px; /* Aligns sections below the fixed navbar */
}

body {
    font-family: var(--font-body);
    color: #444;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.navbar-brand,
.brand-logo {
    font-family: var(--font-logo) !important;
}

.font-inter {
    font-family: var(--font-body) !important;
}

/* Utilities */
.text-brand-dark {
    color: var(--brand-dark) !important;
}

.text-brand-teal {
    color: var(--brand-teal) !important;
}

.bg-brand-dark {
    background-color: var(--brand-dark) !important;
}

.bg-brand-primary {
    background-color: var(--brand-teal) !important;
}

.btn-brand-primary {
    background-color: var(--brand-teal);
    color: var(--brand-dark);
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

.btn-brand-primary:hover {
    background-color: #1eb99f;
    color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(33, 206, 178, 0.3) !important;
}

.btn-outline-brand-dark {
    border: 2px solid var(--brand-dark);
    color: var(--brand-dark);
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-brand-dark:hover {
    background-color: var(--brand-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-brand-dark {
    background-color: var(--brand-dark);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-brand-dark:hover {
    background-color: #0f2441;
    color: var(--brand-teal);
    transform: translateY(-2px);
}

.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.py-6 {
    padding-top: var(--p-6);
    padding-bottom: var(--p-6);
}

.pt-6 {
    padding-top: var(--p-6) !important;
}

.pb-6 {
    padding-bottom: var(--p-6) !important;
}

.tracking-wide {
    letter-spacing: 0.1em;
}

.space-y-2 li {
    margin-bottom: 0.5rem;
}

.sep-line {
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

.hover-teal:hover {
    color: var(--brand-teal) !important;
}

.icon-md {
    width: 45px;
    height: 45px;
}

/* Background Blobs (Hero) */
.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.5;
    animation: float 8s ease-in-out infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--brand-teal-light);
    top: -10%;
    right: -5%;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--brand-dark-light);
    bottom: 10%;
    left: -10%;
    animation-delay: -4s;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(30px) scale(1.05);
    }
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important;
}

.navbar .nav-link {
    color: var(--brand-dark);
    position: relative;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--brand-teal);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 80%;
}

.navbar .nav-link.active {
    font-weight: 700;
    color: var(--brand-teal);
}

/* Hero Slider Background */
.hero-carousel-item {
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 6s ease-out;
}

.carousel-item.active .hero-carousel-item {
    transform: scale(1.05);
    /* Slow subtle zoom */
}

.carousel-inner,
#heroCarousel {
    border-radius: 0;
}

.text-shadow-sm {
    text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.3);
}

/* Glassmorphism & Cards */
.glass-mockup {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
}

.glass-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.shadow-elevated {
    box-shadow: 0 20px 40px rgba(21, 49, 88, 0.08);
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.25rem;
}

/* Service Cards */
.service-card {
    border: 1px solid transparent;
}

.service-card.border-brand-teal {
    border-color: var(--brand-teal-light);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
}

.card-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    bottom: -50px;
    right: -50px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(21, 49, 88, 0.1);
    border-color: rgba(33, 206, 178, 0.3);
}

.service-card:hover .card-glow {
    opacity: 0.15;
}

/* Contact Section */
.glass-panel-contact {
    background: transparent;
}

.contact-form-side {
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.05);
}

.form-control,
.form-select {
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    box-shadow: none;
    border-bottom: 2px solid var(--brand-teal) !important;
    background-color: white !important;
}

/* Scroll Reveal Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInLeft 0.8s ease forwards;
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.content-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.content-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0px 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0px 8px 25px rgba(37, 211, 102, 0.6);
}

/* Cookie Banner Styles */
.cookie-banner {
    bottom: 0px;
    width: 90%;
    max-width: 800px;
    z-index: 2000;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98) !important;
    animation: slideUpIn 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideUpIn {
    from {
        bottom: -150px;
        opacity: 0;
    }

    to {
        bottom: 20px;
        opacity: 1;
    }
}