/********** Template CSS - APEX Constructora **********/
:root {
    --primary: #FFC107;
    --secondary: #000000;
    --accent: #FFD54F;
    --light: #F5F5F5;
    --dark: #1A1A1A;
    --gray: #757575;
    --white: #FFFFFF;
}

/* Modern Typography */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--secondary);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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


/*** Loader Premium ***/
#spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    pointer-events: none;
}

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

.loader-premium {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #FFC107;
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
}

.loader-ring::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid transparent;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: loaderSpin 1.5s linear infinite reverse;
}

@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-logo-img {
    height: 50px;
    width: auto;
    animation: logoPulse 1.5s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@media (max-width: 576px) {
    .loader-premium {
        width: 100px;
        height: 100px;
    }
    
    .loader-logo-img {
        height: 40px;
    }
}


/*** Button - Modern Design ***/
.btn {
    font-weight: 600;
    transition: all .3s ease;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    padding: 12px 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: #000000;
    font-weight: 700;
}

.btn.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #000000;
}

.btn.btn-outline-light {
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    background: transparent;
}

.btn.btn-outline-light:hover {
    background: #FFFFFF;
    color: var(--primary);
}

.btn.btn-outline-primary:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.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;
    border-radius: 50%;
}


/*** Navbar - Modern with Shadow ***/
.navbar.sticky-top {
    top: -100px;
    transition: all .4s ease;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

.navbar.shadow-sm {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.navbar .navbar-brand h1 {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 25px 0;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
    position: relative;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width .3s ease;
}

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

.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-left: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 25px;
        border-top: 1px solid #EEEEEE;
    }
    
    .navbar-toggler {
        border: 1px solid rgba(255, 193, 7, 0.5) !important;
        padding: 8px 10px;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 193, 7, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
}

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

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


/*** Header - Hero with Modern Gradient ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    text-align: start;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(26, 26, 26, 0.75) 50%, rgba(255, 193, 7, 0.2) 100%);
    z-index: 1;
}

.carousel-caption h1 {
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.carousel-caption h5 {
    color: var(--primary) !important;
    font-weight: 700;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: 3px solid rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all .3s ease;
    backdrop-filter: blur(5px);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.6);
}

.carousel-caption .breadcrumb-item+.breadcrumb-item::before {
    content: "\f111";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel-caption h1 {
        font-size: 2rem !important;
        line-height: 1.3;
    }

    .carousel-caption h5 {
        font-size: 0.9rem !important;
    }

    .carousel-caption .btn {
        padding: 10px 24px;
        font-size: 12px;
        margin-bottom: 10px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 3rem;
        height: 3rem;
    }

    /* Mobile Navigation */
    .navbar .navbar-nav .nav-link {
        padding: 12px 0;
        margin-left: 0;
    }

    .navbar .navbar-nav .nav-link::after {
        display: none;
    }

    /* Mobile Service Cards */
    .service-item {
        margin-bottom: 20px;
    }

    /* Mobile Facts */
    .facts-overlay {
        padding: 20px;
        opacity: 1;
    }

    .facts-overlay h1 {
        font-size: 60px;
    }

    /* Mobile Footer */
    .footer {
        background-attachment: scroll;
    }

    .footer h1 {
        font-size: 1.8rem;
    }

    .footer .container.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .footer .row.g-5 {
        --bs-gutter-y: 1.5rem;
    }

    .footer h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem !important;
    }

    .footer p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem !important;
    }

    .footer .btn-link {
        font-size: 0.85rem;
        margin-bottom: 0.25rem !important;
    }

    /* Ocultar columna de servicios en móviles */
    .footer .col-lg-3.col-md-6:nth-child(3) {
        display: none;
    }

    .footer .d-flex.gap-2 {
        margin-top: 0.5rem;
    }

    .footer .btn-outline-primary.btn-sm {
        width: 32px !important;
        height: 32px !important;
    }

    /* Mobile Forms */
    .appointment .form-control {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .carousel-caption h1 {
        font-size: 1.5rem !important;
    }

    .carousel-caption .breadcrumb-item {
        font-size: 0.8rem !important;
    }

    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .display-6 {
        font-size: 1.5rem !important;
    }

    .service-text h5 {
        font-size: 16px;
    }

    .testimonial-item p {
        font-size: 14px;
    }

    /* Footer extra compact para móviles pequeños */
    .footer .container.py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .footer .row.g-5 {
        --bs-gutter-y: 1rem;
    }

    .footer h4 {
        font-size: 0.95rem;
    }

    .footer p, .footer .btn-link {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* Ocultar columna de enlaces rápidos también en pantallas muy pequeñas */
    .footer .col-lg-2.col-md-6 {
        display: none;
    }

    .footer .copyright {
        padding: 15px 0;
        font-size: 0.75rem;
    }

    .footer .copyright .row {
        flex-direction: column;
        text-align: center !important;
    }

    .footer .copyright .col-md-6 {
        text-align: center !important;
        margin-bottom: 5px;
    }

    /* Logo más pequeño en footer móvil */
    .footer img[alt="Logo Constructora AYA"] {
        height: 45px !important;
    }
}

/* Tablet Optimization */
@media (min-width: 768px) and (max-width: 992px) {
    .carousel-caption h1 {
        font-size: 2.5rem !important;
    }

    .navbar .navbar-nav .nav-link {
        margin-left: 15px;
        font-size: 13px;
    }
}

/* Large Desktop Optimization */
@media (min-width: 1400px) {
    .container-xxl {
        max-width: 1320px;
    }

    .carousel-caption h1 {
        font-size: 4rem !important;
    }

    .service-item:hover {
        transform: translateY(-15px);
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .65)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Facts - Modern Cards with Gradient ***/
.facts-overlay {
    position: absolute;
    padding: 40px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(255, 193, 7, 0.75));
    opacity: 0;
    transition: all .5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}

.facts .position-relative {
    border-radius: 10px;
    overflow: hidden;
    transition: all .3s ease;
}

.facts .position-relative:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(255, 193, 7, 0.3);
}

