/* --- Global Variables & Reset --- */
:root {
    --primary-color: #0078D4;
    /* Microsoft Blue (example) */
    --secondary-color: #2B88D8;
    /* Another shade of blue */
    --accent-color: #7FBA00;
    /* Accent green (example) */
    --text-color: #333333;
    /* Standard Dark Text */
    --light-bg: #F3F4F6;
    /* Very Light Gray for sections */
    --white: #FFFFFF;

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --section-padding: 4rem 1rem;
    --container-width: 1200px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Base Styles */
body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.section-padding {
    padding: var(--section-padding);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    /* Rounded full */
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Button Variants */
.btn-primary {
    background-color: var(--secondary-color);
    /* Orange Button */
    color: var(--white);
}

.btn-primary:hover {
    background-color: #bfa002;
    /* Darker Orange */
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Custom styles for hamburger menu icon */
.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: currentColor;
    position: relative;
    transform: rotate(0deg);
    transition: .3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: currentColor;
    position: absolute;
    left: 0;
    transition: .3s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Transform hamburger icon into an 'X' when active */
.nav-toggle.active .hamburger {
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::before {
    top: 0;
    opacity: 0;
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-90deg);
}

/* Hide mobile navigation menu by default */
.main-nav ul {
    display: none;
}

/* Show navigation menu on large screens and hide hamburger toggle */
@media (min-width: 768px) {
    .main-nav ul {
        display: flex !important;
    }

    .nav-toggle {
        display: none;
    }
}

/* Show mobile navigation menu when active */
.main-nav.active ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.main-nav.active ul li {
    width: 100%;
    border-bottom: 1px solid #eee;
}

.main-nav.active ul li a {
    padding: 1rem;
    display: block;
    width: 100%;
    text-align: center;
}

/* Smooth scroll effect for anchor links */
html {
    scroll-behavior: smooth;
}

/* Container for horizontal sliders (phases and services) */
.slider-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 1.5rem;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #0078D4 #F3F4F6;
    /* Firefox */
}

/* Custom scrollbar style for Webkit browsers (Chrome, Safari) */
.slider-container::-webkit-scrollbar {
    height: 8px;
}

.slider-container::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 10px;
}

.slider-container::-webkit-scrollbar-thumb {
    background: #0078D4;
    border-radius: 10px;
}

.slider-container::-webkit-scrollbar-thumb:hover {
    background: #2B88D8;
}

/* Style for each individual item within the slider */
.slide-item {
    display: inline-block;
    white-space: normal;
    /* Allow text to wrap within the item */
    width: 300px;
    /* Fixed width for slider items */
    margin-right: 1.5rem;
    vertical-align: top;
}

/* Ensure the last slide item has no right margin */
.slide-item:last-child {
    margin-right: 0;
}

/* Keyframe animation for fading in and sliding up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply fadeInUp animation to hero section elements with staggered delays */
.hero-content h1 {
    animation: fadeInUp 1s ease-out forwards;
}

.hero-content p {
    animation: fadeInUp 1s ease-out forwards 0.3s;
    opacity: 0;
    /* Hidden initially to allow animation to start */
}

.hero-actions {
    animation: fadeInUp 1s ease-out forwards 0.6s;
    opacity: 0;
    /* Hidden initially to allow animation to start */
}

/* Keyframe animation for a pulse effect */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 120, 212, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(0, 120, 212, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 120, 212, 0);
    }
}

/* Apply pulse animation to "Explora Servicios" button */
.hero-actions .btn-primary {
    animation: pulse 2s infinite;
}

/* ── Botón flotante IA (rediseñado) ─────────────────────────────── */
.robot-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    cursor: pointer;
    width: 68px;
    height: 68px;
}

/* Anillo de pulso animado */
.robot-btn-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, #2CB7B0 0%, transparent 70%);
    animation: robotPulse 2.4s ease-out infinite;
    pointer-events: none;
}

@keyframes robotPulse {
    0%   { transform: scale(1);    opacity: 0.7; }
    70%  { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}

/* Disco principal */
.robot-btn-inner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #19292E 0%, #2CB7B0 100%);
    box-shadow:
        0 6px 20px rgba(44, 183, 176, 0.45),
        0 2px 6px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1),
                box-shadow 0.25s ease;
    overflow: hidden;
}

.robot-btn-inner svg {
    width: 44px;
    height: 44px;
    margin-bottom: -4px;
}

.robot-btn-label {
    font-size: 9px;
    font-weight: 800;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1.5px;
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.robot-button:hover .robot-btn-inner {
    transform: scale(1.08);
    box-shadow:
        0 10px 28px rgba(44, 183, 176, 0.6),
        0 4px 10px rgba(0,0,0,0.3);
}

/* Tooltip */
.robot-btn-tooltip {
    position: absolute;
    right: 78px;
    top: 50%;
    transform: translateY(-50%);
    background: #19292E;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(-50%) translateX(6px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    font-family: 'Inter', sans-serif;
}

.robot-btn-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #19292E;
    border-right: none;
}

.robot-button:hover .robot-btn-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Pulse animation for "Diagnóstico" buttons in header and CTA */
.header-actions .btn,
.cta-section .btn {
    animation: pulse-header 2s infinite;
}

