@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;600;700&display=swap');

:root {
    color-scheme: light;
    /* Force light UI elements but keep our dark theme custom styles */
    /* Brand Colors - Premium & Trustworthy */
    --primary-color: #002B49;
    /* Deep Navy Blue - Authority */
    --primary-light: #004E85;
    --accent-color: #00C2CB;
    /* Medical Teal/Cyan - Modern & Clean */
    --accent-hover: #00A6AE;
    --text-dark: #1A1A1A;
    --text-light: #555555;
    --white: #FFFFFF;
    --bg-light: #F4F7F9;
    --bg-white: #FFFFFF;
    --success: #25D366;
    /* WhatsApp Green */
    --success-hover: #128C7E;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px */
    --spacing-lg: 4rem;
    /* 64px */
    --spacing-xl: 8rem;
    /* 128px */

    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* Clean touch on mobile */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-white);
    /* Ensure solid background under everything */
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color) !important;
    /* Force legibility */
}

p,
span,
li,
a {
    color: inherit;
    /* Maintain hierarchy but allow explicit overrides */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    overflow: hidden;
    /* Prevent horizontal scroll */
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    word-break: break-word;
    /* Prevent overflow of long words like "transformación" */
    text-align: center;
    /* Force center mobile */
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light) !important;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    text-align: center;
    /* Force center mobile */
}

@media (min-width: 768px) {
    .section-subtitle {
        font-size: 1.15rem;
    }
}

/* Mobile-Specific Centering Container */
.mobile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.text-center {
    text-align: center;
}

/* Reveal Animations System */
.reveal {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: blur(10px);
    will-change: transform, opacity, filter;
}

.reveal-up {
    transform: translateY(60px);
}

.reveal-down {
    transform: translateY(-60px);
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal-zoom {
    transform: scale(0.8);
}

.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
    filter: blur(0);
}

/* Staggering for Grids (Premium logic) */
.reveal-stagger>*:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal-stagger>*:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal-stagger>*:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal-stagger>*:nth-child(4) {
    transition-delay: 0.4s;
}

.reveal-stagger>*:nth-child(5) {
    transition-delay: 0.5s;
}

.reveal-stagger>*:nth-child(6) {
    transition-delay: 0.6s;
}

.reveal-stagger>*:nth-child(7) {
    transition-delay: 0.7s;
}

.reveal-stagger>*:nth-child(8) {
    transition-delay: 0.8s;
}

.section-title.reveal {
    transition-delay: 0.1s;
}

.section-subtitle.reveal {
    transition-delay: 0.3s;
}

.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

/* Buttons & CTAs */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    /* Pill shape */
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.btn-primary {
    background-color: var(--success);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-primary:hover {
    background-color: var(--success-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.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);
    transform: translateY(-2px);
}

/* Whatsapp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--success);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-color);
}

.nav-cta {
    display: none;
    /* Mobile first hidden, shown on desk */
}

@media (min-width: 768px) {
    .nav-cta {
        display: flex;
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 120px;
    padding-bottom: var(--spacing-lg);
    background: var(--bg-white);
    /* Hardened background */
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    text-align: center;
    /* Center by default for mobile */
}

@media (min-width: 992px) {
    .hero {
        padding-top: 160px;
        padding-bottom: var(--spacing-xl);
    }

    .hero-content {
        grid-template-columns: 1.1fr 0.9fr;
        text-align: left;
    }
}

.hero-text h1 {
    font-size: 2.5rem;
    /* Better for mobile */
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }
}

.hero-text .subheadline {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .hero-text .subheadline {
        font-size: 1.25rem;
        margin-left: 0;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    /* Center on mobile */
    justify-content: center;
    width: 100%;
}

@media (min-width: 576px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .hero-buttons {
        justify-content: flex-start;
        align-items: flex-start;
    }
}

/* Pulse Animation for Primary Button */
.pulse-btn {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.hero-image {
    position: relative;
    border-radius: 30px;
    /* Modern rounded corners */
    /* No overflow hidden so cards can float out slightly if needed, but usually safer to keep in */
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 43, 73, 0.15);
    transform: perspective(1000px) rotateY(-2deg);
    /* Subtle 3D effect */
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

/* Floating Cards in Hero */
.hero-float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    max-width: 220px;
}

.hero-float-card.card-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.hero-float-card.card-2 {
    bottom: 10%;
    left: -20px;
    animation-delay: 3s;
}

.hero-float-card .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--text-dark);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.hero-float-card .icon-box.success {
    background: var(--success);
}

