/* ==============================================
   K4iRox Custom Styles
   La IA que domina el momento oportuno
   Developed by IAWOT
   ============================================== */

/* ==============================================
   BUTTON STYLES - Outline to Fill Effect
   All buttons except "Solicitar Demo"
   ============================================== */

/* Global button fix - ensure complete fill on hover */
.btn {
    overflow: hidden !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Light buttons - Outline style */
.btn-light {
    background-color: transparent !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
}

.btn-light:hover,
.btn-light:focus,
.btn-light:active,
.btn-light:focus-visible {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #212529 !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
    outline: none !important;
}

/* Outline danger buttons - For "Leer Más" and similar */
.btn-outline-danger {
    background-color: transparent !important;
    background-image: none !important;
    color: #dc3545 !important;
    border: 2px solid #dc3545 !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active,
.btn-outline-danger:focus-visible {
    background-color: #dc3545 !important;
    background-image: none !important;
    color: #ffffff !important;
    border-color: #dc3545 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
    outline: none !important;
}

/* Small buttons */
.btn-sm {
    padding: 0.4rem 1rem !important;
}

/* CTA section button (Protege tus datos) */
.cta-section__content .btn-light {
    background-color: transparent !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
}

.cta-section__content .btn-light:hover,
.cta-section__content .btn-light:focus,
.cta-section__content .btn-light:active,
.cta-section__content .btn-light:focus-visible {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #704ee7 !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
    outline: none !important;
}

/* "Saber Más" button in About section */
.btn-primary-gradient:not([href="contact.html"]) {
    background-image: none !important;
    background-color: transparent !important;
    color: #704ee7 !important;
    border: 2px solid #704ee7 !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
}

.btn-primary-gradient:not([href="contact.html"]):hover,
.btn-primary-gradient:not([href="contact.html"]):focus,
.btn-primary-gradient:not([href="contact.html"]):active,
.btn-primary-gradient:not([href="contact.html"]):focus-visible {
    background-image: linear-gradient(120deg, #e8428c 24.11%, #704ee7 75.89%) !important;
    background-color: #704ee7 !important;
    color: #ffffff !important;
    border-color: transparent !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(112, 78, 231, 0.4);
    outline: none !important;
}

/* Keep "Solicitar Demo" buttons with original style - ALWAYS FILLED */
.btn-primary-gradient[href="contact.html"] {
    background-image: linear-gradient(120deg, #e8428c 24.11%, #704ee7 75.89%) !important;
    background-color: #704ee7 !important;
    border: none !important;
    color: #ffffff !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease !important;
}

.btn-primary-gradient[href="contact.html"]:hover {
    background-image: linear-gradient(120deg, #e8428c 24.11%, #704ee7 75.89%) !important;
    background-color: #704ee7 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(112, 78, 231, 0.5);
    filter: brightness(1.1);
}

/* Service cards arrow buttons */
.service-card a.link,
.process-card a.link {
    transition: all 0.3s ease !important;
}

.service-card a.link:hover,
.process-card a.link:hover {
    background-color: #704ee7 !important;
    border-color: #704ee7 !important;
    color: #ffffff !important;
}

/* Pricing card buttons */
.pricing-card .btn-outline-light {
    background-color: transparent !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
}

.pricing-card .btn-outline-light:hover,
.pricing-card .btn-outline-light:focus,
.pricing-card .btn-outline-light:active,
.pricing-card .btn-outline-light:focus-visible {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #212529 !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
    outline: none !important;
}

/* Process card buttons (Planes page) */
.process-card .btn-light {
    background-color: transparent !important;
    background-image: none !important;
    color: #704ee7 !important;
    border: 2px solid #704ee7 !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
}

.process-card .btn-light:hover,
.process-card .btn-light:focus,
.process-card .btn-light:active,
.process-card .btn-light:focus-visible {
    background-color: #704ee7 !important;
    background-image: none !important;
    color: #ffffff !important;
    border-color: #704ee7 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(112, 78, 231, 0.4);
    outline: none !important;
}

/* Popular pricing card button */
.popular-pricing-card .btn-primary-gradient {
    background-image: linear-gradient(120deg, #e8428c 24.11%, #704ee7 75.89%) !important;
    border: none !important;
    color: #ffffff !important;
}

/* Newsletter and form submit buttons - keep original */
button[type="submit"] {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* General button fixes for complete fill */
.btn {
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

/* Ensure all buttons fill completely on hover */
.btn.rounded-pill {
    border-radius: 50rem !important;
}

.btn:hover,
.btn:focus,
.btn:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Override Bootstrap button states */
.btn-light:not([href="contact.html"]):hover,
.btn-light:not([href="contact.html"]):focus,
.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: #ffffff !important;
    background-image: none !important;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    background-color: #dc3545 !important;
    background-image: none !important;
}

/* ==============================================
   SCROLLER BANNER TEXT - Continuous Gradient
   ============================================== */

/* Apply continuous gradient to each h2 text in scroller */
.scroller-x__list h2 {
    background: linear-gradient(90deg, 
        #e8428c 0%, 
        #704ee7 25%, 
        #428ce8 50%, 
        #704ee7 75%, 
        #e8428c 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: gradientFlow 8s linear infinite;
}

/* Remove any outline or stroke effects */
.text-outline {
    -webkit-text-stroke: none !important;
    text-stroke: none !important;
    background: linear-gradient(90deg, 
        #e8428c 0%, 
        #704ee7 25%, 
        #428ce8 50%, 
        #704ee7 75%, 
        #e8428c 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: gradientFlow 8s linear infinite;
}

/* Gradient flow animation */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* Maintain the original scroller movement animation - ACCELERATED */
.scroller-x__list {
    /* Override default animation speed - much faster */
    animation-duration: 20s !important; /* Reduced from 60s to 20s for faster movement */
}

/* Optional: Different speeds for different screen sizes */
@media (max-width: 991px) {
    .scroller-x__list {
        animation-duration: 18s !important; /* Slightly faster on tablets */
    }
}

@media (max-width: 767px) {
    .scroller-x__list {
        animation-duration: 15s !important; /* Even faster on mobile for better effect */
    }
}

/* ==============================================
   AUTO-FIT IMAGES - No distortion, perfect fit
   ============================================== */

/* About Section Images - Auto-fit without distortion */
.about-main-img {
    width: 438px !important;
    height: 748px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 15px;
    display: block;
}

.about-secondary-img {
    width: 628px !important;
    height: 251px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 15px;
    display: block;
}

/* All images with img-fluid class - Better fit */
.img-fluid {
    object-fit: contain;
    object-position: center;
    max-width: 100%;
    height: auto;
}

/* Override for specific sections that need cover */
.about-section .img-fluid,
.service-section .img-fluid,
.blog-section .img-fluid {
    object-fit: cover !important;
}

/* Service section images */
.service-card img,
.process-card img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

/* Service card icons - Fix distortion on mobile */
.service-card__icon img {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Tablet adjustments for service icons */
@media (max-width: 991px) {
    .service-card__icon img {
        width: 44px !important;
        height: 44px !important;
    }
}

/* Mobile adjustments - Hide service icons and adjust layout */
@media (max-width: 767px) {
    /* Hide all service card icons on mobile */
    .service-card .d-grid.place-content-center.w-20.h-20:first-child,
    .service-card__icon,
    .popular-service-section .d-flex > .d-grid.place-content-center.w-20.h-20:has(img) {
        display: none !important;
    }
    
    /* Adjust service card padding for compact mobile view */
    .service-card {
        padding: 1.5rem !important;
    }
    
    /* Adjust gap between elements */
    .service-card .d-flex {
        gap: 1rem !important;
    }
    
    /* Make text content take full available width */
    .service-card .flex-grow-1 {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
    
    /* Keep arrow button visible and properly sized */
    .service-card a.d-grid.place-content-center.w-20.h-20:last-child {
        display: grid !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
    }
}

/* Small mobile adjustments */
@media (max-width: 576px) {
    /* Even more compact on very small screens */
    .service-card {
        padding: 1.25rem !important;
    }
    
    /* Slightly smaller arrow button on very small screens */
    .service-card a.d-grid.place-content-center.w-20.h-20:last-child {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
}

/* Hero robot image - Keep aspect ratio */
.hero-3__img img {
    object-fit: contain !important;
    object-position: center !important;
}

/* Blog and content images */
.blog-img,
.content-img,
.card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
}

/* User avatars and testimonials */
.user-img,
.avatar-img,
.testimonial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}

/* Background images fix */
.bg-img,
.section-bg {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* CTA Section - Custom background with perfect fit */
.cta-section {
    background-image: url(../img/fabio-oyXis2kALVg-unsplash.jpg) !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    position: relative;
    padding: 0 !important;
    margin-bottom: 0 !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
}

/* CTA Content - Full width container */
.cta-section .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* CTA Content Box - Reduced height and full width */
.cta-section__content {
    background-size: cover !important;
    background-position: center !important;
    isolation: isolate !important;
    position: relative;
    z-index: 1;
    min-height: 280px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
}

/* Section spacing override for CTA */
.cta-section__content.section-space-md-y {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Maintain the gradient overlay effect */
.cta-section__content::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(120deg, #e8428c 24.11%, #704ee7 75.89%);
    opacity: 0.3;
    z-index: -1;
    border-radius: 0 !important;
}

/* Reset container padding for other sections */
.section-space-y .container {
    max-width: 1320px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

/* Info section background */
.info-section {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Video section background */
.video-section {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Responsive adjustments for about images */
@media (max-width: 1200px) {
    .about-main-img {
        width: 100% !important;
        max-width: 438px !important;
        height: auto !important;
        min-height: 500px !important;
    }
    
    .about-secondary-img {
        width: 100% !important;
        max-width: 628px !important;
        height: auto !important;
        min-height: 200px !important;
    }
}

@media (max-width: 768px) {
    .about-main-img {
        width: 100% !important;
        height: 400px !important;
    }
    
    .about-secondary-img {
        width: 100% !important;
        height: 180px !important;
    }
}

/* CTA Section Responsive - Reduced height, full width */
@media (max-width: 1400px) {
    .cta-section__content {
        min-height: 260px !important;
    }
    
    .cta-section__content.section-space-md-y {
        padding-top: 45px !important;
        padding-bottom: 45px !important;
    }
}

@media (max-width: 1200px) {
    .cta-section__content {
        min-height: 250px !important;
    }
    
    .cta-section__content.section-space-md-y {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

@media (max-width: 992px) {
    .cta-section__content {
        min-height: 240px !important;
    }
    
    .cta-section__content.section-space-md-y {
        padding-top: 35px !important;
        padding-bottom: 35px !important;
    }
}

@media (max-width: 768px) {
    .cta-section__content {
        min-height: 220px !important;
    }
    
    .cta-section__content.section-space-md-y {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Adjust text sizes for mobile */
    .cta-section__content h2 {
        font-size: 1.5rem !important;
    }
    
    .cta-section__content p {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 576px) {
    .cta-section__content {
        min-height: 200px !important;
    }
    
    .cta-section__content.section-space-md-y {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .cta-section__content h2 {
        font-size: 1.25rem !important;
    }
    
    .cta-section__content p {
        font-size: 0.8rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Logo Styling - Clean white logo without filters */
.logo__img {
    max-height: 55px;
    width: auto;
    transition: all 0.3s ease;
    vertical-align: middle;
    display: inline-block;
}

/* Navbar logo alignment fix */
.navbar .logo {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Adjust navbar height to accommodate larger logo */
.navbar {
    min-height: 80px;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Align nav items vertically */
.navbar-nav {
    align-items: center !important;
}

/* Fix navbar background issues on scroll */
.navbar-overlay {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background-color: transparent !important;
}

/* Remove white background on all states */
.navbar-overlay::after {
    background-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Dark navbar specific styles */
.navbar-overlay.navbar--dark {
    background-color: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.navbar-overlay.navbar--dark::after {
    display: none !important;
}

/* On scroll - maintain dark background */
.navbar-sticky-init .navbar-overlay {
    background-color: transparent !important;
}

.navbar-sticky-init .navbar-overlay.navbar--dark {
    background-color: rgba(33, 37, 41, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
}

.navbar-sticky-init .navbar-overlay::after {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Mobile navbar fixes */
@media (max-width: 991px) {
    .navbar-overlay {
        background-color: rgba(33, 37, 41, 0.98) !important;
    }
    
    .navbar-overlay::after {
        display: none !important;
    }
    
    .navbar-collapse {
        background-color: rgba(33, 37, 41, 0.98) !important;
        margin-top: 10px;
        padding: 1rem;
        border-radius: 8px;
    }
}

.logo__img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(112, 78, 231, 0.6));
}

/* Preloader logo specific */
.preloader__img img {
    max-width: 180px;
    height: auto;
}

/* Footer logo */
footer .logo__img {
    max-height: 45px;
    opacity: 0.95;
}

footer .logo__img:hover {
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(112, 78, 231, 0.4));
}

/* Hero Section Adjustments */
.hero-3 {
    margin-top: 15px !important; /* Comfortable space from navbar */
    padding-top: 30px !important; /* Good breathing room */
}

.hero-3 h2 {
    font-size: 2.75rem !important; /* Medium title */
}

.hero-3 p {
    font-size: 1.1rem !important; /* Medium subtitle */
    margin-bottom: 1.75rem !important;
}

.hero-3 .btn {
    padding: 0.5rem 1.25rem !important; /* Medium buttons */
    font-size: 0.85rem !important;
}

/* Hero Image Styling */
.hero-3__img {
    position: relative;
    display: inline-block;
    margin-top: 20px; /* Move robot down for better centering */
}

.hero-3__img img {
    max-width: 150%;
    width: 350px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(112, 78, 231, 0.3));
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* Speech Bubbles for Robot */
.robot-speech {
    position: absolute;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #704ee7;
    border-radius: 25px;
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 600;
    color: #704ee7;
    box-shadow: 0 10px 30px rgba(112, 78, 231, 0.2);
    opacity: 0;
    animation: speechPop 8s ease-in-out infinite;
    z-index: 10;
    white-space: nowrap;
}

.robot-speech::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #704ee7;
    transform: rotate(45deg);
    z-index: -1;
}

/* Speech Bubble 1 - Top Left - pointing to robot center */
.robot-speech-1 {
    top: 15%;
    left: -120px;
    animation-delay: 0s;
}

.robot-speech-1::before {
    right: -12px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    border-left: none;
    border-top: none;
}

/* Speech Bubble 2 - Top Right - pointing to robot center */
.robot-speech-2 {
    top: 10%;
    right: -120px;
    animation-delay: 2s;
}

.robot-speech-2::before {
    left: -12px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    border-right: none;
    border-bottom: none;
}

/* Speech Bubble 3 - Bottom Right - pointing to robot center */
.robot-speech-3 {
    bottom: 35%;
    right: -130px;
    animation-delay: 4s;
}

.robot-speech-3::before {
    left: -12px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    border-right: none;
    border-bottom: none;
}

/* Speech Bubble 4 - Bottom Left - pointing to robot center */
.robot-speech-4 {
    bottom: 30%;
    left: -120px;
    animation-delay: 6s;
}

.robot-speech-4::before {
    right: -12px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    border-left: none;
    border-top: none;
}

/* Animation for speech bubbles */
@keyframes speechPop {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    10%, 25% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    30% {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }
}

/* Tablet adjustments */
@media (max-width: 1200px) {
    .hero-3__img img {
        width: 300px;
    }
    
    .robot-speech-1 {
        left: -110px;
    }
    
    .robot-speech-2 {
        right: -110px;
    }
    
    .robot-speech-3 {
        right: -120px;
    }
    
    .robot-speech-4 {
        left: -110px;
    }
}

/* Mobile adjustments for speech bubbles */
@media (max-width: 768px) {
    .hero-3 {
        margin-top: 15px !important;
        padding-top: 25px !important;
    }
    
    .hero-3__img img {
        width: 240px;
    }
    
    .hero-3 h2 {
        font-size: 2rem !important;
    }
    
    .hero-3 p {
        font-size: 0.95rem !important;
    }
    
    .hero-3 .btn {
        padding: 0.45rem 1.1rem !important;
        font-size: 0.8rem !important;
    }
    
    .robot-speech {
        display: none; /* Hide on mobile to avoid clutter */
    }
}

/* Floating animation for robot */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Animation for Gradient Text - Using original purple color */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.text-gradient-primary {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .logo__img {
        max-height: 45px;
    }
    
    .navbar {
        min-height: 65px;
    }
}

/* ==============================================
   Pricing Cards - Equal Height Fix
   ============================================== */

/* Make all pricing cards equal height */
.pricing-card {
    min-height: 600px !important;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
}

/* Make the footer grow to fill available space */
.pricing-card__footer {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

/* Push the button to the bottom */
.pricing-card__footer .btn {
    margin-top: auto !important;
}

/* Ensure list items don't break the layout */
.pricing-card__footer ul {
    margin-bottom: 1.5rem !important;
}

/* Popular card adjustments to maintain equal height */
.popular-pricing-card {
    min-height: 600px !important;
}

/* Responsive height adjustments */
@media (max-width: 991px) {
    .pricing-card,
    .popular-pricing-card {
        min-height: 550px !important;
    }
}

@media (max-width: 767px) {
    .pricing-card,
    .popular-pricing-card {
        min-height: auto !important;
        margin-bottom: 1.5rem;
    }
}

/* Ensure consistent spacing between elements */
.pricing-card__head,
.pricing-card__body {
    flex-shrink: 0;
}

/* Fine-tune the card content alignment */
.pricing-card h5 {
    margin-bottom: 0.5rem;
}

.pricing-card__body h3 {
    padding: 0.5rem 0;
}

/* ==============================================
   DESKTOP RESPONSIVE - HOME/HERO SECTION ONLY
   Making elements bigger on large screens
   ============================================== */

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    /* Hero Section - Moderate vertical spacing */
    .hero-3 {
        margin-top: 15px !important;
        padding-top: 30px !important;
    }
    
    .hero-3 .section-space-y {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }
    
    /* Hero Title - Medium-large on desktop */
    .hero-3 h2 {
        font-size: 4.5rem !important;
        line-height: 1.15 !important;
        margin-bottom: 1.75rem !important;
    }
    
    /* Hero Subtitle - Medium text */
    .hero-3 p.fs-14 {
        font-size: 1.4rem !important;
        line-height: 1.5 !important;
        margin-bottom: 2.5rem !important;
    }
    
    /* Hero Buttons - Medium with moderate padding */
    .hero-3 .btn {
        padding: 0.75rem 2rem !important;
        font-size: 1rem !important;
        border-radius: 50px !important;
    }
    
    /* Hero Robot Image - Medium-large */
    .hero-3__img img {
        width: 420px !important;
        max-width: 420px !important;
    }
    
    /* Adjust speech bubbles for medium robot */
    .robot-speech {
        font-size: 13px !important;
        padding: 12px 16px !important;
    }
    
    .robot-speech-1 {
        left: -150px !important;
    }
    
    .robot-speech-2 {
        right: -150px !important;
    }
    
    .robot-speech-3 {
        right: -160px !important;
    }
    
    .robot-speech-4 {
        left: -150px !important;
    }
}

/* Medium Desktop (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    /* Hero Section - Moderate vertical spacing */
    .hero-3 {
        margin-top: 15px !important;
        padding-top: 30px !important;
    }
    
    .hero-3 .section-space-y {
        padding-top: 70px !important;
        padding-bottom: 70px !important;
    }
    
    /* Hero Title - Medium on medium desktop */
    .hero-3 h2 {
        font-size: 3.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Hero Subtitle - Medium text */
    .hero-3 p.fs-14 {
        font-size: 1.25rem !important;
        line-height: 1.5 !important;
        margin-bottom: 2rem !important;
    }
    
    /* Hero Buttons - Medium with moderate padding */
    .hero-3 .btn {
        padding: 0.65rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
    
    /* Hero Robot Image - Medium */
    .hero-3__img img {
        width: 380px !important;
        max-width: 380px !important;
    }
}

/* Standard Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    /* Hero Section - Moderate vertical spacing */
    .hero-3 {
        margin-top: 15px !important;
        padding-top: 30px !important;
    }
    
    .hero-3 .section-space-y {
        padding-top: 60px !important;
        padding-bottom: 65px !important;
    }
    
    /* Hero Title */
    .hero-3 h2 {
        font-size: 3.25rem !important;
        line-height: 1.2 !important;
    }
    
    /* Hero Subtitle */
    .hero-3 p.fs-14 {
        font-size: 1.15rem !important;
        line-height: 1.5 !important;
    }
    
    /* Hero Buttons */
    .hero-3 .btn {
        padding: 0.6rem 1.4rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Hero Robot Image */
    .hero-3__img img {
        width: 350px !important;
        max-width: 350px !important;
    }
}

/* ==============================================
   ABOUT PAGE - Team & Values Cards Size Reduction
   ============================================== */

/* Reduce size of the 3 cards in "Desarrollado por Expertos en IA y Seguridad" section */
.process-card {
    max-width: 320px !important;
    margin: 0 auto !important;
    height: auto !important;
    min-height: auto !important;
}

/* Reduce padding for more compact cards - tight fit */
.process-card.p-6 {
    padding: 1.25rem !important;
}

.process-card.p-xl-10 {
    padding: 1.5rem !important;
}

/* Reduce icon size and spacing */
.process-card__icon {
    font-size: 1.75rem !important;
    margin-bottom: 0.75rem !important;
}

/* Reduce title size and spacing */
.process-card__title {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
}

/* Reduce paragraph text and spacing - compact */
.process-card p {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
}

/* Reduce button size */
.process-card__btn {
    padding: 0.4rem 1rem !important;
    font-size: 0.8rem !important;
}

/* Remove any forced minimum heights */
.process-card.mb-8 {
    margin-bottom: 1rem !important;
}

/* Tablet adjustments */
@media (max-width: 991px) {
    .process-card {
        max-width: 280px !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .process-card.p-6,
    .process-card.p-xl-10 {
        padding: 1.15rem !important;
    }
    
    .process-card__icon {
        font-size: 1.6rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .process-card__title {
        font-size: 1rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .process-card p {
        font-size: 0.8rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.85rem !important;
    }
    
    .process-card__btn {
        padding: 0.35rem 0.9rem !important;
        font-size: 0.75rem !important;
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .process-card {
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .process-card.p-6,
    .process-card.p-xl-10 {
        padding: 1.25rem !important;
    }
    
    .process-card__icon {
        font-size: 1.5rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .process-card__title {
        font-size: 1rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .process-card p {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.85rem !important;
    }
}

/* Override for About page cards - auto height */
.section-space-md-bottom .process-card {
    height: auto !important;
    min-height: auto !important;
}

/* Process cards in pricing page only - Force Equal Height */
.pricing-page .row .col-md-6.col-lg-4 .process-card {
    min-height: 650px !important;
    height: 650px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Direct child padding containers */
.process-card.p-6,
.process-card > .px-6 {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Center card with special header */
.process-card.overflow-hidden {
    padding: 0 !important;
}

.process-card.overflow-hidden > div:last-child {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 1.5rem !important;
}

/* Force all lists to same height */
.process-card ul.list {
    min-height: 150px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

/* Force last HR before button */
.process-card hr:last-of-type {
    margin-top: auto !important;
    margin-bottom: 1.5rem !important;
}

/* Force button alignment */
.process-card a.btn,
.process-card button {
    margin-top: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .pricing-page .row .col-md-6.col-lg-4 .process-card {
        min-height: 600px !important;
        height: 600px !important;
    }
    
    .section-space-md-bottom .process-card {
        height: auto !important;
        min-height: auto !important;
    }
}

@media (max-width: 767px) {
    .pricing-page .row .col-md-6.col-lg-4 .process-card {
        min-height: auto !important;
        height: auto !important;
        margin-bottom: 2rem !important;
    }
    
    .section-space-md-bottom .process-card {
        height: auto !important;
        min-height: auto !important;
        margin-bottom: 1.5rem !important;
    }
}