/* Specific pulse animation for header and CTA buttons (using their primary color) */
@keyframes pulse-header {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(216, 163, 2, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(216, 163, 2, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(216, 163, 2, 0);
    }
}

/* Apply fadeInUp animation to service categories */
.service-category {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

/* Apply fadeInUp animation to service cards with staggered delays */
.service-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Delays for individual service card animations */
.services-grid .service-item:nth-child(1) {
    animation-delay: 0.1s;
}

.services-grid .service-item:nth-child(2) {
    animation-delay: 0.2s;
}

.services-grid .service-item:nth-child(3) {
    animation-delay: 0.3s;
}

.services-grid .service-item:nth-child(4) {
    animation-delay: 0.4s;
}

.services-grid .service-item:nth-child(5) {
    animation-delay: 0.5s;
}

.services-grid .service-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* Apply fadeInUp animation to pricing cards with staggered delays */
.pricing-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Delays for individual pricing card animations */
.pricing-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
    animation-delay: 0.3s;
}

.pricing-card:nth-child(4) {
    animation-delay: 0.4s;
}

.pricing-card:nth-child(5) {
    animation-delay: 0.5s;
}

.pricing-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Pulse animation for the "Plan Negocios 1" button (recommended plan) */
.btn-pulse-plan {
    animation: pulse-header 2s infinite;
}

/* Styles for the "Ver más servicios" button */
.toggle-services-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 9999px;
    /* Fully rounded */
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.toggle-services-button:hover {
    background-color: #bfa002;
    transform: translateY(-2px);
    /* Slight lift effect on hover */
}

.toggle-services-button i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.toggle-services-button.active i {
    transform: rotate(180deg);
    /* Rotate arrow when active */
}

/* Styles for the additional services container to allow smooth transition */
.additional-services-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.7s ease-in-out, opacity 0.7s ease-in-out;
    padding-top: 0;
    padding-bottom: 0;
}

.additional-services-container:not(.hidden) {
    max-height: 1000px;
    /* Arbitrary large value to allow full height */
    opacity: 1;
    padding-top: 2rem;
    /* Restore padding */
    padding-bottom: 2rem;
    /* Restore padding */
}


/* Styles for the pricing section background image */
.plans-background-section {
    background-image: url('https://minegociodigital.com.co/wp-content/uploads/2025/05/pexels-thisisengineering-3862627-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    position: relative;
    z-index: 1;
}

/* Pseudo-element for the blurred overlay on the background image */
.plans-background-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(25, 41, 46, 0.85);
    /* Dark blue overlay based on logo */
    backdrop-filter: blur(2px);
    /* Blur effect on background */
    -webkit-backdrop-filter: blur(2px);
    /* Safari support */
    z-index: -1;
    /* Place behind content */
}

/* Styles for transparent pricing cards */
.pricing-card-transparent {
    background-color: rgba(255, 255, 255, 0.9);
    /* White with transparency */
    backdrop-filter: blur(5px);
    /* Blur effect for frosted glass look */
    -webkit-backdrop-filter: blur(5px);
    /* Safari support */
}

/* Styles for dark transparent pricing card (recommended plan) */
.pricing-card-dark-transparent {
    background-color: rgba(25, 41, 46, 0.95);
    /* Dark blue with transparency */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Styles for modal overlay (full screen dimmer) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Dark semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    /* Hidden by default */
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Styles for modal content box */
.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 90%;
    /* Responsive width */
    max-width: 500px;
    transform: translateY(-20px);
    /* Initial position for animation */
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
}

/* Animation for modal content when active */
.modal-overlay.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

/* Close button for modals */
.modal-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4B5563;
}

/* Form group styling within modals */
.modal-form .form-group {
    margin-bottom: 1rem;
}

.modal-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

/* Input field styling within modals */
.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="tel"],
.modal-form input[type="password"],
.modal-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-form input[type="text"]:focus,
.modal-form input[type="email"]:focus,
.modal-form input[type="tel"]:focus,
.modal-form input[type="password"]:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    /* Secondary color border on focus */
    box-shadow: 0 0 0 3px rgba(216, 163, 2, 0.3);
    /* Subtle shadow on focus */
}

/* WhatsApp button inside modals */
.modal-whatsapp-button {
    background-color: #25D366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: background-color 0.3s ease;
    margin-top: 1.5rem;
}

.modal-whatsapp-button:hover {
    background-color: #1DA851;
}

.modal-whatsapp-button i {
    margin-right: 0.5rem;
}

/* Styles for the digital transformation flow section */
.flow-path-container {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    /* Align items to the top of the container */
    padding: 2rem 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    /* Prevent wrapping in desktop view */
    overflow-x: auto;
    /* Enable horizontal scrolling for overflow */
    padding-bottom: 2rem;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: var(--secondary-color) var(--light-bg);
    /* Firefox */
}

/* Custom scrollbar for flow path container (Webkit) */
.flow-path-container::-webkit-scrollbar {
    height: 8px;
}

.flow-path-container::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 10px;
}

.flow-path-container::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.flow-path-container::-webkit-scrollbar-thumb:hover {
    background: #bfa002;
}

/* Timeline line in the flow section (hidden on small screens) */
.flow-timeline-line {
    position: absolute;
    height: 4px;
    background-color: var(--secondary-color);
    z-index: 10;
    top: calc(60px + 1rem + 0.5rem);
    /* Vertically center with circles and text */
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    animation: drawLine 2s ease-out forwards;
    transform-origin: left;
    opacity: 0;
}