.position-relative:hover .facts-overlay {
    opacity: 1;
}

.facts-overlay h1 {
    font-size: 100px;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
    font-weight: 900;
    line-height: 1;
}

.facts-overlay h4 {
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.facts-overlay p {
    font-size: 15px;
    line-height: 1.6;
}

.facts-overlay a {
    font-weight: 600;
    transition: all .3s ease;
}

.facts-overlay a:hover {
    color: var(--primary) !important;
    transform: translateX(5px);
}


/*** Service - Modern Card Design ***/
.service-item {
    border-radius: 15px;
    overflow: hidden;
    transition: all .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 3px solid transparent;
}

.service-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity .4s ease;
    z-index: 0;
}

.service-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 193, 7, 0.3), 0 0 0 4px var(--primary);
    border-color: var(--primary);
}

.service-item:hover::after {
    opacity: 0.05;
}

.service-item img {
    transition: all .5s ease;
    filter: grayscale(0%);
}

.service-item:hover img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1);
}

.service-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: all .4s ease;
}

.service-item:hover .service-text::before {
    height: 100%;
    opacity: 0.95;
}

.service-text * {
    position: relative;
    transition: all .3s ease;
    z-index: 1;
}

.service-item:hover .service-text * {
    color: #FFFFFF !important;
    transform: translateY(-3px);
}

.service-text h5 {
    font-weight: 700;
    font-size: 18px;
}

.service-text a {
    font-weight: 600;
    letter-spacing: 1px;
}


/*** Appointment - Modern with Gradient Overlay ***/
.appointment {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.92), rgba(255, 193, 7, 0.3)), url(../img/carousel-2.jpg) center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.appointment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></svg>');
    background-size: 30px 30px;
    opacity: 0.3;
}

.appointment .form-control {
    border-radius: 8px;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all .3s ease;
}

.appointment .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}


/*** Team - Modern Card Style ***/
.team-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 3px solid transparent;
}

.team-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity .4s ease;
    z-index: 1;
}

.team-item:hover::before {
    opacity: 1;
}

.team-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 50px rgba(255, 193, 7, 0.25), 0 0 0 4px var(--primary);
    border-color: var(--primary);
}

.team-item img {
    transition: all .5s ease;
}

.team-item:hover img {
    transform: scale(1.12);
    filter: brightness(1.1) contrast(1.1);
}