.hero-float-card strong {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.hero-float-card p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-light);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive adjustments for float cards */
@media (max-width: 991px) {
    .hero-float-card.card-1 {
        right: 0;
    }

    .hero-float-card.card-2 {
        left: 0;
    }
}

@media (max-width: 768px) {
    .hero-image img {
        transform: none;
    }

    .hero-float-card {
        display: none;
        /* Hide on very small screens if cluttering */
    }
}

/* Dark Section Variant */
.section-dark {
    background-color: var(--primary-color);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Background Pattern for Dark Section */
.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(0, 194, 203, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 194, 203, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-dark h2 {
    color: var(--white);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.8);
}

/* Redesigned Authority Cards (Glassmorphism) */
.authority-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.authority-card {
    background: rgba(255, 255, 255, 0.03);
    /* Extremely subtle glass */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.authority-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    /* More visible on hover */
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.authority-icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color), var(--success-hover));
    border-radius: 50%;
    /* Circle */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* About (Nosotros) Section */
.about-section {
    padding: 6rem 0;
    overflow: hidden;
    position: relative;
    background-color: #1e293b;
    /* Fallback */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: visible;
    /* Prevent clipping of floating card */
}

.about-main-img {
    width: 100%;
    border-radius: 30px;
    object-fit: cover;
    box-shadow: -20px 20px 0px rgba(0, 194, 203, 0.1);
    /* Decorative accent */
    height: 600px;
}

.about-stat-card {
    position: absolute;
    bottom: 40px;
    right: -20px;
    background: #0f172a;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-star {
    font-size: 2rem;
    color: var(--accent-color);
    position: absolute;
    top: 10px;
    left: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.section-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.about-content h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.about-desc {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.check-col {
    list-style: none;
}

.check-col li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
}

.check-col li i {
    color: var(--accent-color);
    font-size: 1.1rem;
    background: rgba(0, 194, 203, 0.1);
    padding: 4px;
    border-radius: 4px;
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-image-wrapper {
        margin: 0 auto 3rem;
        max-width: 100%;
    }

    .about-stat-card {
        right: 10px;
        bottom: -20px;
        padding: 1.25rem;
        min-width: 140px;
        transform: scale(0.9);
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .about-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .checklist-grid {
        grid-template-columns: 1fr;
        text-align: left;
        display: inline-block;
        /* Helps with centering the list block */
        margin: 0 auto 2.5rem;
    }

    .check-col {
        padding: 0;
    }

    .check-col li {
        justify-content: flex-start;
        font-size: 0.95rem;
    }

    .about-desc {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .about-main-img {
        height: 400px;
    }

    .about-content .btn {
        margin: 0 auto;
    }
}

/* Process Section (Timeline Design) */
.process-section {
    position: relative;
    background: linear-gradient(to bottom, #ffffff, #f0f7ff);
    overflow: hidden;
}

.process-timeline {
    position: relative;
    margin-top: 4rem;
    padding-bottom: 2rem;
}

/* Connecting Line (Desktop) */
.process-timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    /* Aligned with icon centers */
    left: 10%;
    right: 10%;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
    border-radius: 4px;
}

/* Progress Line (Animated/Filled part - optional, currently fixed) */
.process-timeline::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    width: 60%;
    /* Represents partially filled */
    height: 4px;
    background: linear-gradient(90deg, var(--success), var(--accent-color));
    z-index: 1;
    border-radius: 4px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.timeline-step {
    position: relative;
    text-align: center;
    padding: 2rem 1rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-step:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 43, 73, 0.15);
    border-color: var(--accent-color);
}

.step-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: -70px auto 1.5rem;
    /* Pull up */
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 8px solid var(--bg-light);
    /* Ring effect */
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 2;
}

.timeline-step:hover .step-icon-wrapper {
    border-color: var(--accent-color);
    animation: bounce 1s;
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.1;
    /* Watermark number */
    position: absolute;
    top: 10px;
    right: 20px;
}

.step-content h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Mobile Timeline */
@media (max-width: 991px) {
    .process-section {
        padding: 4rem 0;
    }

    .process-timeline::before,
    .process-timeline::after {
        display: none;
        /* Hide horizontal line */
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 5rem;
        /* Increased for better icon breathing room */
        padding-top: 3rem;
    }

    .timeline-step {
        margin-top: 0;
        max-width: 400px;
        margin: 0 auto;
    }

    .timeline-step::before {
        /* Vertical line for mobile */
        content: '';
        position: absolute;
        top: -60px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 60px;
        background: #e0e0e0;
        z-index: -1;
    }

    .timeline-step:first-child::before {
        display: none;
    }
}

/* Mobile Utilities */
.hidden-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: block;
    }
}