/* Keyframe animation for drawing the timeline line */
@keyframes drawLine {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}

/* Individual step in the transformation flow */
.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 20;
    flex-shrink: 0;
    /* Prevent shrinking in horizontal scroll */
    width: 220px;
    margin: 0 1rem;
}

/* Circular image container for each flow step */
.flow-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 3px solid transparent;
    /* Transparent border for hover effect */
}

.flow-circle:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary-color);
    /* Secondary color border on hover */
}

.flow-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.flow-text {
    font-weight: 600;
    color: #1F2937;
    margin-top: 0.5rem;
}

/* Styles for the "Saber más" action buttons in the flow steps */
.flow-action-button {
    background-color: #0078D4;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    margin-top: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-action-button:hover {
    background-color: #2B88D8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.flow-action-button i {
    margin-left: 0.5rem;
}

/* Media queries for responsive flow layout (mobile first) */
@media (max-width: 767px) {
    .flow-path-container {
        flex-direction: column;
        /* Stack steps vertically */
        align-items: center;
        padding: 2rem 1rem;
        overflow-x: hidden;
        /* No horizontal scroll on mobile */
    }

    .flow-step {
        width: 90%;
        /* Wider steps on mobile */
        margin-bottom: 2rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .flow-circle {
        margin-bottom: 1rem;
        margin-right: 0;
    }

    .flow-timeline-line {
        display: none;
        /* Hide timeline line on mobile */
    }
}

/* Styles for the hero image slider container */
.hero-image-slider-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
    overflow: hidden;
    border-radius: 0.75rem;
    /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* shadow-lg */
}

.hero-image-slider-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
    /* Smooth fade transition for images */
}

/* Styles for the image in contact info */
.contact-info-image {
    width: 100%;
    /* Make image fill its container */
    height: auto;
    /* Maintain aspect ratio */
    object-fit: cover;
    border-radius: 0.75rem;
    /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* shadow-lg */
    margin-bottom: 1.5rem;
    /* Space between image and text info */
}

/* Styles for the plans container that will be toggled */
.plans-grid-container {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    /* Default to 1 column on small screens */
    gap: 1rem;
    /* Space between cards */
    transition: all 0.5s ease-in-out;
    /* Smooth transition for show/hide */
    overflow: hidden;
    /* Hide overflow when collapsed */
}

@media (min-width: 768px) {
    .plans-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        /* 2 columns on medium screens */
    }
}

@media (min-width: 1024px) {
    .plans-grid-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        /* 3 columns on large screens */
    }
}

@media (min-width: 1280px) {
    .plans-grid-container {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        /* 6 columns on extra large screens */
    }
}

.plans-grid-container.hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.plans-grid-container:not(.hidden) {
    max-height: 1000px;
    /* Arbitrary large value to allow full height */
    opacity: 1;
    padding-top: 1rem;
    /* Restore padding */
    padding-bottom: 1rem;
    /* Restore padding */
    margin-top: 3rem;
    /* Restore margin */
    margin-bottom: 3rem;
    /* Restore margin */
}


/* ========================================
   Robot Chat Modal - IA con GPT
   ======================================== */

.robot-chat-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 0 0 1rem 0;
}

@media (min-width: 640px) {
    .robot-chat-modal-overlay {
        align-items: center;
        padding: 0;
    }
}

.robot-chat-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.robot-chat-modal-content {
    background: #ffffff;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 460px;
    height: 88vh;
    max-height: 680px;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.3s ease;
    overflow: hidden;
}

@media (min-width: 640px) {
    .robot-chat-modal-content {
        border-radius: 1rem;
        transform: translateY(-20px) scale(0.97);
        box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    }
}

.robot-chat-modal-overlay.active .robot-chat-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Header del chat */
.chat-header {
    background: linear-gradient(135deg, #19292E 0%, #2CB7B0 100%);
    padding: 0.875rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.chat-header-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.chat-header-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: white;
    object-fit: contain;
}

.chat-status-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    border: 2px solid white;
}

.chat-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.chat-subtitle {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.75);
    display: block;
}

.chat-close-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.chat-close-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Área de mensajes */
.chat-display {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.875rem;
    background: #f4f7f9;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    scroll-behavior: smooth;
}

.chat-display::-webkit-scrollbar {
    width: 4px;
}
.chat-display::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

/* Burbujas de mensaje */
.ai-message {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    max-width: 88%;
    animation: msgFadeIn 0.25s ease;
}

@keyframes msgFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ai-message--user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-message--bot {
    align-self: flex-start;
}

.ai-avatar {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.ai-avatar img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #2CB7B0;
    background: white;
    object-fit: contain;
}

.ai-bubble {
    padding: 0.625rem 0.875rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    max-width: 100%;
    word-break: break-word;
}

