/*
 * Custom CSS for LAGILCO DIGITAL - v10 (Corporate Identity Align)
 */

/* -----------------
 * Font Definitions
 * ----------------- */
@font-face {
    font-family: 'Albert Sans';
    src: url('../fonts/AlbertSans-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Albert Sans';
    src: url('../fonts/AlbertSans-ExtraBold.otf') format('opentype');
    font-weight: 800; /* ExtraBold */
    font-style: normal;
}

/* -----------------
 * Variables
 * ----------------- */
:root {
    --primary-color: #0A3D62; /* Corporate Blue */
    --dark-color: #000000;    /* Corporate Black for Text */
    --light-color: #f8f9fa;
    --white-color: #FFFFFF;
    --bg-light-alt: #FDFEFE; /* Warmer White */
}

/* -----------------
 * Keyframe Animations
 * ----------------- */
@keyframes continuous-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* -----------------
 * General Styles
 * ----------------- */
body {
    font-family: 'Albert Sans', sans-serif;
    color: var(--dark-color);
    line-height: 1.7;
    background-color: var(--bg-light-alt);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 800; /* ExtraBold */
    color: var(--primary-color);
}

h2 {
    font-size: 2.5rem;
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: #555;
}

/* -----------------
 * Animation Styles
 * ----------------- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* -----------------
 * Navbar
 * ----------------- */
.navbar {
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    background-color: var(--white-color) !important;
}

.navbar-brand img {
    height: 55px;
    transition: transform 0.3s ease-in-out;
}

.navbar-brand img:hover {
    transform: scale(1.1);
}

.navbar-brand:focus, .navbar-brand:active {
    outline: none !important;
    box-shadow: none !important;
}

.navbar-collapse {
    align-items: center;
}


.nav-link {
    font-weight: normal;
    color: var(--dark-color);
    transition: color 0.3s;
    font-size: 1rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link i {
    margin-right: 8px;
    vertical-align: middle; /* Aligns icon with text */
}


/* -----------------
 * Hero Section v7 (Animated Text & BG Image)
 * ----------------- */
#hero {
    width: 100%;
    height: 85vh;
    position: relative;
    background: linear-gradient(rgba(10, 61, 98, 0.85), rgba(10, 61, 98, 0.85)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax-like effect */
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.hero-content h1, .hero-content .lead {
    color: var(--white-color);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content h1 {
    font-size: 3.5rem;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.hero-content .lead {
    font-size: 1.3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 1s backwards;
}

#hero .btn {
    animation: fadeIn 1s ease-out 1.5s backwards;
}

/* Override button for Hero */
#hero .btn-primary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--white-color);
}

#hero .btn-primary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
    color: var(--primary-color);
}


/* -----------------
 * Buttons
 * ----------------- */
.btn {
    padding: 14px 35px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #083150;
    border-color: #083150;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}


/* -----------------
 * Services Section v3 (Tabs)
 * ----------------- */
#services {
    padding: 100px 0;
}

#services .nav-pills .nav-link {
    background-color: #e9ecef;
    color: var(--dark-color);
    font-weight: 600;
    margin: 0 5px;
    border-radius: 50px;
    padding: 12px 25px;
    transition: all 0.3s ease;
}

#services .nav-pills .nav-link:not(.active):hover {
    background-color: #dbe2e9;
    transform: translateY(-3px);
}

#services .nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 5px 15px rgba(10, 61, 98, 0.3);
}

#services .tab-content {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-details li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.service-details i {
    color: var(--primary-color);
    margin-right: 10px;
}


/* -----------------
 * Methodology Section
 * ----------------- */
#methodology {
    padding: 100px 0;
    background-color: var(--light-color);
}

.step-item {
    text-align: center;
}

.step-item .step-number {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 5px solid var(--light-color);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.step-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* -----------------
 * About Section
 * ----------------- */
#about {
    padding: 100px 0;
}

.about-isotype {
    max-width: 320px; /* Reduced size */
    height: auto;
    margin: 0 auto;
    animation: continuous-spin 25s linear infinite; /* Continuous rotation */
    transition: transform 0.5s ease;
}

.about-isotype:hover {
    transform: scale(1.1); /* Enlarge on hover */
    animation-play-state: paused; /* Pause rotation on hover */
}

/* -----------------
 * Clients Section
 * ----------------- */
#clients {
    background-color: var(--light-color);
    overflow: hidden; /* Hide scrollbars */
    padding: 60px 0;
    position: relative;
}

/* Add a gradient overlay for a smooth fade-out effect at the edges */
#clients::before,
#clients::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px; /* Width of the fade */
    height: 100%;
    z-index: 2;
    pointer-events: none; /* Allow clicking through the gradient */
}

