/********** Template CSS **********/

/* TIPOGRAFÍA GLOBAL */
body {
    font-family: 'Inter', sans-serif;
    color: #2d3748;
}

/* TÍTULOS CORPORATIVOS */
h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* SUBTÍTULOS */
h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 2px;
}

:root {
    --primary: #BA8900;   /* NUEVO DORADO */
    --secondary: #757575;
    --light: #F3F6F8;
    --dark: #171F38;      /* NUEVO AZUL */

    --azul-profundo: #171F38;;
    --azul-secundario: #1f2a4d;
    --dorado-hover: #9c6f00;
}

/* Espaciado */
.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    visibility: visible;
    opacity: 1;
}


/*** Buttons ***/
.btn {
    font-weight: 500;
    transition: .3s;
}

/* 🔥 BOTÓN PRINCIPAL PREMIUM */
.btn.btn-primary {
    background-color: var(--primary);
    border: none;
    color: #fff;
}

.btn.btn-primary:hover {
    background-color: #a88d5c;
    color: #fff;
}

/* outline hover */
.btn.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

/* tamaños */
.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* 🔥 BOTONES BIEN ACOMODADOS */
.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: nowrap;
}

/* 🔥 BOTONES MÁS LIMPIOS */
.hero-buttons .btn {
    min-width: 180px;
    text-align: center;
}

/* 🔥 FLECHAS ARRIBA DE TODO */
.carousel-control-prev,
.carousel-control-next {
    z-index: 3;
}

/* 🔥 ICONOS FLECHA */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary);
    border: 8px solid var(--primary);
}


/*Contenedor de imagen*/

.courses-item .position-relative {
    height: 200px;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

/* IMAGEN */
.courses-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 CLAVE */
}



/*** Courses (Servicios) ***/
.courses {
    background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)), url(../img/carousel-1.jpg);
}

.courses-item:hover .courses-overlay {
    background: rgba(0, 0, 0, .6);
}


/*** Team (opcional mantener) ***/
.team-item:hover::after {
    background: var(--primary);
}


/*** Footer ***/

.footer {
    padding-top: 30px;
    padding-bottom: 30px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
}


.footer-logo {
    height: 95px;   /* 🔥 ajusta tamaño aquí */
    width: auto;
}

.footer p {
    margin-bottom: 8px;
}

.footer h4 {
    margin-bottom: 15px;
}


.copyright {
    background: #171F38; /* 🔥 azul más profundo */
}

.copyright a {
    color: var(--primary);
}


.bg-primary {
    background-color: var(--primary) !important;
}

/* TEXTO LOGO */
.logo-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--dark);
    letter-spacing: 1px;
}

/* 🔥 EN CELULAR SE OCULTA */
@media (max-width: 768px) {
    .logo-text {
        display: none;
    }
}


/********** MEJORAS PREMIUM (SIN ROMPER TEMPLATE) **********/


/* 🔥 BOTONES PREMIUM */
.btn-luxury {
    background: rgba(198,169,107,0.15);
    border: 1px solid #BA8900;
    color: #BA8900;
    border-radius: 30px;
    padding: 12px 28px;

    transition: all 0.3s ease;
}

.btn-luxury:hover {
    background: #BA8900;
    color: #fff;
    box-shadow: 0 8px 20px rgba(186,137,0,0.3);
}

/* 🔥 TARJETAS SERVICIOS */
.courses-item {
    transition: all 0.3s ease;
}

.courses-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

/* 🔥 ZOOM IMAGEN */
.courses-item img {
    transition: transform 0.5s ease;
}

.courses-item:hover img {
    transform: scale(1.05);
}

/* 🔥 TITULO HOVER */
.courses-item h5 {
    transition: color 0.3s;
}

.courses-item:hover h5 {
    color: var(--primary);
}

/* 🔥 ICONOS */
.courses-item .fa {
    transition: 0.3s;
}

.courses-item:hover .fa {
    transform: scale(1.2);
}

/* 🔥 FOOTER LIMPIO */
.footer {
    padding: 30px 0;
}

.footer-logo {
    height: 45px;
}

.btn-whatsapp {
    background:#BA8900; /* dorado */
    color: #fff;
    border-radius: 30px;
    padding: 12px 26px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    transition: all 0.3s ease;
}

.btn-whatsapp i {
    color: #25D366; /* verde solo en el icono */
}

/* HOVER */
.btn-whatsapp:hover {
    background: #9c6f00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(198,169,107,0.3);
}

.form-select {
    cursor: pointer;
}

.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    padding-top: 1.625rem;
}

.team-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* AVATAR */
.avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #BA8900, #9c6f00);
    color: #fff;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 600;
    font-size: 18px;

    margin: 0 auto 15px;
}

/* CARGO */
.cargo {
    color: #171F38;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 5px;
}

/* NOMBRE */
.nombre {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

/* DETALLE PREMIUM */
.team-card::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #BA8900;
    margin: 10px auto 0;
}

.clientes-marquee {
    overflow: hidden;
    width: 100%;
    padding: 40px 0;
    position: relative;
}

.clientes-track {
    display: flex;
    width: max-content;
    animation: scrollClientes 30s linear infinite;
}

.cliente {
    width: 220px;
    height: 120px;
    margin: 0 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
}

.cliente img {
    max-width: 90%;
    max-height: 80px;
    object-fit: contain;
    
}

/* ANIMACIÓN */
@keyframes scrollClientes {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== NAVBAR PREMIUM ===== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    transition: all 0.3s ease;
    padding: 15px 0;
}

/* LOGO */
.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 75px;
    transition: all 0.3s ease;
}

/* TEXTO LOGO */
.logo-text {
    font-size: 12px;
    margin-left: 10px;
    color: #171F38;
    letter-spacing: 1px;
}

/* MENÚ */
.navbar-nav {
    align-items: center;
}

.navbar .nav-link {
    padding: 15px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #171F38;
    text-transform: uppercase;
    transition: 0.3s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #BA8900;
}

/* BOTÓN */
.btn-whatsapp {
    margin-left: 20px;
}

/* ===== ESTADO SCROLL ===== */
.navbar.scrolled {
    padding: 5px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.navbar.scrolled .navbar-brand img {
    height: 55px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .navbar {
        padding: 10px 0;
    }

    .navbar-brand img {
        height: 55px;
    }

    .logo-text {
        display: none;
    }

}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#contacto {
    scroll-margin-top: 100px;
}

.section-white {
    background: #ffffff;
}

.section-light {
    background: #F3F6F8;
}

/* ===== HERO LIMPIO ===== */

#header-carousel {
    max-width: 1400px;
    margin: 0 auto;
}

#header-carousel .carousel-item {
    height: auto;
}

#header-carousel img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}