.ai-message--bot .ai-bubble {
    background: #ffffff;
    color: #1f2937;
    border-radius: 0.25rem 1rem 1rem 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.ai-message--user .ai-bubble {
    background: linear-gradient(135deg, #2CB7B0, #19292E);
    color: #ffffff;
    border-radius: 1rem 0.25rem 1rem 1rem;
}

/* Indicador de escritura */
.ai-typing {
    display: flex !important;
    align-items: center;
    gap: 4px;
    padding: 0.75rem 1rem !important;
}

.ai-typing span {
    display: block;
    width: 7px;
    height: 7px;
    background: #2CB7B0;
    border-radius: 50%;
    animation: typingBounce 1.2s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30%            { transform: translateY(-6px); opacity: 1; }
}

/* Preguntas rápidas */
.quick-questions-container {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    max-height: 160px;
    overflow-y: auto;
    background: #f4f7f9;
    flex-shrink: 0;
}

.quick-questions-container:empty {
    padding: 0;
}

.ai-quick-btn {
    background: #ffffff;
    color: #2CB7B0;
    border: 1.5px solid #2CB7B0;
    padding: 0.5rem 0.875rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}

.ai-quick-btn:hover {
    background: #2CB7B0;
    color: white;
}

.ai-quick-btn--whatsapp {
    background: #25D366;
    color: white;
    border-color: #25D366;
}
.ai-quick-btn--whatsapp:hover {
    background: #1DA851;
    border-color: #1DA851;
    color: white;
}

/* Área de input */
.chat-input-area {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 0.875rem;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.ai-chat-input {
    flex: 1;
    resize: none;
    border: 1.5px solid #e5e7eb;
    border-radius: 1.25rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.4;
    max-height: 100px;
    outline: none;
    transition: border-color 0.2s;
    background: #f9fafb;
}

.ai-chat-input:focus {
    border-color: #2CB7B0;
    background: #ffffff;
}

.ai-chat-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ai-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2CB7B0, #19292E);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.2s, transform 0.15s;
}

.ai-chat-send:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.ai-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Footer del chat */
.chat-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem 0.75rem;
    background: #ffffff;
    flex-shrink: 0;
}

.chat-whatsapp-button {
    flex: 1;
    background-color: #25D366;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

.chat-whatsapp-button:hover {
    background-color: #1DA851;
}

.chat-powered {
    font-size: 0.65rem;
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Adjuntos (Flujo B) ──────────────────────────────────────────── */

/* Botón clip */
.ai-attach-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-size: 0.9rem;
}
.ai-attach-btn:hover {
    background: #2CB7B0;
    color: white;
    border-color: #2CB7B0;
}

/* Fila de chips de archivos seleccionados */
.adjuntos-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem 0;
    background: #ffffff;
    max-height: 120px;
    overflow-y: auto;
    flex-shrink: 0;
}

/* Chip individual */
.adjunto-chip {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #f0fdfc;
    border: 1.5px solid #2CB7B0;
    border-radius: 2rem;
    padding: 0.25rem 0.625rem 0.25rem 0.5rem;
    font-size: 0.75rem;
    max-width: 100%;
    animation: msgFadeIn 0.2s ease;
}

.adjunto-icon { font-size: 0.9rem; line-height: 1; }

.adjunto-name {
    color: #1f2937;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.adjunto-size {
    color: #9ca3af;
    font-size: 0.68rem;
    white-space: nowrap;
}

.adjunto-remove {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    margin-left: 0.1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.adjunto-remove:hover { color: #ef4444; }


/* --- Ken Burns Animation Effect --- */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
        /* Zoom in by 15% */
    }
}

.ken-burns-effect {
    animation: kenBurns 20s ease-in-out infinite alternate;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
}

/* --- Corporate Pricing Section Styles --- */
/* Background Overlay Override */
.plans-background-section::before {
    background-color: rgba(25, 41, 46, 1) !important;
    /* Corporate Dark Blue Overlay */
}

/* Recommended Plan Card (Illuminated) */
/* Recommended Plan Card (Illuminated) */
.pricing-card-recommended {
    background-color: #19292E !important;
    /* Corporate Dark Blue */
    color: white !important;
    border: 2px solid #2CB7B0 !important;
    /* Corporate Teal Border */
    box-shadow: 0 0 30px rgba(44, 183, 176, 0.4) !important;
    /* Teal Glow */
    transform: scale(1.05);
    /* Slight enlargement */
    z-index: 20;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card-recommended:hover {
    box-shadow: 0 0 45px rgba(44, 183, 176, 0.7) !important;
    /* Stronger Illumination */
    transform: scale(1.08);
    /* More enlargement on hover */
}

/* Recommended Plan Badge */
.pricing-card-recommended .recommended-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #2CB7B0 !important;
    /* Corporate Teal */
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 0.25rem 1rem;
    border-bottom-left-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 30;
}

/* Reset scale for non-recommended cards on hover to avoid overlapping issues */
.pricing-card-transparent:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

/* Corporate Button Styles */
.btn-corporate {
    background-color: #2CB7B0 !important;
    /* Corporate Teal */
    color: white !important;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #2CB7B0 !important;
    display: inline-block;
    width: 100%;
    text-align: center;
    cursor: pointer;
}

.btn-corporate:hover {
    background-color: #259D97 !important;
    /* Darker Teal */
    border-color: #259D97 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 183, 176, 0.3);
}

.btn-corporate-outline {
    background-color: transparent !important;
    color: #2CB7B0 !important;
    /* Corporate Teal */
    border: 2px solid #2CB7B0 !important;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
    text-align: center;
    cursor: pointer;
}

.btn-corporate-outline:hover {
    background-color: #2CB7B0 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 183, 176, 0.3);
}

/* Typography Overrides for Corporate Section */
.pricing-card-recommended h3 {
    color: white !important;
}

.pricing-card-recommended .plan-hours {
    color: #8CC63F !important;
    /* Lime Green hours */
}

.pricing-card-recommended .plan-price {
    color: #8CC63F !important;
    /* Lime Green price */
}

.pricing-card-recommended .plan-desc {
    color: #e5e7eb !important;
    /* Light gray description */
}

/* Ensure non-recommended cards have corporate text */
.pricing-card-transparent h3 {
    color: #19292E !important;
}

.pricing-card-transparent .plan-price {
    color: #19292E !important;
}

/* --- Logo Ticker Animation --- */
@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-ticker-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 40s linear infinite;
}