/* Services Section */
/* Services Section (Premium Dark) */
.services-section {
    background-color: #0f172a;
    /* Dark Navy/Slate */
    color: var(--white);
    padding: var(--spacing-xl) 0;
}

.services-wrapper {
    position: relative;
    width: 100%;
}

.services-carousel {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 0 3rem 0;
    /* Space for shadow and scrollbar */
    scroll-snap-type: x mandatory;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.1);
}

.services-carousel::-webkit-scrollbar {
    height: 6px;
}

.services-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.services-carousel::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.service-card {
    background: #1e293b;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 280px;
    /* Reduced for better fit on small mobile */
    max-width: 350px;
    scroll-snap-align: center;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .service-card {
        min-width: 320px;
    }
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.service-image {
    height: 200px;
    /* Smaller for mobile */
    position: relative;
    overflow: hidden;
    background-color: #334155;
    /* Fallback Slate */
}

@media (min-width: 768px) {
    .service-image {
        height: 250px;
    }
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: brightness(0.9);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
    filter: brightness(1);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, #1e293b 0%, transparent 60%);
}

.service-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
    margin-top: -50px;
    /* Overlap image */
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 194, 203, 0.3);
    position: absolute;
    top: -30px;
    right: 2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
}

.service-content h3 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 700;
}

.service-content p {
    color: #cbd5e1;
    /* Lighter Slate for better contrast */
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 194, 203, 0.1);
    /* Subtle button feel */
    border-radius: 50px;
    transition: all 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
    color: var(--white);
    background: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 194, 203, 0.4);
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* Testimonials */
/* Testimonials (Infinite Carousel) */
/* Testimonials (Infinite Carousel) */
.testimonials-section {
    background: #0b1120;
    /* Deep Brutal Dark */
    overflow: hidden;
    padding: 4rem 0;
    /* Reduced for mobile */
    position: relative;
    width: 100%;
}

/* Hardened Contextual Colors for Legibility (Blindaje) */
/* 1. DARK CONTEXTS */
.section-dark h1,
.section-dark h2,
.section-dark h3,
.services-section h1,
.services-section h2,
.services-section h3,
.team-section h1,
.team-section h2,
.team-section h3,
.testimonials-section h1,
.testimonials-section h2,
.testimonials-section h3,
.final-cta h1,
.final-cta h2,
.final-cta h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: var(--white) !important;
}

.section-dark p,
.services-section p,
.team-section p,
.testimonials-section p,
.final-cta p,
.section-dark .section-subtitle,
.testimonials-section .section-subtitle,
.final-cta .section-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* 2. LIGHT CONTEXTS (Forced Blindaje) */
.faq-section h1,
.faq-section h2,
.faq-section h3,
.faq-section .section-title,
.faq-section h4 {
    color: var(--primary-color) !important;
}

.faq-section p,
.faq-section .section-subtitle {
    color: var(--text-light) !important;
}

.section-dark .section-tag {
    color: var(--accent-color) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.section-dark .check-col li {
    color: var(--white) !important;
}

.section-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    word-break: break-word;
    text-align: center;
    /* Force center mobile */
}

@media (min-width: 768px) {
    .testimonials-section {
        padding: 6rem 0;
    }
}

.testimonials-section h2 {
    color: var(--white) !important;
}

.testimonials-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
}