#clients::before {
    left: 0;
    background: linear-gradient(to right, var(--light-color) 20%, rgba(248, 249, 250, 0) 100%);
}

#clients::after {
    right: 0;
    background: linear-gradient(to left, var(--light-color) 20%, rgba(248, 249, 250, 0) 100%);
}

.logos-slider-container {
    width: 100%;
    overflow: hidden;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } /* Move by half (primer set) para loop continuo */
}

.logos-slider {
    display: flex;
    width: max-content; /* ancho según contenido duplicado */
    animation: scroll 45s linear infinite;
}

.logos-slider:hover {
    animation-play-state: paused;
}

.logo-item {
    flex: 0 0 220px; /* Do not grow, do not shrink, basis of 220px */
    text-align: center;
    padding: 0 30px; /* Spacing inside the item */
}

.client-logo {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* -----------------
 * Why Choose Us Section
 * ----------------- */
#why-choose-us {
    padding: 100px 0;
}

.why-card {
    background-color: var(--white-color);
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.why-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

/* -----------------
 * Support System Section
 * ----------------- */
#support-system {
    padding: 100px 0;
}

.support-card {
    background-color: var(--white-color);
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.support-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.support-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}


/* -----------------
 * Plans Section
 * ----------------- */
#plans {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

#particles-js-plans {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: var(--bg-light-alt);
}


.plan-card {
    background-color: var(--white-color);
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.plan-card .plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.plan-card .plan-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.plan-card ul {
    text-align: left;
    margin: 0 auto 30px auto;
    flex-grow: 1;
}

.plan-card ul li {
    margin-bottom: 10px;
}

.plan-card.featured {
    border-width: 2px;
    border-color: var(--primary-color);
    position: relative;
    transform: scale(1.05);
}

.plan-card.featured .popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* -----------------
 * SLA Section
 * ----------------- */
#sla {
    padding: 100px 0;
}

.sla-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.sla-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.sla-header {
    padding: 20px;
    color: var(--white-color);
}

.sla-card.critical .sla-header { background-color: #0A3D62; } /* Corporate Blue */
.sla-card.urgent .sla-header { background-color: #3C6382; } /* Mid Blue */
.sla-card.important .sla-header { background-color: #5D7891; } /* Light Blue */

.sla-header h5 {
    color: var(--white-color);
}

.sla-body {
    padding: 20px;
    background-color: var(--white-color);
}

.sla-body p {
    font-size: 0.95rem;
    min-height: 90px;
}

.sla-times {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-weight: 600;
}

/* -----------------
 * Footer v2
 * ----------------- */
footer {
    background-color: var(--primary-color);
    color: #aab8c5;
    padding: 60px 0 20px 0;
}

footer h5 {
    color: var(--white-color);
    margin-bottom: 20px;
}

footer a {
    color: #aab8c5;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--white-color);
}

footer .footer-logo {
    max-height: 50px;
    margin-bottom: 20px;
}

footer .bottom-bar {
    border-top: 1px solid #405161;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.9rem;
}

.ai-powered-notice {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 5px;
}


/* Custom styles for the footer button */
footer .btn-primary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--white-color);
}

footer .btn-primary:hover {
    background-color: #e9ecef; /* A slightly off-white for hover */
    border-color: #e9ecef;
    color: var(--primary-color);
    transform: translateY(-2px); /* Subtle lift */
}


.language-selector a {
    font-size: 1.5rem;
    margin: 0 10px;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.language-selector a:hover {
    opacity: 1;
}

.flag-icon {
    width: 28px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* -----------------
 * Floating WhatsApp Button
 * ----------------- */
.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: 100;
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 8px #888;
    color: #FFF;
}

.whatsapp-float i {
    margin-top: 15px;
}

/* -----------------
 * Navbar Animation (Underline Effect)
 * ----------------- */
.navbar-nav .nav-link {
    position: relative;
    padding-bottom: 8px; /* Space for the underline */
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* -----------------
 * Scroll Behavior
 * ----------------- */
#hero, #services, #methodology, #support-system, #about, #clients, #why-choose-us, #plans, #sla, #contact {
    scroll-margin-top: 90px;
}

/* -----------------
 * Chatwoot Overlay & Launcher
 * ----------------- */
#chat-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1999;
}

#chat-launcher {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 62px;
    height: 62px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 12px 28px rgba(10, 61, 98, 0.3);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#chat-launcher:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 16px 34px rgba(10, 61, 98, 0.36);
}

.woot-widget-bubble {
    display: none !important;
}

.woot-widget-holder {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    right: auto !important;
    bottom: auto !important;
    width: 92vw !important;
    max-width: 560px !important;
    height: 88vh !important;
    max-height: 760px !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25) !important;
}