.logo-ticker-track:hover {
    animation-play-state: paused;
}

.client-logo {
    height: 100px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin: 0 4rem;
    filter: brightness(0) invert(1);
    /* Turns transparent logos white for dark background */
    opacity: 0.8;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.1);
}

/* ══════════════════════════════════════════════════════════════════════════
   REDISENO MODERNO — Mi Negocio Digital
   Colores: #2CB7B0 (teal) · #19292E (dark) · #8CC63F (verde)
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    --teal:       #2CB7B0;
    --teal-dark:  #259D97;
    --teal-light: #e0f7f6;
    --dark:       #19292E;
    --green:      #8CC63F;
    --off-white:  #f8fafb;
    --gray-100:   #f3f4f6;
    --gray-200:   #e5e7eb;
    --gray-500:   #6b7280;
    --gray-800:   #1f2937;
    --shadow-teal: 0 8px 32px rgba(44,183,176,.18);
    --transition:  all .25s cubic-bezier(.4,0,.2,1);
}

/* Titulos de seccion */
.services-section h2,
.quienes-somos-section h2,
#contacto h2,
#quienes-somos h2 {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.02em;
    background: linear-gradient(135deg, var(--dark) 40%, var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .5rem;
}

.section-subtitle {
    color: var(--gray-500) !important;
    font-size: 1.05rem !important;
    max-width: 640px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* HEADER */
.main-header {
    background: rgba(255,255,255,.88) !important;
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    border-bottom: 1px solid rgba(44,183,176,.15) !important;
    box-shadow: 0 1px 24px rgba(25,41,46,.06) !important;
    padding: .6rem 0 !important;
    transition: var(--transition);
}

.main-nav a {
    font-weight: 500;
    font-size: .9rem;
    color: var(--gray-800) !important;
    position: relative;
    padding-bottom: 2px;
    transition: color .2s;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--teal);
    border-radius: 2px;
    transition: width .25s ease;
}

.main-nav a:hover { color: var(--teal) !important; }
.main-nav a:hover::after { width: 100%; }

.header-actions .btn {
    background: linear-gradient(135deg, var(--teal), var(--dark)) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: .875rem !important;
    padding: .55rem 1.5rem !important;
    border-radius: 2rem !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(44,183,176,.3) !important;
    transition: var(--transition) !important;
    animation: none !important;
}

.header-actions .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(44,183,176,.4) !important;
}

/* HERO */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, #1a3a42 45%, #0e2a30 100%) !important;
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%; right: -10%;
    width: 55vw; height: 55vw;
    background: radial-gradient(circle, rgba(44,183,176,.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -5%;
    width: 35vw; height: 35vw;
    background: radial-gradient(circle, rgba(140,198,63,.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: -.03em !important;
    line-height: 1.1 !important;
}

.hero-content h1 .text-primary {
    background: linear-gradient(90deg, var(--teal), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    color: rgba(255,255,255,.75) !important;
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
}

.hero-actions .btn:first-child {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark)) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 6px 24px rgba(44,183,176,.45) !important;
    animation: none !important;
    font-weight: 700 !important;
}

.hero-actions .btn:first-child:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 32px rgba(44,183,176,.55) !important;
}

.hero-actions .btn:last-child {
    background: transparent !important;
    border: 2px solid rgba(255,255,255,.35) !important;
    color: #fff !important;
}

.hero-actions .btn:last-child:hover {
    background: rgba(255,255,255,.12) !important;
    border-color: rgba(255,255,255,.6) !important;
    transform: translateY(-2px) !important;
}

.hero-image-slider-container {
    border-radius: 1.25rem !important;
    box-shadow: 0 32px 80px rgba(0,0,0,.4), 0 0 0 1px rgba(44,183,176,.2) !important;
}

/* SERVICIOS */
.services-section { background: var(--off-white) !important; }

.service-category { opacity: 1 !important; transform: none !important; animation: none !important; }

.service-category .icon {
    background: linear-gradient(135deg, var(--teal-light), #c6f2f1);
    width: 52px; height: 52px;
    border-radius: .875rem;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--teal) !important;
    font-size: 1.3rem !important;
    flex-shrink: 0;
    margin-right: .875rem !important;
}

.service-category h3 { color: var(--dark) !important; font-weight: 700 !important; font-size: 1.35rem !important; }

.slide-item {
    background: #fff !important;
    border-radius: 1rem !important;
    box-shadow: 0 2px 12px rgba(25,41,46,.07) !important;
    border: 1px solid var(--gray-200) !important;
    border-top: 3px solid var(--teal) !important;
    transition: var(--transition) !important;
    padding: 1.5rem !important;
}

.slide-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-teal) !important;
    border-color: var(--teal) !important;
}