.team-text {
    position: absolute;
    width: 75%;
    bottom: 30px;
    left: 0;
    transition: all .4s ease;
    border-radius: 0 8px 8px 0;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.2);
}

.team-item:hover .team-text {
    width: 100%;
    border-radius: 0;
}

.team-text h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.team-text span {
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
}

.team-text * {
    transition: all .3s ease;
}

.team-item:hover .team-text * {
    letter-spacing: 1px;
}


/*** Testimonial - Modern Design ***/
.testimonial-item {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.testimonial-item::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 120px;
    color: var(--primary);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-item:hover {
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.25);
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-item p {
    font-style: italic;
    color: var(--secondary);
    line-height: 1.8;
}

.testimonial-item h5 {
    font-weight: 700;
    color: var(--dark);
}

.testimonial-item span {
    color: var(--gray);
    font-size: 14px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 50%;
    font-size: 18px;
    transition: all .3s ease;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.6);
}


/*** Footer - Modern with Background Image ***/
.footer {
    color: rgba(255, 255, 255, 0.9);
    background: #000000 !important;
    background-color: #000000 !important;
    position: relative;
}

/* Ensure Bootstrap .bg-dark doesn't tint the footer */
.footer.bg-dark,
.bg-dark.footer {
    background: #000000 !important;
    background-color: #000000 !important;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

.footer h1, .footer h4 {
    color: var(--white);
    font-weight: 700;
}

.footer p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    text-transform: capitalize;
    transition: all .3s ease;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    margin-right: 10px;
    transition: all .3s ease;
}

.footer .btn.btn-link:hover {
    color: var(--white);
    letter-spacing: 1px;
    box-shadow: none;
    padding-left: 10px;
}

.footer .btn.btn-link:hover::before {
    color: var(--white);
}

.footer .btn-square.btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    transition: all .3s ease;
}

.footer .btn-square.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.5);
    color: var(--dark);
}

.footer .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.footer .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    background: #000000 !important;
    background-color: #000000 !important;
    backdrop-filter: none;
}

.footer .copyright a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
}

.footer .copyright a:hover {
    color: var(--white);
    letter-spacing: 0.5px;
}

/* Topbar Modern Style */
.container-fluid.bg-light {
    background: linear-gradient(90deg, var(--light) 0%, #FFFFFF 100%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.container-fluid.bg-light .border-start,
.container-fluid.bg-light .border-end {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.container-fluid.bg-light small {
    font-weight: 500;
    color: var(--secondary);
}

.container-fluid.bg-light .btn-square {
    transition: all .3s ease;
}

.container-fluid.bg-light .btn-square:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-2px);
}

/* CTA Section Before Footer */
.bg-primary.py-5 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
    position: relative;
    overflow: hidden;
}

.bg-primary.py-5::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.bg-primary.py-5::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.bg-primary .btn-light {
    background: var(--dark);
    color: var(--primary);
    font-weight: 700;
    border: 2px solid var(--dark);
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all .3s ease;
}

.bg-primary .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

/*** Marquesina Animada ***/
.marquee-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    padding: 25px 0;
    overflow: hidden;
    position: relative;
    border-top: 4px solid var(--primary);
    border-bottom: 4px solid var(--primary);
}

.marquee-section::before,
.marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.marquee-section::before {
    left: 0;
    background: linear-gradient(to right, var(--secondary), transparent);
}

.marquee-section::after {
    right: 0;
    background: linear-gradient(to left, var(--secondary), transparent);
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0 50px;
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-item i {
    color: var(--primary);
    margin: 0 20px;
    font-size: 32px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@media (max-width: 768px) {
    .marquee-item {
        font-size: 20px;
        padding: 0 30px;
    }
    
    .marquee-item i {
        font-size: 24px;
        margin: 0 15px;
    }
}

/*** About Section - Modern Design ***/
.about-image-wrapper {
    position: relative;
    z-index: 1;
}

.about-main-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-main-image:hover img {
    transform: scale(1.05);
}

.about-pattern {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.2;
}

.about-experience-badge {
    position: absolute;
    top: 30px;
    left: -30px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 8px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.4);
    animation: float 3s ease-in-out infinite;
}

.experience-content {
    background: var(--dark);
    padding: 30px 35px;
    border-radius: 15px;
    text-align: center;
}

.experience-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}

