/* Base styles and variables */
:root {
    --bg-primary: #FFFFFF;
    --accent: #D4AF37;
    --dark: #000000;
    --text-main: #333333;
    --text-light: #ffffff;
    --font-stack: 'Manrope', sans-serif;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

/* Typography Utilities */
.text-light-gray {
    color: rgba(255, 255, 255, 0.85);
}

.small {
    font-size: 0.8125rem;
}

/* Top Bar Styles */
.top-bar {
    background-color: var(--dark);
    font-size: 0.8125rem; /* Small text for top bar */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.top-bar-info .info-item {
    display: flex;
    align-items: center;
    transition: color var(--transition-speed) ease;
    cursor: default;
}

.top-bar-info .info-item i {
    color: var(--accent); /* Branding touch on the icons */
}

/* Social Icons */
.social-icons .social-link {
    color: var(--text-light);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icons .social-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Navbar Styles */
.navbar {
    background-color: var(--dark) !important;
}

.navbar-logo {
    height: 50px;
    object-fit: contain;
}

.navbar-links .nav-link {
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    transition: color var(--transition-speed) ease;
}

.navbar-links .nav-link:hover,
.navbar-links .nav-link:focus,
.navbar-links .nav-link.active {
    color: #FFB800 !important;
}

/* Vertical Separator for Desktop */
@media (min-width: 992px) {
    .navbar-links .nav-item {
        position: relative;
    }
    
    .navbar-links .nav-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 16px;
        width: 1px;
        background-color: #ffffff;
        opacity: 0.6;
    }

    .navbar-links .nav-link {
        padding-left: 1.2rem !important;
        padding-right: 1.2rem !important;
    }
}

/* CTA Button */
.btn-cta {
    background-color: #FFB800;
    color: #000000;
    border: none;
    transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.btn-cta:hover {
    background-color: #e6a600;
    color: #000000;
    transform: translateY(-2px);
}

.btn-cta .btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ========================================= */
/* Hero Section */
/* ========================================= */
.hero {
    position: relative;
    min-height: 72vh; /* Reducido ~1.5cm a 2cm verticales */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0.0) 100%), url('../img/banner2.webp');
    background-size: cover;
    background-position: center 30%; /* Enfoca la imagen un poco más hacia arriba */
    background-repeat: no-repeat;
    margin-top: -1px; /* To fix any pixel gap with navbar */
}

.hero .relative-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Montserrat', var(--font-stack);
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -1px;
}

.hero-title .text-warning {
    color: #FFB800 !important;
}

.hero-description {
    font-size: 1.125rem;
    max-width: 600px;
}

/* Ajuste vertical del texto principal del Hero en escritorio (~2cm hacia arriba) */
@media (min-width: 992px) {
    .hero-content-row {
        transform: translateY(-60px);
    }
}

/* Hero Buttons */
.btn-hero {
    padding: 12px 28px;
    transition: all var(--transition-speed) ease;
    border-radius: 4px; /* A slight rounded edge, adjust if necessary */
}

.btn-hero:hover {
    transform: translateY(-3px);
}

.btn-hero.btn-warning {
    background-color: #FFB800;
    color: #000000;
    border: 1px solid #FFB800;
}

.btn-hero.btn-warning:hover {
    background-color: #e6a600;
    border-color: #e6a600;
}

.btn-hero.btn-outline-warning {
    background-color: transparent;
    border: 1px solid #FFB800;
    color: #ffffff;
}

.btn-hero.btn-outline-warning:hover {
    background-color: #FFB800;
    color: #000000 !important;
}

/* Hero Features */
.hero-features {
    position: relative;
    z-index: 2;
}

.hero-features .text-warning {
    color: #FFB800 !important;
}

@media (min-width: 992px) {
    .hero-features {
        transform: translateY(-90px); /* Sube bloque de iconos ~3cm */
    }
}

/* ========================================= */
/* Stats & Clients Divider Section */
/* ========================================= */
.stats-clients-section {
    background-color: #000000;
}