.slide-item h4 { color: var(--dark) !important; font-weight: 700 !important; font-size: 1rem !important; }
.slide-item .font-semibold { color: var(--teal) !important; }
.slider-container::-webkit-scrollbar-thumb { background: var(--teal) !important; }

.toggle-services-button {
    background: linear-gradient(135deg, var(--teal), var(--dark)) !important;
    color: #fff !important;
    border-radius: 2rem !important;
    font-weight: 600 !important;
    font-size: .9rem !important;
    padding: .7rem 2rem !important;
    box-shadow: 0 4px 16px rgba(44,183,176,.25) !important;
    border: none !important;
}

.toggle-services-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(44,183,176,.35) !important;
}

/* FLUJO TRANSFORMACION */
.flow-circle {
    border: 3px solid var(--teal-light) !important;
    box-shadow: 0 4px 20px rgba(44,183,176,.15) !important;
}

.flow-circle:hover {
    border-color: var(--teal) !important;
    box-shadow: 0 8px 28px rgba(44,183,176,.3) !important;
    transform: translateY(-6px) !important;
}

.flow-timeline-line { background: linear-gradient(90deg, var(--teal), var(--green)) !important; }

.flow-action-button {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark)) !important;
    border-radius: 2rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(44,183,176,.3) !important;
    border: none !important;
}

.flow-action-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(44,183,176,.45) !important;
}

/* PLANES */
.plans-background-section::before {
    background: linear-gradient(135deg, rgba(25,41,46,.97) 0%, rgba(19,50,58,.95) 100%) !important;
}

.plans-background-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.75rem) !important;
    font-weight: 800 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: none !important;
}

.pricing-card-transparent {
    background: rgba(255,255,255,.97) !important;
    border-radius: 1rem !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.12) !important;
    transition: var(--transition) !important;
    overflow: hidden;
}

.pricing-card-transparent::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--green));
}

.pricing-card-transparent:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 48px rgba(0,0,0,.2) !important;
}

.pricing-card-dark-transparent {
    border-radius: 1rem !important;
    overflow: hidden !important;
}

.pricing-card-dark-transparent::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--green));
}

/* CONTACTO */
#contacto {
    background: linear-gradient(135deg, var(--off-white) 0%, #e8f8f7 100%) !important;
}

.modal-form input,
.modal-form textarea,
.modal-form select {
    border-radius: .625rem !important;
    border: 1.5px solid var(--gray-200) !important;
    font-family: 'Inter', sans-serif !important;
    padding: .75rem 1rem !important;
    transition: var(--transition) !important;
}

.modal-form input:focus,
.modal-form textarea:focus {
    border-color: var(--teal) !important;
    box-shadow: 0 0 0 3px rgba(44,183,176,.2) !important;
    outline: none !important;
}

/* FOOTER */
footer {
    background: linear-gradient(135deg, var(--dark) 0%, #111e22 100%) !important;
    border-top: 3px solid var(--teal) !important;
}

footer h3, footer h4 { color: #fff !important; }
footer p, footer span { color: rgba(255,255,255,.65) !important; }
footer a { color: rgba(255,255,255,.65) !important; transition: color .2s; }
footer a:hover { color: var(--teal) !important; }

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--teal) 0%, var(--dark) 100%) !important;
    position: relative; overflow: hidden;
}

.cta-section h2 {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: none !important;
}

.cta-section p { color: rgba(255,255,255,.8) !important; }

.cta-section .btn {
    background: #fff !important;
    color: var(--teal) !important;
    font-weight: 700 !important;
    border: none !important;
    animation: none !important;
}

.cta-section .btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,.2) !important;
}

/* Animaciones entrada */
.service-category, .pricing-card, .service-item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* Scrollbar global */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal-dark); }

/* Focus */
*:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Mobile */
@media (max-width: 767px) {
    .main-nav.active ul {
        background: rgba(255,255,255,.98) !important;
        backdrop-filter: blur(12px) !important;
        border-radius: 0 0 1rem 1rem !important;
        box-shadow: 0 8px 32px rgba(25,41,46,.12) !important;
        border-top: 2px solid var(--teal-light) !important;
    }
    .main-nav.active ul li a { color: var(--dark) !important; font-weight: 600 !important; }
    .main-nav.active ul li a:hover { color: var(--teal) !important; }
    .hero-section { min-height: auto !important; padding: 5rem 0 3rem !important; }
    .hero-content h1 { font-size: 2rem !important; }
}

/* =============================================
   SERVICIOS — Cards modernas (7 pilares)
   ============================================= */

.svc-eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--teal);
    background: var(--teal-light);
    padding: .35rem 1rem;
    border-radius: 99px;
}

.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1023px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
    position: relative;
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1.5px solid #e8f5f5;
    box-shadow: 0 2px 16px rgba(44,183,176,.07);
    display: flex;
    flex-direction: column;
    gap: .85rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    overflow: hidden;
}

.svc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--green));
    opacity: 0;
    transition: opacity .25s;
}

.svc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(44,183,176,.16);
    border-color: var(--teal-light);
}
.svc-card:hover::before { opacity: 1; }