.experience-text {
    font-size: 14px;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.experience-subtitle {
    font-size: 18px;
    color: var(--primary);
    font-weight: 700;
    margin-top: 5px;
}

.about-floating-card {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--white);
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 3px solid var(--primary);
    animation: float 3s ease-in-out infinite 1s;
}

.about-floating-card h4 {
    font-size: 32px;
    font-weight: 900;
    color: var(--dark);
    margin: 10px 0 5px 0;
}

.about-floating-card p {
    font-size: 14px;
    color: var(--gray);
    font-weight: 600;
    margin: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.section-header {
    margin-bottom: 30px;
}

.section-subtitle {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin: 0;
}

.about-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--secondary);
}

.about-features {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--light);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--light);
    border-radius: 12px;
    transition: all .3s ease;
    border: 2px solid transparent;
}

.feature-item:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.2);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 24px;
    color: var(--dark);
}

.feature-item h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.about-cta {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--light);
}

/* Responsive About Section */
@media (max-width: 992px) {
    .about-experience-badge {
        position: static;
        margin-bottom: 20px;
        display: inline-block;
    }
    
    .about-floating-card {
        position: static;
        margin-top: 20px;
        display: inline-block;
    }
    
    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
    
    .experience-number {
        font-size: 36px;
    }
    
    .about-cta .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/*** CTA Banners y Botones ***/
.cta-banner-1 {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner-1::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.cta-banner-1 .container {
    position: relative;
    z-index: 1;
}

.cta-banner-1 .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.cta-banner-1 .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 193, 7, 0.5);
}

.cta-banner-1 .btn-light {
    background: var(--white);
    color: var(--dark);
    border: none;
    font-weight: 700;
}

.cta-banner-1 .btn-light:hover {
    background: var(--light);
    transform: translateY(-3px);
}

/* CTA Urgencia */
.cta-urgencia {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--primary);
}

.cta-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 2px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.cta-urgencia-side {
    background: linear-gradient(135deg, var(--dark), var(--secondary));
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-text {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* CTA Boxes */
.cta-box {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent;
    height: 100%;
}

.cta-box-featured {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: var(--dark);
}

.cta-box-featured h4,
.cta-box-featured p {
    color: var(--dark);
}

.cta-box-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.cta-box-featured .cta-box-icon {
    background: var(--dark);
}

.cta-box-icon i {
    font-size: 36px;
    color: var(--dark);
}

.cta-box-featured .cta-box-icon i {
    color: var(--primary);
}

.cta-box h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

.cta-box p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
}

.cta-link {
    color: var(--dark);
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
}

/* Botones Flotantes de Redes Sociales */
.social-float-container {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-float {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    color: white;
    text-decoration: none;
}

.social-float:hover {
    transform: scale(1.15);
    color: white;
}

.whatsapp-float {
    background: #25D366;
}

.whatsapp-float:hover {
    background: #128C7E;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.facebook-float {
    background: #1877F2;
}

.facebook-float:hover {
    background: #0d5dbf;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.6);
}

.instagram-float {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-float:hover {
    background: linear-gradient(45deg, #d67a1f 0%, #c9532a 25%, #b51f35 50%, #ab1d54 75%, #9a1474 100%);
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.6);
}

.linkedin-float {
    background: #0A66C2;
}

.linkedin-float:hover {
    background: #004182;
    box-shadow: 0 8px 25px rgba(10, 102, 194, 0.6);
}

/* Responsive CTAs */
@media (max-width: 992px) {
    .cta-urgencia-side {
        min-height: 300px;
    }
    
    .cta-box-featured {
        transform: scale(1);
    }
    
    .social-float-container {
        bottom: 80px;
        right: 20px;
        gap: 12px;
    }
    
    .social-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .cta-banner-1 .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .cta-urgencia h2 {
        font-size: 28px;
    }
    
    .social-float-container {
        flex-direction: row;
        bottom: 15px;
        right: 50%;
        transform: translateX(50%);
        gap: 10px;
    }
    
    .social-float {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
}

/* Additional Modern Enhancements */
.back-to-top {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.5);
    transition: all .3s ease;
    color: var(--dark) !important;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

/* Border Accents */
.border-primary {
    border-color: var(--primary) !important;
}

.border-start.border-5.border-primary {
    border-left: 5px solid var(--primary) !important;
    padding-left: 20px;
}

/* Page Loading Animation */
/* Removed background override - using transparent background now */

.spinner-grow.text-primary {
    color: var(--primary) !important;
}

/* Breadcrumb Modern Style */
.breadcrumb-item {
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--primary) !important;
}

/* Icon Colors */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary), #FF8C61) !important;
}

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

.bg-dark {
    background: linear-gradient(135deg, var(--dark), var(--secondary)) !important;
}

/* Animations Enhancement */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Smooth Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Selection Color */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent), var(--primary));
}

