:root {
    --tech-blue: #0d6efd;
    --tech-dark: #212529;
    --tech-light: #f8f9fa;
    --tech-cyan: #0dcaf0;
    --tech-gradient: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    --modal-glass-bg: rgba(255, 255, 255, 0.95);
    --modal-glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 1. Navbar & Header */
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.navbar-brand img {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Navbar Collapse Visibility Fix */
.navbar-collapse {
    background-color: var(--tech-dark) !important;
    z-index: 9999 !important;
    padding: 1rem;
}

.hero-section {
    background: var(--tech-dark);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
}

.bg-tech-blue {
    background: var(--tech-blue);
}

/* 2. Buttons & Calls to Action */
.btn-primary {
    background-color: var(--tech-blue);
    border-color: var(--tech-blue);
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(13, 110, 253, 0.3);
}

.btn-action-cyan {
    background-color: #fff;
    color: var(--tech-blue);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-action-cyan:hover {
    background-color: var(--tech-light);
    color: #0b5ed7;
    transform: scale(1.05);
}

@keyframes pulse-whatsapp {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 5s infinite ease-in-out;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}

/* 3. Cards */
.card-custom {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Force text color in cards for visibility */
/* Force text color in cards for visibility */
.card .card-body {
    color: #333 !important;
    padding: 1rem !important;
    /* Compact padding */
}

/* Compact Lists inside cards */
.card .card-body ul li {
    margin-bottom: 2px !important;
}

.card .card-body ul {
    margin-bottom: 1rem;
    line-height: 1.2;
}

.card .card-body small,
.card .card-body li,
.card .card-body p,
.card .card-body span {
    color: #333;
}

.card .card-body .text-muted {
    color: #6c757d !important;
}

.card .card-body .text-info {
    color: #0dcaf0 !important;
}

/* PyME Card Specifics - Visibility Logic Fix */
.card-pyme .card-body {
    background-color: #ffffff !important;
    /* Ensure white background */
    color: #333333 !important;
    /* Force dark text */
}

/* Force dark text on all elements inside PyME body */
.card-pyme .card-body small,
.card-pyme .card-body li,
.card-pyme .card-body p,
.card-pyme .card-body span,
.card-pyme .card-body div,
.card-pyme .card-body strong,
.card-pyme .card-body h4 {
    color: #333333 !important;
    position: relative;
    /* Requested visibility fix */
    z-index: 10;
    /* Requested visibility fix */
}

.card-pyme .text-muted {
    color: #6c757d !important;
    /* Restore standard muted color */
}

/* Compaction Request: PyME Lists */
.card-pyme ul li {
    margin-bottom: 2px !important;
    line-height: 1.1 !important;
}

/* Accordion Interactivity Fix */
.accordion-button {
    cursor: pointer;
    position: relative;
    z-index: 10;
}

/* Strict Spacing for Specs Lists (Flexbox) */
.card-body .d-flex .ps-2 {
    line-height: 1.2 !important;
    margin-bottom: 0 !important;
}

/* Strict Icon Alignment */
.card-body .d-flex .text-center i {
    display: inline-block;
    width: 25px;
    text-align: center;
}

/* Mobile Specification Alignment (<768px) */
@media (max-width: 768px) {
    .spec-value {
        display: block;
        /* Forces new line on mobile */
        margin-left: 5px;
        /* Small indentation alignment */
        margin-top: 0;
    }

    /* Ensure Icon stays at 25px even on mobile */
    .card-body .d-flex .text-center i {
        min-width: 25px;
    }
}

.card .card-body .text-info {
    color: #0dcaf0 !important;
}

/* 4. Features Section */
.feature-icon {
    font-size: 2.5rem;
    color: var(--tech-blue);
    margin-bottom: 20px;
}

/* 5. Footer */
footer {
    background-color: var(--tech-dark);
    color: rgba(255, 255, 255, 0.7);
}

footer h5 {
    color: #fff;
    margin-bottom: 20px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: white;
}

/* 6. Mobile Responsiveness Defaults */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 1.1rem;
        width: 100%;
        margin-bottom: 10px;
    }

    .d-grid.d-sm-flex {
        display: block !important;
    }

    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* 9. Renta Page Specifics */
.sticky-renta-nav {
    position: sticky;
    top: 76px;
    /* Adjust based on main header height if needed */
    z-index: 1020;
    transition: top 0.3s;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.plan-highlight {
    border: 2px solid #0d6efd !important;
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.15) !important;
    transform: scale(1.02);
    z-index: 1;
    background-color: #fff;
}

----------------------------------------------------------------- */ .card-pyme {
    background-color: #ffffff !important;
    color: #333333 !important;
    position: relative;
    z-index: 99 !important;
    /* Requested priority */
    border: 2px solid var(--tech-blue) !important;
    overflow: hidden !important;
    position: relative;
    z-index: 1;
}

/* Force visibility on all internal text elements */
.card-pyme h4,
.card-pyme li,
.card-pyme small,
.card-pyme span,
.card-pyme div,
.card-pyme strong,
.card-pyme p {
    color: #333333 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block;
    /* Ensure it's not hidden */
    z-index: 100;
    /* Above the card layer */
    position: relative;
}

/* Fix for icons if they were white */
.card-pyme .fas,
.card-pyme .fab,
.card-pyme .fa {
    /* Keep their specific colors (primary, warning) but ensure opacity */
    opacity: 1 !important;
    text-shadow: none !important;
}

/* Header Override - Ensure header text is white on dark bg */
.card-pyme .card-header,
.card-pyme .card-header h3 {
    color: #ffffff !important;
}

/* Badge Override - Ensure badge text is white on red bg */
.card-pyme .badge {
    color: #ffffff !important;
    z-index: 101;
    /* Above text overrides */
}

.card-pyme .text-muted {
    color: #6c757d !important;
}


@media (max-width: 768px) {
    .plan-highlight {
        transform: none;
    }

    .sticky-renta-nav {
        top: 60px;
        /* Mobile header height adjustment */
    }
}


/* 10. Modern Modal System */
.modal-glass-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-glass-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.modal-glass-content {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    width: 90%;
    max-width: 550px !important;
    overflow: visible;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-glass-backdrop.show .modal-glass-content {
    transform: scale(1);
}

/* Modal Tabs - Strict Consistency Fix */
.nav-pills-custom .nav-link {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    /* Base border */
}

/* Inactive State: Blue Text/Icon, White Background */
.nav-pills-custom .nav-link:not(.active) {
    background-color: #ffffff !important;
    color: var(--tech-blue) !important;
    border-color: var(--tech-blue) !important;
}

.nav-pills-custom .nav-link:not(.active) i {
    color: var(--tech-blue) !important;
}

.nav-pills-custom .nav-link:not(.active):hover {
    background-color: #f8f9fa !important;
}

/* Active State: White Text/Icon, Blue Background */
.nav-pills-custom .nav-link.active {
    background-color: var(--tech-blue) !important;
    color: #ffffff !important;
    border-color: var(--tech-blue) !important;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.nav-pills-custom .nav-link.active i {
    color: #ffffff !important;
}


/* Modal Header */
.modal-glass-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Modal Body */
.modal-glass-body {
    padding: 1.5rem;
    overflow-y: auto;
    /* Scroll internally */
    max-height: 70vh;
    /* Limit height to trigger scroll if needed */
}

/* Close Button - Redesigned */
.btn-close-custom {
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 2050;
    /* Super High Z-Index */
    background: #dc3545;
    /* Red Intensity */
    color: white;
    border: 2px solid white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-close-custom i {
    color: white;
    /* Ensure Icon is white */
}

.btn-close-custom:hover {
    background: #bb2d3b;
    color: white;
    transform: rotate(90deg) scale(1.1);
}



/* 11. New Oval Specs Button */
.btn-specs-oval {
    border-radius: 50rem;
    /* Oval/Pill shape */
    border: 1px solid var(--tech-blue);
    /* Corporate Blue Border */
    color: var(--tech-blue);
    /* Corporate Blue Text */
    background: rgba(255, 255, 255, 0.7);
    /* Slightly higher opacity for readability over images/cards */
    padding: 0.375rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    position: relative;
    z-index: 10;
    /* Lowered to prevent overlap with navbar */
    /* Higher than badges */
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-specs-oval:hover {
    background: var(--tech-blue);
    color: white !important;
    /* Force white text on hover */
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
    /* Soft Glow */
    border-color: var(--tech-blue);
    text-decoration: none;
}

/* 12. Impressions Banner */
.imp-banner {
    height: auto !important;
    padding: 8px !important;
    line-height: 1.4 !important;
    display: block !important;
    font-weight: bold !important;
    background-color: #ffda05 !important;
    /* Yellow for ALL plans */
    color: #000;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    border: 1px solid #d4b400;
}

/* 13. Consultoria / Personalizado Text */
.consult-title {
    font-weight: 700;
    color: var(--tech-blue);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.text-justify {
    text-align: justify;
}

.consult-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 1rem;
}

.consult-benefits {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 1.5rem;
}

.consult-benefits li {
    margin-bottom: 0.4rem;
    display: flex;
    align-items: flex-start;
}

.consult-benefits i {
    width: 20px;
    margin-top: 3px;
    color: var(--tech-blue);
}

/* 14. reCAPTCHA Badge Handling */
.grecaptcha-badge {
    bottom: 95px !important;
    /* 95px from bottom */
    transition: all 0.3s ease;
    visibility: visible !important;
}

@media (max-width: 768px) {
    .planes-container {
        /* Asegúrate de que este sea el ID/Clase padre de las tarjetas */
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 15px !important;
        gap: 15px !important;
        padding: 20px !important;
        -webkit-overflow-scrolling: touch;
    }

    .card-plan {
        /* Clase de tus tarjetas */
        flex: 0 0 85% !important;
        scroll-snap-align: center !important;
        scroll-snap-stop: always !important;
        /* Force stops */
    }

    /* Ocultar scrollbar */
    .planes-container::-webkit-scrollbar {
        display: none;
    }

    /* Indicador de Deslizamiento */
    .scroll-indicator {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }

    .dot {
        width: 8px;
        height: 8px;
        background: #ccc;
        border-radius: 50%;
    }

    .dot.active {
        background: #007bff;
    }
}

/* Tablet Layout (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .planes-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        /* 2 por fila en tablet */
        gap: 20px !important;
        overflow-x: visible !important;
        scroll-snap-type: none !important;
        padding: 0 !important;
    }

    .card-plan {
        flex: none !important;
        width: 100% !important;
        scroll-snap-align: none !important;
        margin-right: 0 !important;
    }

    .scroll-indicator,
    .scroll-dots {
        display: none !important;
    }
}

/* Desktop Layout (>= 992px) */
@media (min-width: 992px) {
    .planes-container {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
        gap: 20px !important;
        overflow-x: visible !important;
        scroll-snap-type: none !important;
        padding: 0 !important;
        justify-content: center;
    }

    .card-plan {
        flex: none !important;
        width: 100% !important;
        scroll-snap-align: none !important;
        margin-right: 0 !important;
    }

    .scroll-indicator,
    .scroll-dots {
        display: none !important;
    }
}


/* Global Shimmer Animation for CTA Buttons */
.btn-animate {
    position: relative;
    overflow: hidden !important;
    /* Clip the shimmer */
    animation: none;
    /* No base animation */
}

/* Enforce Black Text for B&N Specs */
#plans-bn-container .spec-value,
#plans-bn-container strong,
#plans-bn-container .card-body {
    color: #000000 !important;
}

/* Shimmer Overlay */
.btn-animate::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: all 0.3s;
    animation: shimmer-pass 3s infinite linear;
}

@keyframes shimmer-pass {
    0% {
        left: -100%;
    }

    100% {
        left: 150%;
    }

    /* Slight extend to ensure full pass */
}

.btn-animate:hover::before {
    animation: none;
    /* Stop on hover */
}

.btn-animate:hover {
    transform: scale(1.05);
}

/* Utility Classes */
.shadow-hover {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
    transform: translateY(-5px);
}

.border-dashed {
    border-style: dashed !important;
    border-color: #dee2e6 !important;
}

/* Letter Spacing Utility */

/* Features Section Redesign */
.text-gradient-title {
    background: linear-gradient(to right, #00B4D8, #0a192f);
    /* Cyan to Deep Dark */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.icon-gradient-fill {
    background: linear-gradient(to bottom, #60A5FA, #1D4ED8);
    /* Light Blue to Intense Blue */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.card-glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card-glass-effect:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(13, 110, 253, 0.2);
}


.card-glass-effect:hover .icon-gradient-fill {
    transform: scale(1.1);
}

/* Logo Shine Effect */
.logo-hover-shine {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: block;
    /* Ensure ::after works on img container if wrapped, or on img if possible (img::after doesn't work well) - actually user asked for effect on logos.
    Wait, ::after psuedo-element doesn't work on <img> tags. I need to wrap them or just use filter brightness/drop-shadow?
    User asked for "brillo sutil" (subtle shine). A brightness filter transition is safer on img tags.
    */
    filter: brightness(1);
}

.logo-hover-shine:hover {
    transform: scale(1.05);
    /* Slight scale as requested */
    filter: brightness(1.1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* Let's try to be more sophisticated if possible, but <img> tags are limiting for internal shine. 
   I will use the container approach in the HTML if I want the sweep.
   Or... I can just use filter: drop-shadow and brightness which looks like a glow/shine.
   User said "efecto de brillo sutil".
   Let's stick to the filter brightness/drop-shadow for simplicity and robustness on <img> tags.
*/

/* Mobile Horizontal Scroll Optimization */
/* Mobile Horizontal Scroll Optimization */
@media (max-width: 768px) {
    .mobile-horizontal-scroll {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px !important;
        scrollbar-width: none;

        /* Centering Logic: 
           Benefits Card (85%) -> Gap is 15% -> Side padding is 7.5%
           Services Card (75%) -> Gap is 25% -> Side padding is 12.5%
        */
        /* Remove generic padding, use specific IDs below */
        /* New Centering System */
        justify-content: flex-start !important;
        padding: 0 10% !important;
        gap: 0;
    }

    .mobile-horizontal-scroll::-webkit-scrollbar {
        display: none;
    }

    /* Uniform card sizing for centering */
    .mobile-horizontal-scroll>.col,
    .mobile-horizontal-scroll>.col-md-5 {
        flex: 0 0 80vw !important;
        width: 80vw !important;
        max-width: 80vw !important;
        margin-right: 20px !important;
        scroll-snap-align: center !important;
        scroll-snap-stop: always !important;
        /* Force stop */
        margin-left: 0 !important;
    }

    /* Pagination Dots */
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
        background-color: #e9ecef;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .carousel-dot.active {
        background-color: #0d6efd;
        /* Brand Blue */
        transform: scale(1.2);
    }

    /* Explicit cleanup of conflicting paddings */
    #benefits-carousel,
    #services-carousel {
        padding-inline: 0 !important;
        scroll-padding-inline: 0 !important;
    }

    /* Fix Logos */
    .logo-hover-shine {
        max-height: 40px;
        width: auto;
    }

    .d-flex.justify-content-center.align-items-center.gap-3.gap-md-5.flex-nowrap.overflow-hidden {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Fix Logos */
    .logo-hover-shine {
        max-height: 40px;
        width: auto;
    }

    .d-flex.justify-content-center.align-items-center.gap-3.gap-md-5.flex-nowrap.overflow-hidden {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
    }
}

/* Navbar Customization using Corporate Colors */
.navbar-toggler {
    border-color: rgba(0, 180, 216, 0.5) !important;
    /* Thin cyan border */
}

.navbar-toggler-icon {
    /* Cyan #00B4D8 Encoded for SVG Stroke */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2300B4D8' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-collapse {
    background-color: #1B263B !important;
    /* Corporate Navy */
}

/* 15. Shimmer Animation for Conversion Buttons */


/* Base button styles for shimmer */
.btn-primary,
.btn-dark,
.btn-outline-primary {
    position: relative;
    overflow: hidden;
}




/* Badge Positioning Override */
.badge-highlight-custom {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    /* Below Navbar */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Ensure Parent allows badge to hang out */
.card-pyme {
    overflow: hidden !important;
    position: relative;
    z-index: 1;
}

/* Image Base Gradient */
.img-gradient-base {
    position: relative;
    display: inline-block;
}

.img-gradient-base::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}