/********** Template CSS **********/
:root {
    --primary: #D4AF37;
    --secondary: #0066CC;
    --light: #F6F7F8;
    --dark: #1A2A36;
}

/* Prevenir scroll horizontal */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

/* Botón dorado con efecto metálico para navbar */
.navbar .btn-primary {
    background: linear-gradient(135deg, #F4D03F 0%, #D4AF37 50%, #B8860B 100%);
    border: none;
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.navbar .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.navbar .btn-primary:hover {
    background: linear-gradient(135deg, #FFD700 0%, #F4D03F 50%, #D4AF37 100%);
    box-shadow: 
        0 6px 20px rgba(212, 175, 55, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.navbar .btn-primary:hover::before {
    left: 100%;
}

.navbar .btn-primary:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(212, 175, 55, 0.4),
        inset 0 2px 5px rgba(0, 0, 0, 0.2);
}


.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;
    font-weight: normal;
}

/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 75px;
}

.navbar .navbar-brand img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .navbar {
        flex-wrap: wrap !important;
    }
    
    .navbar .navbar-brand {
        height: auto;
        padding: 10px 15px;
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 60px);
        border: none !important;
    }
    
    .navbar .navbar-brand img {
        max-height: 55px;
    }
    
    .navbar .navbar-brand h2 {
        font-size: 1.3rem !important;
    }
    
    .navbar .navbar-brand small {
        font-size: 0.7rem !important;
    }
    
    .navbar .navbar-toggler {
        flex-shrink: 0;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar .navbar-collapse {
        flex-basis: 100%;
        background-color: #000000;
    }
}

/* Pantallas móviles pequeñas */
@media (max-width: 575.98px) {
    .navbar .navbar-brand {
        padding: 8px 12px;
    }
    
    .navbar .navbar-brand img {
        max-height: 50px;
    }
    
    .navbar .navbar-brand h2 {
        font-size: 1.15rem !important;
    }
    
    .navbar .navbar-brand small {
        font-size: 0.65rem !important;
        letter-spacing: 0 !important;
    }
    
    .navbar .navbar-brand .ms-3 {
        margin-left: 0.5rem !important;
    }
}

/* Pantallas muy pequeñas (320px - 375px) */
@media (max-width: 374px) {
    .navbar .navbar-brand img {
        max-height: 42px;
    }
    
    .navbar .navbar-brand h2 {
        font-size: 1rem !important;
    }
    
    .navbar .navbar-brand small {
        font-size: 0.58rem !important;
    }
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

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

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    /* Overlay con gradiente para mejor legibilidad */
    background: linear-gradient(
        135deg,
        rgba(26, 42, 54, 0.85) 0%,
        rgba(26, 42, 54, 0.6) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.header-hero {
    position: relative;
    height: 65vh;
    min-height: 400px;
    max-height: 650px;
    overflow: hidden;
}

.header-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Estilos para el texto del hero */
.header-hero h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 900;
    color: #FFFFFF;
}

.header-hero h1 span {
    color: var(--primary);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.header-hero p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

/* Botón del hero con efecto especial */
.header-hero .btn-primary {
    background: linear-gradient(135deg, #F4D03F 0%, #D4AF37 50%, #B8860B 100%);
    border: none;
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 4px 20px rgba(212, 175, 55, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.header-hero .btn-primary:hover {
    background: linear-gradient(135deg, #FFD700 0%, #F4D03F 50%, #D4AF37 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(212, 175, 55, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Responsive para tablets */
@media (max-width: 991.98px) {
    .header-hero {
        height: 50vh;
        min-height: 320px;
        max-height: 450px;
    }
    
    .header-hero h1 {
        font-size: 2.5rem !important;
    }
    
    .header-hero p {
        font-size: 1rem !important;
    }
}

/* Responsive para móviles */
@media (max-width: 767.98px) {
    .header-hero {
        height: 60vh;
        min-height: 350px;
        max-height: 500px;
    }
    
    .header-hero h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .header-hero p {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
        padding-bottom: 0 !important;
    }
    
    .owl-carousel-inner {
        padding: 0 15px;
        background: linear-gradient(
            180deg,
            rgba(26, 42, 54, 0.7) 0%,
            rgba(26, 42, 54, 0.85) 50%,
            rgba(26, 42, 54, 0.9) 100%
        );
    }
    
    .owl-carousel-inner .col-10 {
        width: 100% !important;
        flex: 0 0 100%;
        max-width: 100%;
    }
}



/*** About ***/
.about-img-wrapper {
    position: relative;
    padding-left: 0 !important;
}

.about-img-wrapper img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0 1.5rem 1.5rem 0;
}

.about-img-wrapper img:hover {
    transform: scale(1.02);
}

@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

@media (max-width: 991.98px) {
    .about-img-wrapper img {
        max-height: 350px;
    }
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .06);
    transition: all 0.4s ease;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
}

/* Imagen del servicio con overlay */
.service-item .img-fluid {
    transition: transform 0.5s ease;
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.service-item:hover .img-fluid {
    transform: scale(1.05);
}

.service-icon {
    position: relative;
    margin: -40px 0 20px 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    background: linear-gradient(135deg, #F4D03F 0%, #D4AF37 50%, #B8860B 100%);
    border-radius: 50%;
    box-shadow: 
        0 8px 25px rgba(212, 175, 55, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
}

.service-icon i {
    font-size: 1.8rem !important;
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 30px rgba(212, 175, 55, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.service-item:hover .service-icon i {
    transform: scale(1.1);
}

/* Contenido del servicio */
.service-item h4 {
    color: var(--dark);
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 15px !important;
}

.service-item h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    transition: width 0.3s ease;
}

.service-item:hover h4::after {
    width: 60px;
}

.service-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.service-item a:hover {
    color: var(--dark);
    letter-spacing: 0.5px;
}

.service-item a i {
    transition: transform 0.3s ease;
}

.service-item a:hover i {
    transform: translateX(5px);
}


/*** Contact ***/
.contact-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: 8px;
    transform: translateY(-2px);
    transition: all 0.25s ease;
}

.contact-item .btn-lg-square {
    transition: all 0.25s ease;
}

.contact-item:hover .btn-lg-square {
    background-color: #0d6efd;
}

.contact-item:hover i {
    transform: scale(1.1);
    transition: transform 0.25s ease;
}




/*** Contact ***/
#contacto .bg-light {
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
}

#contacto .btn-lg-square {
    width: 50px;
    height: 50px;
}

/* Botón WhatsApp */
#contact-form button[type="submit"] {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

#contact-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #2EE370 0%, #1DA87A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

#contact-form .form-control,
#contact-form .form-select {
    box-shadow: 0 0 15px rgba(0, 0, 0, .04);
}

#contact-form .form-control:focus,
#contact-form .form-select:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    border-color: var(--primary);
}

/* Botones redes sociales en Contacto */
#contacto .btn-square.btn-primary {
    background: linear-gradient(135deg, #F4D03F 0%, #D4AF37 50%, #B8860B 100%);
    border: none;
    color: #000000;
    transition: all 0.3s ease;
}

#contacto .btn-square.btn-primary:hover {
    background: linear-gradient(135deg, #FFD700 0%, #F4D03F 50%, #D4AF37 100%);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

#contacto .btn-square.btn-primary i {
    transition: transform 0.3s ease;
}

#contacto .btn-square.btn-primary:hover i {
    transform: scale(1.15);
}

/* Responsive contacto para móviles pequeños */
@media (max-width: 420px) {
    #contacto .bg-light h5 {
        font-size: 0.9rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    #contacto .bg-light .btn-lg-square {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    #contacto .bg-light .me-3 {
        margin-right: 0.75rem !important;
    }
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    color: #9B9B9B;
    border: 1px solid #9B9B9B;
    border-radius: 38px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    border-color: var(--light);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #9B9B9B;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #FFFFFF;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer-links .btn.btn-link {
    font-size: 0.85rem;
}

.footer .copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/* Crédito plantilla - muy discreto */
.template-credit {
    font-size: 0.65rem;
    color: #444;
    opacity: 0.5;
}

.template-credit a {
    color: #555;
    text-decoration: none;
}

.template-credit a:hover {
    color: #777;
}