/* Focus States for Accessibility */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Remove focus outline from logo */
.navbar-brand:focus,
.navbar-brand:focus-visible,
.footer a[aria-label]:focus {
    outline: none;
    box-shadow: none;
}

/* Welcome Modal Responsive */
@media (max-width: 768px) {
    #welcomeModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    #welcomeModal .modal-content {
        border-radius: 12px !important;
    }
    
    #welcomeModal .col-md-5 {
        padding: 1.5rem 1rem !important;
        display: none !important;
    }
    
    #welcomeModal .col-md-7 {
        padding: 1.5rem 1rem !important;
    }
    
    #welcomeModal h2 {
        font-size: 1.25rem !important;
    }
    
    #welcomeModal p {
        font-size: 0.85rem;
    }
    
    #welcomeModal .mb-4 {
        margin-bottom: 1rem !important;
    }
    
    #welcomeModal .mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    #welcomeModal .mb-2 {
        margin-bottom: 0.5rem !important;
    }
    
    #welcomeModal .btn {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    #welcomeModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    #welcomeModal .col-md-7 {
        padding: 1.25rem 1rem !important;
    }
    
    #welcomeModal h2 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    #welcomeModal .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    #welcomeModal p {
        font-size: 0.8rem;
        margin-bottom: 0.75rem !important;
    }
    
    #welcomeModal .d-flex.align-items-center {
        font-size: 0.8rem;
        margin-bottom: 0.375rem !important;
    }
    
    #welcomeModal .d-flex.align-items-center i {
        font-size: 0.9rem;
    }
    
    #welcomeModal .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    #welcomeModal .gap-2 {
        gap: 0.5rem !important;
    }
    
    #welcomeModal .mt-3 {
        margin-top: 0.75rem !important;
    }
}