@media (min-width: 992px) {
    .stat-block-divider {
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 991px) {
    .stat-block-divider {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 1.5rem;
    }
}

/* Client Logo Carousel Items */
.client-logo {
    max-height: 85px;
    width: 100%; /* Ocupar todo el ancho de su ranura flex */
    filter: grayscale(100%) brightness(200%);
    opacity: 0.6;
    transition: all 0.3s ease;
    object-fit: contain;
}

.client-logo:hover {
    filter: none;
    opacity: 1;
}

.logo-carousel-wrapper {
    width: 100%;
}

.logo-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    align-items: center;
}

.logo-slide {
    flex: 0 0 33.333%; /* 3 visibles en móvil */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}

@media (min-width: 992px) {
    .logo-slide {
        flex: 0 0 20%; /* Exactamente 5 espacios por contenedor en desktop */
    }
}

/* Fading effect on boundaries */
.logo-fade-left, .logo-fade-right {
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 5;
    pointer-events: none; /* Allows hovering over the edges */
}

.logo-fade-left {
    left: 0;
    background: linear-gradient(to right, #000000, transparent);
}

.logo-fade-right {
    right: 0;
    background: linear-gradient(to left, #000000, transparent);
}

/* ========================================= */
/* Services Section */
/* ========================================= */
.bg-light-custom {
    background-color: #F8F9FA !important;
}

.section-accent-line {
    width: 60px;
    height: 4px;
    background-color: #FFB800;
    border-radius: 2px;
}

.border-radius-custom {
    border-radius: 8px;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px !important; 
    overflow: hidden; /* Applies radius boundary */
}

.service-card img.card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* Efecto: la imagen desaparece en hover */
.service-card img.card-img-top {
    transition: opacity 0.4s ease;
    width: 100%;
}

.service-card:hover img.card-img-top {
    opacity: 0;
}

/* Efecto: el título y el texto suben ocupando el lugar de la imagen */
.service-card .card-title {
    transition: transform 0.4s ease;
    position: relative;
    z-index: 15;
}

.service-card:hover .card-title {
    transform: translateY(-130px); /* Sube la posición del título hacia la zona central superior de la imagen */
}

.service-card .card-text {
    position: absolute;
    top: 130px; /* Queda justo por debajo de la nueva posición del título */
    left: 24px;
    right: 24px;
    opacity: 0;
    transform: translateY(70px); /* Inicia más abajo, sincronizado con el título original */
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none; /* Evita parpadeos de hover */
}

.service-card:hover .card-text {
    opacity: 1;
    transform: translateY(0);
}

/* El icono flotante posicionado sobre la foto y el contenido blanco */
.service-icon-floating {
    position: absolute;
    bottom: 0;
    right: 30px; 
    transform: translateY(50%); /* Con esto solapa exactamente la mitad */
    width: 55px;
    height: 55px;
    background-color: #FFB800;
    color: #000000;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon-floating {
    transform: translateY(calc(50% - 130px)); /* Acompaña el desplazamiento del título */
}

/* ========================================= */
/* Contact Section */
/* ========================================= */
.contact-section {
    background-color: #F8F9FA; /* Mantiene la fluidez visual con sección anterior */
}

.contact-card {
    background-color: #1a1a1a;
    border: 2px solid #FFB800; /* Reemplazado color dorado genérico por tu paleta HGS */
    box-shadow: 0 10px 40px rgba(255, 184, 0, 0.15) !important;
}

.contact-title {
    font-size: 2.2rem;
    color: #FFB800;
}

.contact-input {
    border: 1px solid rgba(255, 184, 0, 0.6) !important;
    background-color: #ffffff !important;
}

.contact-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 184, 0, 0.25) !important;
    border-color: #FFB800 !important;
}

.contact-btn {
    font-size: 1.2rem;
    background: linear-gradient(135deg, #FFB800, #dca000);
    color: #000000 !important;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.4);
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.6);
    color: #000000 !important;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background-color: #FFB800;
    color: #000000;
    border-radius: 50%;
    font-size: 2rem;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #e6a600;
    color: #000000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