.svc-card--featured {
    background: linear-gradient(135deg, var(--dark) 0%, #1a3a42 100%);
    border-color: transparent;
    color: #fff;
}
.svc-card--featured::before { opacity: 1; }
.svc-card--featured .svc-title { color: #fff; }
.svc-card--featured .svc-desc  { color: rgba(255,255,255,.78); }
.svc-card--featured .svc-tags li {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.9);
    border-color: rgba(255,255,255,.15);
}

.svc-icon-wrap {
    width: 52px; height: 52px;
    border-radius: .85rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    color: var(--svc-color, var(--teal));
    background: color-mix(in srgb, var(--svc-color, var(--teal)) 12%, transparent);
    flex-shrink: 0;
}
.svc-card--featured .svc-icon-wrap {
    background: rgba(255,255,255,.15);
    color: #fff;
}

.svc-number {
    position: absolute;
    top: 1.25rem; right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(44,183,176,.1);
    line-height: 1;
    pointer-events: none;
}

.svc-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin: 0;
}

.svc-desc {
    font-size: .92rem;
    line-height: 1.65;
    color: #4b5563;
    margin: 0;
    flex: 1;
}

.svc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    list-style: none;
    padding: 0; margin: 0;
    margin-top: .25rem;
}
.svc-tags li {
    font-size: .72rem;
    font-weight: 600;
    padding: .25rem .65rem;
    border-radius: 99px;
    background: var(--teal-light);
    color: var(--teal-dark);
    border: 1px solid rgba(44,183,176,.2);
    white-space: nowrap;
}

.svc-cta-btn {
    display: inline-flex;
    align-items: center;
    margin-top: .5rem;
    padding: .7rem 1.4rem;
    border-radius: .75rem;
    background: linear-gradient(135deg, var(--teal) 0%, var(--green) 100%);
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    align-self: flex-start;
    transition: opacity .2s, transform .2s;
}
.svc-cta-btn:hover { opacity: .9; transform: translateX(3px); }

/* =============================================
   FLUJO DE TRANSFORMACIÓN DIGITAL — Premium
   ============================================= */

.dtf-section {
    position: relative;
    background: linear-gradient(160deg, #0d1f24 0%, #19292E 45%, #0a1a1f 100%);
    padding: 7rem 0;
    overflow: hidden;
}

/* Dot-grid background */
.dtf-bg-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(44,183,176,.12) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Ambient orbs */
.dtf-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    opacity: .35;
}
.dtf-orb-1 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, #2CB7B0 0%, transparent 70%);
    top: -120px; left: -120px;
}
.dtf-orb-2 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, #8CC63F 0%, transparent 70%);
    bottom: -100px; right: -80px;
}

/* Eyebrow */
.dtf-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #2CB7B0;
    background: rgba(44,183,176,.12);
    border: 1px solid rgba(44,183,176,.3);
    padding: .35rem 1.1rem;
    border-radius: 99px;
}

/* Gradient headline */
.dtf-gradient-text {
    background: linear-gradient(90deg, #2CB7B0 0%, #8CC63F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Timeline ---- */
.dtf-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

/* Vertical connector */
.dtf-line {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #2CB7B0 0%, #8CC63F 50%, #2CB7B0 100%);
    transform: translateX(-50%);
    opacity: .35;
}
@media (max-width: 767px) { .dtf-line { left: 28px; } }

/* Phase row */
.dtf-phase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem 0;
}

/* Alt phases flip the body to the other side */
.dtf-phase--alt {
    direction: rtl;
}
.dtf-phase--alt .dtf-phase-body {
    direction: ltr;
}
.dtf-phase--alt .dtf-phase-head {
    direction: ltr;
    justify-content: flex-start;
}

@media (max-width: 767px) {
    .dtf-phase,
    .dtf-phase--alt {
        grid-template-columns: 1fr;
        direction: ltr;
        padding-left: 4rem;
    }
    .dtf-line { left: 28px; }
    .dtf-phase-head { justify-content: flex-start !important; flex-direction: row; align-items: center; gap: 1rem; }
    .dtf-badge { position: static; transform: none; }
}

/* Phase head: badge + icon */
.dtf-phase-head {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    padding-right: 3rem;
    position: relative;
}
.dtf-phase--alt .dtf-phase-head {
    align-items: flex-start;
    padding-right: 0;
    padding-left: 3rem;
}

.dtf-badge {
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .1em;
    color: rgba(44,183,176,.6);
    background: rgba(44,183,176,.08);
    border: 1px solid rgba(44,183,176,.2);
    padding: .25rem .65rem;
    border-radius: 99px;
}

.dtf-phase-icon {
    width: 64px; height: 64px;
    border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--ph-color, #2CB7B0);
    background: color-mix(in srgb, var(--ph-color, #2CB7B0) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--ph-color, #2CB7B0) 30%, transparent);
    position: relative;
    z-index: 2;
    transition: transform .3s, box-shadow .3s;
}
.dtf-phase:hover .dtf-phase-icon {
    transform: scale(1.08);
    box-shadow: 0 0 28px color-mix(in srgb, var(--ph-color, #2CB7B0) 40%, transparent);
}

/* Phase body card */
.dtf-phase-body {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1.25rem;
    padding: 1.75rem;
    backdrop-filter: blur(12px);
    transition: background .3s, border-color .3s, transform .3s;
}
.dtf-phase:hover .dtf-phase-body {
    background: rgba(255,255,255,.07);
    border-color: rgba(44,183,176,.25);
    transform: translateY(-3px);
}

.dtf-tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #2CB7B0;
    background: rgba(44,183,176,.12);
    border-radius: 99px;
    padding: .2rem .75rem;
    margin-bottom: .75rem;
}
.dtf-tag--green {
    color: #8CC63F;
    background: rgba(140,198,63,.12);
}

.dtf-phase-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 .6rem;
}

.dtf-phase-desc {
    font-size: .88rem;
    line-height: 1.7;
    color: rgba(255,255,255,.6);
    margin: 0 0 1rem;
}

.dtf-deliverables {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.dtf-deliverables span {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    display: flex;
    align-items: center;
    gap: .45rem;
}
.dtf-deliverables span i {
    color: #2CB7B0;
    font-size: .7rem;
    flex-shrink: 0;
}

/* CTA button */
.dtf-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: .9rem 2.2rem;
    border-radius: .875rem;
    background: linear-gradient(135deg, #2CB7B0 0%, #8CC63F 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 24px rgba(44,183,176,.35);
}
.dtf-cta-btn:hover {
    opacity: .9;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(44,183,176,.45);
}

/* dtf-phase-img: reemplazo de ícono por imagen */
.dtf-phase-img {
    width: 96px;
    height: 96px;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 2px solid rgba(44,183,176,.3);
    box-shadow: 0 0 0 6px rgba(44,183,176,.07);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: transform .3s, box-shadow .3s;
}
.dtf-phase-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dtf-phase:hover .dtf-phase-img {
    transform: scale(1.06);
    box-shadow: 0 0 0 8px rgba(44,183,176,.14), 0 8px 32px rgba(44,183,176,.25);
}

/* =============================================
   SOLUCIONES POR INDUSTRIA
   ============================================= */

.ind-section {
    position: relative;
    background: #f8fffe;
    padding: 7rem 0;
    overflow: hidden;
}

.ind-bg-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(44,183,176,.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.ind-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.ind-orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(44,183,176,.12) 0%, transparent 70%);
    top: -100px; right: -80px;
}
.ind-orb-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(140,198,63,.1) 0%, transparent 70%);
    bottom: -80px; left: -60px;
}

.ind-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--teal);
    background: rgba(44,183,176,.1);
    border: 1px solid rgba(44,183,176,.25);
    padding: .35rem 1.1rem;
    border-radius: 99px;
}