/* Performance Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wow {
    visibility: hidden;
}

/* Mobile-Only Responsive Styles */
@media (max-width: 991.98px) {
    /* Navbar Mobile Adjustments */
    .navbar {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .navbar .navbar-brand {
        margin-right: 0 !important;
        flex-grow: 1;
    }
    
    .navbar-collapse .navbar-nav {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }
    
    /* Carousel Mobile Adjustments */
    .carousel-item img {
        height: 500px !important;
    }
    
    .carousel-caption .display-2 {
        font-size: calc(1.575rem + 3.9vw) !important;
    }
    
    .carousel-caption .display-lg-2 {
        font-size: 2.5rem !important;
    }
    
    .carousel-caption .display-3 {
        font-size: calc(1.3rem + 0.6vw) !important;
    }
    
    .carousel-caption .fs-5 {
        font-size: 1rem !important;
    }
    
    .carousel-caption .fs-6 {
        font-size: 0.875rem !important;
    }
    
    .carousel-caption .text-center {
        text-align: center !important;
    }
    
    .carousel-caption .d-flex {
        display: flex !important;
    }
    
    .carousel-caption .flex-column {
        flex-direction: column !important;
    }
    
    .carousel-caption .justify-content-center {
        justify-content: center !important;
    }
}

/* Desktop Styles (Default) */
@media (min-width: 992px) {
    /* Navbar Desktop - Original Styles */
    .navbar {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    .navbar-collapse .navbar-nav {
        margin-left: auto !important;
        text-align: start !important;
    }
    
    /* Carousel Desktop - Original Sizes */
    .carousel-item img {
        height: 600px !important;
    }
    
    .carousel-caption .display-3 {
        font-size: 2rem !important;
    }
    
    .carousel-caption .display-lg-2 {
        font-size: 4.5rem !important;
    }
    
    .carousel-caption .fs-6 {
        font-size: 1.25rem !important;
    }
    
    .carousel-caption .fs-lg-5 {
        font-size: 1.25rem !important;
    }
    
    .carousel-caption .text-lg-start {
        text-align: start !important;
    }
    
    .carousel-caption .flex-sm-row {
        flex-direction: row !important;
    }
    
    .carousel-caption .justify-content-lg-start {
        justify-content: flex-start !important;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .back-to-top {
        display: none !important;
    }
}

/* Advantages carousel styles */
.advantages-carousel .adv-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantages-carousel .adv-item .text-center {
    width: 260px; /* fixed visual size to keep consistency */
    max-width: 100%;
}

.advantages-carousel .adv-icon {
    width: 64px !important;
    height: 64px !important;
}

.advantages-carousel .adv-icon i {
    font-size: 20px !important;
}

/* Reduce vertical spacing inside carousel items */
.advantages-carousel .adv-item .p-3 {
    padding: 0.75rem !important;
}

/* Ensure nav buttons are visible on dark background */
.advantages-carousel .owl-nav button.owl-prev,
.advantages-carousel .owl-nav button.owl-next {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border: none;
}

.advantages-carousel .owl-dots {
    display: none;
}

/* ═══════════════════════════════════════════════════════════
   FORMULARIO COTIZACIÓN ULTRA PREMIUM - Two Column Layout
═══════════════════════════════════════════════════════════ */

/* Modal container */
#cotizacionModal .modal-dialog {
    max-width: 860px;
    margin: 1rem auto;
}

#cotizacionModal .modal-content {
    border: none;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.45);
    animation: cot-enter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: row;
    min-height: 580px;
}

@keyframes cot-enter {
    from { transform: scale(0.88) translateY(30px); opacity: 0; }
    to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

/* ── PANEL IZQUIERDO (Branding) ───────────────────────── */
.cot-panel-left {
    width: 38%;
    flex-shrink: 0;
    background:
        linear-gradient(160deg, rgba(10,10,10,0.92) 0%, rgba(26,26,26,0.88) 50%, rgba(0,0,0,0.95) 100%),
        url('../img/servicios-encabezado.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
}

/* Línea dorada izquierda */
.cot-panel-left::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #FFC107 0%, #FFD54F 50%, #FFC107 100%);
    background-size: 100% 200%;
    animation: shimmer-vert 3s linear infinite;
}

/* Brillo diagonal de fondo */
.cot-panel-left::after {
    content: '';
    position: absolute;
    top: -40%; right: -40%;
    width: 80%; height: 80%;
    background: radial-gradient(circle, rgba(255,193,7,0.08) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes shimmer-vert {
    0%   { background-position: 0 -100%; }
    100% { background-position: 0  100%; }
}

/* Logo / ícono top */
.cot-brand-icon {
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #FFC107, #FFD54F);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #111;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(255,193,7,0.35);
    position: relative;
    z-index: 1;
}

/* Título y subtítulo del panel */
.cot-brand-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.cot-brand-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 32px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Estadísticas */
.cot-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.cot-stat {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cot-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,193,7,0.12);
    border: 1px solid rgba(255,193,7,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #FFC107;
    flex-shrink: 0;
}

.cot-stat-text strong {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.cot-stat-text span {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

/* Divisor */
.cot-panel-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255,193,7,0.3), transparent);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

/* Trust badges */
.cot-trust-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.cot-trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.cot-trust-item i {
    color: #4CAF50;
    font-size: 13px;
    width: 16px;
    text-align: center;
}

/* ── PANEL DERECHO (Formulario) ───────────────────────── */
.cot-panel-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow-y: auto;
    max-height: 90vh;
}

/* Barra dorada superior del formulario */
.cot-form-header {
    background: linear-gradient(135deg, #111 0%, #222 100%);
    padding: 22px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cot-form-header h6 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
}

.cot-form-header small {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

/* Botón cerrar */
.cot-x {
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cot-x:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
    transform: rotate(90deg);
}

/* Cuerpo del formulario */
.cot-form {
    padding: 28px 32px 10px;
    flex: 1;
}

/* Grupo de campo */
.cot-field {
    position: relative;
    margin-bottom: 20px;
}

.cot-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    margin-bottom: 7px;
    transition: color 0.2s;
}

.cot-label i {
    font-size: 12px;
    color: #FFC107;
}

.cot-field:focus-within .cot-label {
    color: #FFC107;
}

/* Input wrapper con ícono interno */
.cot-input-wrap {
    position: relative;
}

.cot-input-wrap .cot-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 1;
}

.cot-input-wrap:focus-within .cot-input-icon {
    color: #FFC107;
}

/* Para textarea el ícono va arriba */
.cot-input-wrap.cot-ta-wrap .cot-input-icon {
    top: 16px;
    transform: none;
}

/* Inputs y selects */
.cot-in {
    width: 100%;
    padding: 13px 16px 13px 42px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    background: #fafafa;
    transition: all 0.25s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.cot-in::placeholder {
    color: #ccc;
    font-weight: 400;
}

.cot-in:focus {
    border-color: #FFC107;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,193,7,0.1);
}

.cot-in:not(:placeholder-shown):valid {
    border-color: #4CAF50;
    background: #f8fff9;
}

/* Sin ícono en algún campo específico */
.cot-in.no-icon {
    padding-left: 16px;
}

/* Grilla 2 columnas */
.cot-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Select */
select.cot-in {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FFC107' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Textarea */
.cot-ta {
    min-height: 80px;
    resize: none;
    line-height: 1.6;
    padding-top: 13px;
}

/* Separador de sección */
.cot-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #ddd;
}

.cot-divider::before,
.cot-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ebebeb, transparent);
}

/* ── PIE / BOTÓN ─────────────────────────────────────── */
.cot-bottom {
    padding: 0 32px 28px;
    background: #fff;
}

/* Botón WhatsApp ultra premium */
.cot-wa {
    width: 100%;
    padding: 17px 24px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #25D366 0%, #1db954 40%, #128C7E 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.35s ease;
    box-shadow: 0 8px 28px rgba(37,211,102,0.4);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

/* Shimmer animado */
.cot-wa::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: wa-shimmer 2.8s ease-in-out infinite;
}

@keyframes wa-shimmer {
    0%        { left: -100%; }
    55%, 100% { left: 160%;  }
}

.cot-wa i {
    font-size: 22px;
}

.cot-wa:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(37,211,102,0.55);
}