.testimonials-section::before,
.testimonials-section::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15vw;
    /* Responsive fade */
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonials-section::before {
    left: 0;
    background: linear-gradient(to right, #0b1120, transparent);
}

.testimonials-section::after {
    right: 0;
    background: linear-gradient(to left, #0b1120, transparent);
}

.testimonials-wrapper {
    display: flex;
    overflow: hidden;
    width: 100%;
    margin-top: 2rem;
}

.testimonials-track {
    display: flex;
    gap: 1.5rem;
    /* Reduced for mobile */
    animation: scroll 40s linear infinite;
    width: max-content;
}

@media (min-width: 768px) {
    .testimonials-track {
        gap: 2rem;
    }
}

.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    background: #1e293b;
    padding: 2rem;
    /* Reduced for mobile */
    border-radius: 20px;
    position: relative;
    width: 280px;
    /* Safer width for small mobile */
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .testimonial-card {
        padding: 2.5rem;
        width: 400px;
    }
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.testimonial-card::before {
    content: '"';
    font-family: 'Montserrat', sans-serif;
    font-size: 6rem;
    color: rgba(0, 194, 203, 0.2);
    /* Low opacity accent */
    position: absolute;
    top: 0px;
    left: 20px;
    line-height: 1;
    z-index: 0;
}

.testimonial-text {
    position: relative;
    z-index: 1;
    font-style: italic;
    margin-bottom: 2rem;
    color: #e2e8f0;
    /* Light text */
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--white);
    font-weight: 700;
}

.verified-badge {
    color: var(--success);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    margin-top: 4px;
}

.stars {
    color: #fbbf24;
    /* Amber 400 */
    font-size: 1rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Moves half the width (the duplicated set) */
    }
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: var(--spacing-md) auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color) !important;
    /* Force legibility */
    background: var(--white);
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-dark) !important;
    /* Force legibility */
    opacity: 0.9;
}

.faq-item.active .faq-answer {
    padding: 1.25rem;
    padding-top: 0;
    max-height: 400px;
    /* Sufficient height for mobile */
}

.faq-item.active .faq-question {
    color: var(--accent-color) !important;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-color);
}

/* Final CTA (Brutal) */
.final-cta {
    background: #0b1120;
    /* Solid fallback */
    background: linear-gradient(135deg, #0b1120 0%, #0f172a 100%);
    position: relative;
    padding: 4rem 0;
    /* Reduced for mobile */
    overflow: hidden;
    text-align: center;
}

@media (min-width: 768px) {
    .final-cta {
        padding: 8rem 0;
    }
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 194, 203, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    /* Narrower for better containment */
    margin: 0 auto;
    padding: 0 1.5rem;
    /* Ensure breathing room on sides */
}

@media (min-width: 768px) {
    .cta-content {
        max-width: 800px;
    }
}

.cta-headline {
    font-size: 2.2rem;
    /* Scaled for mobile */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white) !important;
    font-weight: 800;
}

@media (min-width: 768px) {
    .cta-headline {
        font-size: 3.5rem;
    }
}

.cta-subheadline {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Giant WhatsApp Button */
.btn-whatsapp-giant {
    background: #25D366;
    color: white !important;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    /* Slightly reduced gap for mobile */
    padding: 1rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    border: 2px solid #25D366;
    max-width: 100%;
    /* Prevent button overflow */
}

@media (min-width: 768px) {
    .btn-whatsapp-giant {
        gap: 1.5rem;
        padding: 1rem 2.5rem;
    }
}

.btn-whatsapp-giant:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.6);
    background: #1faf54;
}

.btn-whatsapp-giant .icon-wrapper {
    font-size: 2.5rem;
    /* Scaled for mobile */
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .btn-whatsapp-giant .icon-wrapper {
        font-size: 3rem;
    }
}

.btn-whatsapp-giant .btn-text {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.btn-whatsapp-giant .small-text {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white !important;
}

.btn-whatsapp-giant .big-text {
    font-size: 1.2rem;
    /* Scaled for mobile */
    font-weight: 800;
    line-height: 1;
    color: white !important;
}

@media (min-width: 768px) {
    .btn-whatsapp-giant .big-text {
        font-size: 1.5rem;
    }
}

.cta-trust {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.cta-trust span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-trust i {
    color: var(--accent-color);
}

/* Main Footer (Premium) */
.main-footer {
    padding-top: 6rem;
    background-color: #0b1120;
}

.footer-legal a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .cta-headline {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Navbar Upgrade (Glassmorphism) */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-color);
}

/* Hero Typography Polish */
.hero-text h1 {
    font-size: 2.2rem;
    /* Slightly smaller for safer mobile fit */
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: var(--primary-color) !important;
    width: 100%;
    /* Ensure full-width centering */
}

@media (min-width: 768px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }
}