.ind-gradient-text {
    background: linear-gradient(90deg, #2CB7B0 0%, #8CC63F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Grid ---- */
.ind-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 1023px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .ind-grid { grid-template-columns: 1fr; } }

/* ---- Card ---- */
.ind-card {
    background: #fff;
    border-radius: 1.5rem;
    border: 1.5px solid rgba(44,183,176,.12);
    box-shadow: 0 2px 20px rgba(44,183,176,.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.ind-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(44,183,176,.14);
    border-color: rgba(44,183,176,.3);
}

/* Card header — dark + SVG illustration */
.ind-card-header {
    background: linear-gradient(135deg, #19292E 0%, #0d1f24 100%);
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}
.ind-card-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ind-c, #2CB7B0), transparent);
}

.ind-card-icon {
    width: 48px; height: 48px;
    border-radius: .875rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    color: var(--ind-c, #2CB7B0);
    background: color-mix(in srgb, var(--ind-c, #2CB7B0) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--ind-c, #2CB7B0) 30%, transparent);
    flex-shrink: 0;
}

.ind-card-ilu {
    flex: 1;
    max-width: 120px;
    height: 80px;
    margin-left: auto;
}
.ind-card-ilu svg {
    width: 100%; height: 100%;
}

/* Card body */
.ind-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    flex: 1;
}

.ind-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.ind-card-desc {
    font-size: .875rem;
    line-height: 1.65;
    color: #5a6a72;
    margin: 0;
}

.ind-features {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    margin-top: .25rem;
}
.ind-features span {
    font-size: .8rem;
    color: #4b5e66;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.ind-features span i {
    color: var(--teal);
    font-size: .65rem;
    flex-shrink: 0;
    width: 14px; height: 14px;
    background: rgba(44,183,176,.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* ---- CTA card ---- */
.ind-card--cta {
    background: linear-gradient(135deg, #19292E 0%, #1a3a42 100%);
    border-color: transparent;
    align-items: stretch;
}
.ind-card--cta:hover {
    border-color: rgba(44,183,176,.35);
}

.ind-cta-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    height: 100%;
}

.ind-cta-icon {
    width: 52px; height: 52px;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(44,183,176,.2), rgba(140,198,63,.15));
    border: 1px solid rgba(44,183,176,.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: #2CB7B0;
}

.ind-cta-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin: 0;
}

.ind-cta-desc {
    font-size: .875rem;
    line-height: 1.65;
    color: rgba(255,255,255,.6);
    margin: 0;
    flex: 1;
}

.ind-cta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.ind-cta-badges span {
    font-size: .7rem;
    font-weight: 600;
    padding: .22rem .7rem;
    border-radius: 99px;
    background: rgba(44,183,176,.1);
    color: rgba(44,183,176,.85);
    border: 1px solid rgba(44,183,176,.2);
}

.ind-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: .75rem 1.6rem;
    border-radius: .875rem;
    background: linear-gradient(135deg, #2CB7B0 0%, #8CC63F 100%);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s, transform .2s;
    box-shadow: 0 4px 20px rgba(44,183,176,.3);
    margin-top: auto;
    align-self: flex-start;
}
.ind-cta-btn:hover { opacity: .9; transform: translateX(3px); }