.cot-wa:active {
    transform: translateY(-2px);
}

/* Nota de seguridad */
.cot-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: #bbb;
    margin-bottom: 14px;
    font-weight: 500;
}

.cot-secure i {
    color: #4CAF50;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 767px) {
    #cotizacionModal .modal-dialog {
        margin: 8px;
        max-width: calc(100% - 16px);
    }

    #cotizacionModal .modal-content {
        flex-direction: column;
        min-height: auto;
        max-height: 95vh;
        overflow-y: auto;
    }

    .cot-panel-left {
        width: 100%;
        padding: 28px 24px;
    }

    .cot-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 0;
    }

    .cot-stat {
        flex: 1;
        min-width: 120px;
    }

    .cot-brand-sub,
    .cot-panel-divider,
    .cot-trust-list {
        display: none;
    }

    .cot-form {
        padding: 20px 20px 8px;
    }

    .cot-bottom {
        padding: 0 20px 20px;
    }

    .cot-form-header {
        padding: 18px 20px;
    }

    .cot-2col {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


/* Overlay del modal más oscuro */
#cotizacionModal .modal-backdrop,
.modal-backdrop {
    backdrop-filter: blur(4px);
}


/* ═══════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER PREMIUM
═══════════════════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 20px 0;
    transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    visibility: hidden;
}

.cookie-banner.show {
    bottom: 0;
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
}

.cookie-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FFC107, #FFD54F);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #111;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255,193,7,0.3);
}

.cookie-text {
    flex: 1;
}

.cookie-text strong {
    display: block;
    font-size: 16px;
    color: #111;
    margin-bottom: 4px;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.cookie-buttons {
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 10px 32px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .cookie-buttons {
        width: 100%;
        text-align: center;
    }
    .cookie-buttons .btn {
        width: 100%;
    }
}