.subheadline {
    font-size: 1.1rem;
    color: var(--text-light) !important;
    margin-bottom: 2rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

@media (min-width: 992px) {
    .subheadline {
        font-size: 1.25rem;
        margin-left: 0;
        text-align: left;
    }
}


.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo span {
    color: var(--accent-color);
}

.brand-col p {
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 300px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 174, 239, 0.3);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(8px);
    text-shadow: 0 0 10px rgba(0, 174, 239, 0.5);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.footer-contact i {
    font-size: 1.5rem;
    margin-top: 2px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-contact div {
    display: flex;
    flex-direction: column;
}

.footer-contact span {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact strong {
    color: var(--white);
    font-weight: 600;
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.contact-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}


.footer-legal a:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .cta-headline {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.footer-bottom p {
    padding-top: var(--spacing-sm);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Team Section (New) */
.team-section {
    background-color: #0b1120;
    /* Deep dark background */
    padding: var(--spacing-lg) 0;
    /* Reduced for mobile */
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .team-section {
        padding: var(--spacing-xl) 0;
    }
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Slightly narrower for mobile */
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.team-card {
    background: #1e293b;
    border-radius: 30px;
    padding: 0;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: visible;
    /* Changed to visible for pop-out */
    margin-top: 30px;
    /* Space for pop-out head */
}

.team-card:hover {
    /* transform: translateY(-5px); REMOVED to pin background */
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 194, 203, 0.15);
}

.team-img-wrapper {
    /* Removed background and overflow hidden for 3D effect */
    height: 320px;
    width: calc(100% - 3rem);
    margin: 1.5rem 1.5rem 0 1.5rem;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
}

/* The White Card Background */
.team-img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #ffffff;
    border-radius: 20px;
    z-index: -1;
    transition: all 0.4s ease;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy pop */
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
    z-index: 10;
    border-radius: 0 0 20px 20px;
    /* Round only bottom */
    transform-origin: bottom center;
    /* Grow from bottom */
}

/* Hover Effect: 3D Pop Out */
.team-card:hover .team-img-wrapper img {
    transform: scale(1.15);
    /* Scale up from bottom only, no lifting */
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
    border-radius: 0 0 20px 20px;
    /* Maintain bottom radius */
}

/* Refinement for Silhouette */


.team-info {
    padding: 1.5rem 80px 2rem 2rem;
    /* Added right padding for button space */
    position: relative;
    min-height: 120px;
    /* Ensure consistent height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-info h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.team-role {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.team-role::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.team-action-btn {
    position: absolute;
    bottom: 50%;
    /* Center vertically in the info section */
    right: 2rem;
    transform: translateY(50%);
    /* Center vertically */
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 194, 203, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}


.team-action-btn:hover {
    transform: scale(1.15) rotate(90deg);
    background-color: var(--white);
    color: var(--accent-color);
}

/* AI Assistant Chat Widget */
.ai-assistant-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    font-family: 'Montserrat', sans-serif;
}

.ai-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-chat-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: #1e293b;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.assistant-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.assistant-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid #1e293b;
    border-radius: 50%;
}

.assistant-name {
    display: block;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
}

.assistant-status {
    display: block;
    color: #94a3b8;
    font-size: 0.75rem;
}

.close-chat {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.close-chat:hover {
    color: white;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-image: radial-gradient(rgba(0, 194, 203, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.message {
    padding: 12px 16px;
    border-radius: 15px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.5;
}

.message.bot {
    background: #1e293b;
    color: #f1f5f9;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message.user {
    background: var(--accent-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-footer {
    padding: 1rem;
    background: #1e293b;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-reply {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-reply:hover {
    background: rgba(0, 194, 203, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

#book-now-reply {
    background: var(--accent-color);
    color: white;
    border: none;
    font-weight: 600;
}

#book-now-reply:hover {
    box-shadow: 0 4px 15px rgba(0, 194, 203, 0.4);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
}

.ai-trigger {
    border: none;
    cursor: pointer;
}

/* Chat Input & Typing Indicator */
.chat-input-wrapper {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    background: #0f172a;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-size: 0.9rem;
    padding: 4px 8px;
    outline: none;
}

.send-btn {
    background: var(--accent-color);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 194, 203, 0.3);
}

.typing-indicator {
    padding: 10px 20px;
    display: none;
    gap: 4px;
}

.typing-indicator.active {
    display: flex;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .ai-assistant-widget {
        bottom: 20px;
        right: 20px;
    }

    .ai-chat-window {
        width: calc(100vw - 40px);
        right: 0;
        bottom: 70px;
        max-height: 80vh;
        /* Better for tall mobile browsers */
    }

    .ai-trigger {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .notification-badge {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }
}