/* Custom Styles for Mediatech Landing Page */

/* CSS crítico mínimo inline-simulado para prevenir FOUC cuando Tailwind carga defer */
@media (min-width:0){
  body{opacity:1}
  .min-h-screen{min-height:100vh}
  .container{max-width:1200px;margin-left:auto;margin-right:auto}
}

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery animations */
@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

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

@keyframes slideUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(14, 165, 233, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.8);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

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

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

.animate-bounce {
    animation: bounce 1s ease-in-out;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Background Gallery Styles */
.hero-gallery {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.gallery-row {
    display: flex;
    position: absolute;
    width: 200%;
    height: 150px;
    will-change: transform;
    backface-visibility: hidden;
}

.gallery-row.row-1 {
    top: 0;
    animation: slideLeft 30s linear infinite;
}

.gallery-row.row-2 {
    top: 160px;
    animation: slideRight 35s linear infinite;
}

.gallery-row.row-3 {
    top: 320px;
    animation: slideLeft 40s linear infinite;
}

.gallery-row.row-4 {
    top: 480px;
    animation: slideRight 25s linear infinite;
}

.gallery-image {
    height: 140px;
    width: 90px;
    object-fit: cover;
    border-radius: 12px;
    margin-right: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
}

.gallery-image:hover {
    transform: scale(1.1) rotate(2deg);
    opacity: 0.9;
    filter: brightness(1.1) saturate(1.2);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
    z-index: 20;
}

/* Hero content overlay */
.hero-content {
    position: relative;
    z-index: 10;
}

/* Gradient overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(249, 250, 251, 0.7) 0%, 
        rgba(255, 255, 255, 0.5) 30%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.5) 70%,
        rgba(249, 250, 251, 0.7) 100%);
    backdrop-filter: blur(0.3px);
    z-index: 5;
}

/* Add a subtle moving blur effect */
@keyframes backgroundBlur {
    0% {
        backdrop-filter: blur(0.3px);
    }
    50% {
        backdrop-filter: blur(0.6px);
    }
    100% {
        backdrop-filter: blur(0.3px);
    }
}

.hero-overlay {
    animation: backgroundBlur 12s ease-in-out infinite;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom button hover effects */
.btn-gradient {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Chat input focus effects */
.chat-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Service button hover effects */
.service-btn {
    transition: all 0.3s ease;
    border: 2px solid #0ea5e9;
}

.service-btn:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

/* Mobile menu animations */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Loading animation for chat */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #0ea5e9;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .service-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .chat-container {
        margin: 0 1rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gradient-text {
        color: #0ea5e9 !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
}

/* Mobile optimizations for gallery */
@media (max-width: 768px) {
    .hero-gallery {
        opacity: 0.4 !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .gallery-row {
        height: 120px;
        display: flex !important;
        visibility: visible !important;
    }
    
    .gallery-image {
        height: 110px;
        width: 70px;
        margin-right: 15px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .gallery-row.row-1 {
        animation: slideLeft 20s linear infinite;
        top: 10px;
    }
    
    .gallery-row.row-2 {
        animation: slideRight 25s linear infinite;
        top: 140px;
    }
    
    .gallery-row.row-3 {
        animation: slideLeft 30s linear infinite;
        top: 270px;
    }
    
    .gallery-row.row-4 {
        animation: slideRight 18s linear infinite;
        top: 400px;
    }
    
    /* Reduce motion for better mobile performance */
    .gallery-image:hover {
        transform: scale(1.05) rotate(1deg);
    }
    
    /* Hero overlay adjustment for mobile */
    .hero-overlay {
        background: linear-gradient(135deg, 
            rgba(249, 250, 251, 0.6) 0%, 
            rgba(255, 255, 255, 0.4) 30%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.4) 70%,
            rgba(249, 250, 251, 0.6) 100%);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .gallery-row {
        animation: none;
    }
    
    .gallery-image {
        transition: none;
    }
    
    .hero-overlay {
        animation: none;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #0ea5e9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

/* Selection color */
::selection {
    background-color: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
}

/* Custom properties for easy theming */
:root {
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --cyan-color: #06b6d4;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Dark mode support (if needed in the future) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --bg-primary: #111827;
        --bg-secondary: #1f2937;
        --border-color: #374151;
    }
}

/* ===== MOBILE MENU STYLES ===== */
/* Navbar (desktop) refinements */
.mega-trigger { color:#374151; font-weight:500; padding:8px 10px; border-radius:8px; transition:color .2s ease, background-color .2s ease; }
.mega-trigger:hover { color:#0ea5e9; background:#f3f4f6; }
.nav-link { color:#4b5563; padding:8px 10px; border-radius:8px; transition:color .2s ease, background-color .2s ease; }
.nav-link:hover, .nav-link:focus { color:#0ea5e9; background:#f3f4f6; outline:2px solid transparent; outline-offset:2px; }
.btn-cta { background-image:linear-gradient(135deg,#0ea5e9 0%,#06b6d4 100%); color:#fff; padding:10px 16px; border-radius:10px; transition:all .2s ease; box-shadow:0 0 0 rgba(0,0,0,0); }
.btn-cta:hover { box-shadow:0 10px 20px rgba(14,165,233,.25); transform:translateY(-1px); }
.btn-cta:focus { outline:2px solid #0ea5e9; outline-offset:2px; }

.mega-panel { width:100%; max-width:1280px; margin:0 auto; display:block; padding:8px 16px; max-height:calc(100vh - 80px); overflow:auto; position:relative; }
/* cuando se usa menu fijo, aseguramos el offset del navbar */
#mega-menu.fixed-offset { top:64px; }
.mega-item { display:flex; align-items:flex-start; gap:12px; padding:14px; border-radius:12px; min-height:84px; }
.mega-item:hover { background:#f9fafb; }
.mega-icon { flex:0 0 40px; border-radius:10px; }
.mega-text { line-height:1.35; }
.mega-title { font-weight:700; color:#0f172a; margin-bottom:6px; font-size:1.05rem; }
.mega-subtitle { color:#475569; font-size:.875rem; }
.mega-sublist { margin-top:6px; padding-left:18px; color:#475569; font-size:.85rem; }
.mega-sublist li { margin:4px 0; list-style: disc; }
.mega-panel .grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:28px; width:100%; }

@media (max-width: 1280px) {
  .mega-panel .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap:24px; }
}
@media (max-width: 1024px) {
  .mega-panel .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap:20px; }
}

@media (max-width: 768px) {
  .mega-panel .grid { grid-template-columns: 1fr; }
}
.mega-panel .grid { margin:0; }
.mega-panel a { border-radius:12px; padding:10px; transition:background-color .2s ease; }
.mega-panel a:hover { background:#f9fafb; }
.mega-panel h3 { margin-bottom:6px; }
.mega-open header { box-shadow: 0 10px 25px rgba(0,0,0,.06); }

/* Hamburger button animation */
.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #374151;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Desktop menu button styles */
@media (min-width: 640px) {
    #mobile-menu-btn {
        border: 1px solid #e5e7eb;
        background: white;
    }
    
    #mobile-menu-btn:hover {
        background: #f9fafb;
        border-color: #d1d5db;
    }
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 50;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Mobile menu container */
.mobile-menu-container {
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.1);
    z-index: 51;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateX(0);
}

/* Mobile menu header */
.mobile-menu-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    position: relative;
    overflow: hidden;
}

.mobile-menu-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

/* Mobile navigation items */
.mobile-nav-item {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.6s ease-out forwards;
}

.mobile-nav-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-item:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav-item:nth-child(3) { animation-delay: 0.3s; }

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-nav-link:hover {
    transform: translateX(8px) scale(1.02);
    border-color: #0ea5e9;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.15);
}

.mobile-nav-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav-link:hover .mobile-nav-icon::before {
    transform: translateX(100%);
}

.mobile-nav-link:hover .mobile-nav-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.mobile-nav-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mobile-nav-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
    margin-bottom: 2px;
}

.mobile-nav-subtitle {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.2;
}

.mobile-nav-arrow {
    color: #9ca3af;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover .mobile-nav-arrow {
    color: #0ea5e9;
    transform: translateX(4px);
}

/* Mobile CTA section */
.mobile-cta {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.mobile-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 4s infinite;
}

.mobile-cta-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-cta-btn:hover::before {
    left: 100%;
}

.mobile-cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

/* Mobile footer */
.mobile-footer {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

.mobile-social-link {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mobile-social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.mobile-social-link:hover::before {
    transform: scale(1);
}

.mobile-social-link:hover {
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.mobile-social-link svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.mobile-social-link:hover svg {
    transform: scale(1.1);
}

/* Close button */
.mobile-close-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
}

/* Mobile menu animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Mobile menu entrance animation */
.mobile-menu-overlay.active .mobile-menu-container {
    animation: slideInFromRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Mobile menu exit animation */
.mobile-menu-overlay.closing .mobile-menu-container {
    animation: slideOutToRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

/* Mobile menu overlay fade */
.mobile-menu-overlay.active {
    animation: fadeIn 0.3s ease-out;
}

/* Header adjustments when mobile menu is open */
.mobile-menu-overlay.active ~ header,
.mobile-menu-overlay.active + header {
    z-index: 29;
}

.mobile-menu-overlay.closing {
    animation: fadeOut 0.3s ease-out;
}

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

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

/* Mobile menu responsive adjustments */
@media (max-width: 480px) {
    .mobile-menu-container {
        width: 100%;
        max-width: 320px;
    }
    
    .mobile-nav-link {
        padding: 12px;
    }
    
    .mobile-nav-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .mobile-nav-title {
        font-size: 14px;
    }
    
    .mobile-nav-subtitle {
        font-size: 11px;
    }
}

/* Desktop menu adjustments */
@media (min-width: 481px) {
    .mobile-menu-container {
        width: 400px;
        max-width: 90vw;
    }
    
    .mobile-nav-link {
        padding: 20px;
    }
    
    .mobile-nav-icon {
        width: 56px;
        height: 56px;
        margin-right: 20px;
    }
    
    .mobile-nav-title {
        font-size: 18px;
    }
    
    .mobile-nav-subtitle {
        font-size: 14px;
    }
    
    .mobile-menu-header {
        padding: 24px;
    }
    
    .mobile-menu-content {
        padding: 24px;
    }
    
    .mobile-cta {
        margin-top: 32px;
        padding: 24px;
    }
    
    .mobile-footer {
        margin-top: 32px;
        padding-top: 24px;
    }
}

/* Mobile menu accessibility */
@media (prefers-reduced-motion: reduce) {
    .mobile-nav-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .mobile-menu-container {
        transition: none;
    }
    
    .mobile-nav-link:hover {
        transform: none;
    }
    
    .mobile-nav-icon {
        transition: none;
    }
    
    .mobile-social-link {
        transition: none;
    }
}

/* Mobile menu focus styles */
.mobile-nav-link:focus,
.mobile-cta-btn:focus,
.mobile-social-link:focus,
.mobile-close-btn:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* Mobile menu loading state */
.mobile-menu-loading {
    position: relative;
}

.mobile-menu-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #0ea5e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Chat specific styles */
.chat-message {
    animation: fadeInUp 0.3s ease-out;
}

.chat-message.user {
    animation-delay: 0.1s;
}

.chat-message.assistant {
    animation-delay: 0.2s;
}

/* Loading spinner animation */
.animate-spin {
    animation: spin 1s linear infinite;
}

/* Chat container scrollbar */
#chat-messages::-webkit-scrollbar {
    width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Chat message animations */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message {
    animation: messageSlideIn 0.3s ease-out;
}

/* Disabled state styles */
#chat-input:disabled,
#send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#send-button:disabled {
    background: #9ca3af;
}

/* New Modern Chat Styles */
.quick-action-btn { display:flex; align-items:center; gap:8px; padding:8px 12px; background:#fff; border:1px solid #e5e7eb; border-radius:10px; font-size:.8125rem; color:#374151; transition:all .3s cubic-bezier(0.4,0,0.2,1); box-shadow:0 1px 2px rgba(0,0,0,.05); }
.quick-action-btn:hover { background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%); border-color:#0ea5e9; transform:translateY(-2px); box-shadow:0 8px 20px rgba(14,165,233,.15); }
.quick-action-btn .icon { width:18px; height:18px; color:#0ea5e9; transition:transform .3s ease; }
.quick-action-btn:hover .icon { transform:scale(1.1); }

/* Icon styles for quick action buttons */
.quick-action-btn .icon {
    @apply transition-transform duration-300;
}

/* Specific icon colors for different services */
.quick-action-btn:nth-child(1) .icon {
    @apply text-mediatech-500;
}

.quick-action-btn:nth-child(2) .icon {
    @apply text-green-500;
}

.quick-action-btn:nth-child(3) .icon {
    @apply text-purple-500;
}

.quick-action-btn:nth-child(4) .icon {
    @apply text-orange-500;
}

.send-button { width:48px; height:48px; background-image:linear-gradient(135deg,#0ea5e9 0%,#06b6d4 100%); color:#fff; border-radius:16px; display:inline-flex; align-items:center; justify-content:center; transition:all .2s ease; box-shadow:0 0 0 rgba(0,0,0,0); }
.send-button:hover { transform:scale(1.05); box-shadow:0 10px 20px rgba(14,165,233,.25); }
.send-button:disabled { opacity:.5; cursor:not-allowed; transform:none; }

/* Message Bubble Animations */
.message-bubble {
    position: relative;
}

.message-bubble::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
}

.user-message::before {
    right: -8px;
    top: 12px;
    border-left: 8px solid transparent;
    border-top: 8px solid #0ea5e9;
    border-bottom: 8px solid transparent;
}

.assistant-message::before {
    left: -8px;
    top: 12px;
    border-right: 8px solid #e5e7eb;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* Enhanced Floating Animation */
@keyframes enhanced-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-15px) rotate(1deg);
    }
    66% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

.animate-float {
    animation: enhanced-float 6s ease-in-out infinite;
}

/* Glass Morphism Effect */
.backdrop-blur-xl {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Pulse Glow Animation */
@keyframes pulse-glow-enhanced {
    0%, 100% {
        box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(14, 165, 233, 0.6);
        transform: scale(1.05);
    }
}

.animate-pulse-glow {
    animation: pulse-glow-enhanced 2s ease-in-out infinite;
}

/* Scroll Animation */
.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(-50%, 0, 0);
    }
    40%, 43% {
        transform: translate3d(-50%, -15px, 0);
    }
    70% {
        transform: translate3d(-50%, -8px, 0);
    }
    90% {
        transform: translate3d(-50%, -3px, 0);
    }
}

/* Responsive Chat Styles */
@media (max-width: 768px) {
    .quick-action-btn {
        @apply text-xs px-3 py-2 flex-col space-x-0 space-y-1;
    }
    
    .quick-action-btn span {
        @apply text-center leading-tight text-xs;
    }
    
    .quick-action-btn .icon {
        @apply text-base;
    }
    
    .message-bubble {
        @apply max-w-xs;
    }
    
    .send-button {
        @apply w-10 h-10;
    }
}

/* Chat Message Hover Effects */
.message-bubble:hover {
    @apply transform scale-105 transition-transform duration-200;
}

.user-message:hover {
    @apply shadow-xl;
}

.assistant-message:hover {
    @apply shadow-md border-mediatech-200;
}

/* Focus States */
#chat-input:focus {
    @apply ring-2 ring-mediatech-500 border-mediatech-500 shadow-lg;
}

/* Loading Dots Animation */
@keyframes loading-dots {
    0%, 20% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0.4;
        transform: scale(1);
    }
}

.loading-dot {
    animation: loading-dots 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(1) { animation-delay: 0s; }
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

/* Hero Background Animation */
@keyframes background-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.bg-gradient-animated {
    background: linear-gradient(-45deg, #f8fafc, #e0f2fe, #dbeafe, #f1f5f9);
    background-size: 400% 400%;
    animation: background-shift 15s ease infinite;
}

/* Floating Chat Styles */
.chat-bubble-button {
    @apply w-14 h-14 rounded-full shadow-lg hover:shadow-xl transition-all duration-300 transform hover:scale-110;
    animation: float 3s ease-in-out infinite;
}

.chat-bubble-button:hover {
    @apply shadow-2xl;
}

.floating-send-button { width:32px; height:32px; background-image:linear-gradient(135deg,#0ea5e9 0%,#06b6d4 100%); color:#fff; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; transition:all .2s ease; }
.floating-send-button:hover { transform:scale(1.05); box-shadow:0 8px 16px rgba(14,165,233,.25); }

.floating-send-button:disabled {
    @apply opacity-50 cursor-not-allowed transform-none;
}

/* Floating chat animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

#floating-chat-bubble {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#floating-chat-window {
    transform-origin: bottom right;
}

/* Welcome tooltip styles */
#welcome-tooltip {
    transform: translateY(5px);
    transition: all 0.3s ease-out;
}

#welcome-tooltip.show {
    transform: translateY(0);
}

/* Notification badge animation */
#notification-badge {
    animation: pulse 2s infinite;
}

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

/* Mobile responsive adjustments for floating chat */
@media (max-width: 768px) {
    #floating-chat-window {
        @apply w-80 bottom-16;
    }
    
    .chat-bubble-button {
        @apply w-12 h-12;
    }
    
    #floating-chat-messages {
        @apply h-64;
    }
}

@media (max-width: 480px) {
    #floating-chat-window {
        @apply w-72 bottom-16 right-2;
    }
}

/* Smooth scroll for floating messages */
#floating-chat-messages {
    scroll-behavior: smooth;
}

/* Chat bubble hover effects */
.chat-bubble-button:hover .online-indicator {
    @apply animate-ping;
}

/* Enhanced shadow effects for floating window */
#floating-chat-window {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Chat content formatting styles */
.chat-content strong {
    @apply font-semibold text-gray-900;
}

.chat-content em {
    @apply italic;
}

.chat-content .list-item {
    @apply flex items-start space-x-2 my-2;
}

.chat-content .list-item.numbered .list-number {
    @apply font-medium text-mediatech-600 min-w-fit;
}

.chat-content .list-item.bulleted .list-bullet {
    @apply text-mediatech-500 font-bold min-w-fit;
}

.chat-content .list-content {
    @apply flex-1;
}

.chat-content .chat-link {
    @apply text-mediatech-600 hover:text-mediatech-700 underline transition-colors;
}

.chat-content .chat-code {
    @apply bg-gray-100 text-gray-800 px-2 py-1 rounded text-xs font-mono;
}

.chat-content .chat-code-block {
    @apply bg-gray-100 p-3 rounded-lg mt-2 overflow-x-auto;
}

.chat-content .chat-code-block code {
    @apply text-xs font-mono text-gray-800;
}

/* Para mensajes del usuario (texto blanco) */
.user-message .chat-content strong {
    @apply font-semibold text-white;
}

.user-message .chat-content .chat-code {
    @apply bg-white/20 text-white;
}

.user-message .chat-content .chat-code-block {
    @apply bg-white/20;
}

.user-message .chat-content .chat-code-block code {
    @apply text-white;
}

.user-message .chat-content .chat-link {
    @apply text-white underline hover:text-white/80;
}

.user-message .chat-content .list-item.numbered .list-number {
    @apply text-white font-medium;
}

.user-message .chat-content .list-item.bulleted .list-bullet {
    @apply text-white;
}

/* Espaciado mejorado para elementos de lista */
.chat-content br + .list-item,
.chat-content .list-item + br {
    @apply mt-1;
}

/* Estilos para párrafos separados */
.chat-content {
    @apply leading-relaxed;
}

.chat-content p {
    @apply mb-3 last:mb-0;
}

.chat-content p:first-child {
    @apply mt-0;
}

.chat-content br {
    @apply leading-relaxed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chat-content .list-item {
        @apply space-x-1 my-1;
    }
    
    .chat-content .chat-code {
        @apply px-1 py-0.5 text-xs;
    }
    
    .chat-content .chat-code-block {
        @apply p-2 text-xs;
    }
}

/* Hero Background Gallery Styles */
.hero-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(20%) brightness(1) opacity(0.8);
    transition: all 0.5s ease;
}

.hero-gallery-item:hover img {
    filter: grayscale(0%) brightness(1.1) opacity(1);
    transform: scale(1.05);
}

/* Overlay removido para mayor claridad de las imágenes */

/* Enhanced float animation for gallery items */
@keyframes gallery-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(1deg);
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

.gallery-item-float {
    animation: gallery-float 8s ease-in-out infinite;
}

/* Staggered animation delays for visual interest */
.gallery-item-float:nth-child(1) { animation-delay: 0s; }
.gallery-item-float:nth-child(2) { animation-delay: 0.5s; }
.gallery-item-float:nth-child(3) { animation-delay: 1s; }
.gallery-item-float:nth-child(4) { animation-delay: 1.5s; }
.gallery-item-float:nth-child(5) { animation-delay: 2s; }
.gallery-item-float:nth-child(6) { animation-delay: 2.5s; }
.gallery-item-float:nth-child(7) { animation-delay: 3s; }
.gallery-item-float:nth-child(8) { animation-delay: 3.5s; }

/* Responsive adjustments for gallery */
@media (max-width: 768px) {
    .hero-gallery-item {
        border-radius: 8px;
    }
    
    .gallery-item-float {
        animation: gallery-float 6s ease-in-out infinite;
    }
} 