/* Page Loader / Spinner */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    animation: fadeInScale 0.6s ease-out;
}

.loader-logo {
    width: 140px;
    height: 140px;
    margin: 0 auto 40px;
    position: relative;
}

.loader-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(255, 87, 34, 0.7));
    animation: spinLogo 1.5s ease-in-out infinite;
}

@keyframes spinLogo {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.05);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

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

.loader-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    animation: pulse 2s ease-in-out infinite;
}

.loader-text::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Responsive Loader */
@media (max-width: 640px) {
    .loader-logo {
        width: 110px;
        height: 110px;
        margin-bottom: 30px;
    }
    
    .loader-text {
        font-size: 16px;
    }
}

/* Chatbot landscape mobile */
@media (max-width: 640px) and (max-height: 500px) {
    .chat-widget {
        height: 90vh;
    }
}

/* Reducir animaciones para usuarios que lo prefieran */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Optimización de inputs para móviles */
@media (max-width: 640px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        font-size: 16px !important; /* Evita zoom en iOS */
        min-height: 44px; /* Apple HIG recommendation */
    }
    
    button {
        min-height: 44px; /* Touch target mínimo */
    }
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimizaciones de rendimiento */
img {
    will-change: auto;
}

.hero, section {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Advanced Animations - Optimizadas */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    will-change: opacity, transform;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 1rem 1.5rem; /* Ajusta el padding para móviles */
    background: white; /* Fondo del header */
    z-index: 900;
    display: flex;
    justify-content: space-between; /* Espacio entre logo y botón */
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Logo/Título */
.header-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FF5722;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%; /* Limita el ancho para no chocar con el botón */
}

/* Hero Section */
.hero {
    background-image: url('../img/hero.png');
    background-size: 105% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    height: 100vh;
    will-change: auto;
}


/* Asegurar que el indicador de scroll esté visible */
.scroll-down-indicator {
    position: relative;
    z-index: 50 !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

@media (max-width: 768px) {
    .hero {
        /* Gradiente más suave y largo para mejor integración */
        background-image: linear-gradient(to bottom, rgba(11, 17, 32, 0) 40%, #0B1120 60%, #0B1120 100%), url('../img/graduacion.jpg') !important;
        /* Zoom aumentado al 180% y centrado arriba */
        background-size: 180% auto !important;
        background-position: top center !important;
        background-repeat: no-repeat !important;
        background-color: #0B1120 !important;
    }
    
    /* Asegurar que el overlay general no interfiera o ajustarlo si es necesario */
    .hero::before {
        background: rgba(0, 0, 0, 0.1); 
    }
}

/* Partículas del hero - Deshabilitadas para mejor rendimiento */
.hero-particle {
    display: none;
}

/* Animación de gradiente - Deshabilitada para mejor rendimiento */
.animate-gradient {
    background-size: 100% auto;
}

/* Animaciones pesadas deshabilitadas para mejor rendimiento */
.animate-spin-slow,
.animate-spin-reverse,
.animate-pulse-slow {
    animation: none;
}

/* Particle System */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 87, 34, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

/* Advanced Button Styles */
.btn-primary {
    background: #FF5722;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #FF5722;
    color: #FF5722;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #FF5722;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal.active .modal-content {
    transform: scale(1);
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #FF5722;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10001;
    max-width: 350px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: #10B981;
}

.toast.error {
    background: #EF4444;
}

.toast.warning {
    background: #F59E0B;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

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

/* Card Enhancements - Optimizadas */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(0);
    cursor: pointer;
    will-change: transform;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-hover:active {
    transform: translateY(-4px);
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
}



/* Swiper Customization */
.swiper-pagination-bullet {
    background: #FF5722 !important;
    opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    transform: scale(1.2);
}

.swiper-pagination-bullet {
    transition: all 0.3s ease;
}

/* Transiciones suaves para las slides */
.swiper-slide {
    transition: transform 0.6s ease;
    will-change: transform;
}

.swiper-slide-active {
    opacity: 1;
}

.swiper-slide-next,
.swiper-slide-prev {
    opacity: 1;
}

/* Botones de navegación con transición suave */
.swiper-button-next,
.swiper-button-prev {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Animación suave para el carrusel */
.instructorSwiper .swiper-wrapper {
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Instructor Card */
.instructor-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: default;
    opacity: 1 !important;
}

.instructor-card * {
    opacity: 1 !important;
}

/* Asegurar que todas las slides tengan el mismo fondo oscuro */
.instructorSwiper .swiper-slide {
    opacity: 1 !important;
}

.instructorSwiper .swiper-slide .instructor-card {
    background-color: #000000 !important;
    opacity: 1 !important;
}

.instructorSwiper .swiper-slide .instructor-card > div {
    background-color: #000000 !important;
    opacity: 1 !important;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Galería responsive - imagen completa en mobile */
@media (max-width: 768px) {
    .gallery-item img {
        height: 250px; /* Más altura en mobile */
        object-fit: cover; /* Cubrir todo el card sin espacios */
        object-position: center;
    }
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 87, 34, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Chat Widget Mejorado */
.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 550px;
    max-height: calc(100vh - 150px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    z-index: 1000;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-widget.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #FF5722 0%, #FF6B3D 100%);
    color: white;
    padding: 16px;
    border-radius: 20px 20px 0 0;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 87, 34, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.chat-input {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    background: white;
    border-radius: 0 0 20px 20px;
}

/* Mensajes del chat */
.bot-message {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 12px 16px;
    border-radius: 16px 16px 16px 4px;
    margin-bottom: 12px;
    display: inline-block;
    max-width: 85%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    animation: fadeInLeft 0.3s ease-out;
}

.user-message {
    background: linear-gradient(135deg, #FF5722 0%, #FF6B3D 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 16px 16px 4px 16px;
    margin-bottom: 12px;
    display: inline-block;
    max-width: 85%;
    float: right;
    clear: both;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
    animation: fadeInRight 0.3s ease-out;
}

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

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

.typing-indicator {
    display: inline-flex;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px 16px 16px 4px;
    margin-bottom: 12px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #FF5722;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Botón flotante del chat */
#chatButtonWrapper {
    animation: slideInRight 0.5s ease-out;
}

/* Ocultar chatbot en hero section (mobile) */
@media (max-width: 1024px) {
    /* Ocultar por defecto al inicio en mobile */
    #chatButtonWrapper {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    body.hero-visible #chatButtonWrapper {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    body:not(.hero-visible) #chatButtonWrapper {
        opacity: 1;
        pointer-events: auto;
        transition: opacity 0.3s ease;
    }
}

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

#chatButton {
    animation: pulseChat 2.5s infinite;
}

#chatButton img {
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}

#chatButton:hover img {
    transform: rotate(10deg) scale(1.1);
}

#chatTooltip {
    animation: bounceIn 1s ease-out, floatTooltip 3s ease-in-out infinite;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(20px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

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

@keyframes pulseChat {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 87, 34, 0);
    }
}

/* Ocultar tooltip cuando el chat está abierto */
.chat-widget.active ~ #chatButtonWrapper #chatTooltip {
    display: none;
}

/* Opciones rápidas mejoradas */
#quickOptions button,
#followUpButtons button {
    transition: all 0.2s ease;
    font-weight: 500;
}

#quickOptions button:hover,
#followUpButtons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #FF5722;
    color: #FF5722;
}

#quickOptions button:active,
#followUpButtons button:active {
    transform: translateY(0);
}

/* Botón de reserva en el chat */
.chat-messages button[onclick="openReserveFromChat()"] {
    animation: pulseButton 2s ease-in-out infinite;
}

@keyframes pulseButton {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(255, 87, 34, 0.6);
    }
}

/* Responsive Chat */
@media (max-width: 640px) {
    .chat-widget {
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        bottom: 10px;
        right: 10px;
    }
    
    #chatButtonWrapper {
        bottom: 20px;
        right: 20px;
    }
    
    #chatButton {
        width: 64px;
        height: 64px;
    }
    
    #chatButton img {
        width: 52px;
        height: 52px;
    }
    
    #chatTooltip {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

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

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(255, 87, 34, 0.3);
    }
    to {
        box-shadow: 0 0 30px rgba(255, 87, 34, 0.6);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: #FF5722;
    z-index: 10001;
    transition: width 0.1s ease;
    box-shadow: 0 2px 4px rgba(255, 87, 34, 0.3);
    opacity: 1;
    visibility: visible;
}

/* Enhanced Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding-top: 2rem;
        background-size: cover; /* Cubrir todo el espacio */
        background-position: center center; /* Centrar la imagen */
        background-repeat: no-repeat;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
    
    .text-8xl {
        font-size: 4rem;
    }
    
    /* Ajustar estructura de About en mobile */
    #about .grid {
        gap: 2rem;
    }
    
    /* Ocultar badge de años en mobile para mejor visualización */
    #about .absolute.-bottom-6 {
        display: none;
    }
}

    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    .fab {
        bottom: 80px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    /* Mejoras para tabla de horarios en móviles */
    .overflow-x-auto table {
        min-width: 600px;
    }
    
    .overflow-x-auto th,
    .overflow-x-auto td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .overflow-x-auto th:first-child,
    .overflow-x-auto td:first-child {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Responsive para pantallas muy pequeñas */
@media (max-width: 480px) {
    .overflow-x-auto th,
    .overflow-x-auto td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .overflow-x-auto th:first-child,
    .overflow-x-auto td:first-child {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .overflow-x-auto span {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #FF6B3D;
}

/* Focus States */
.focus-visible:focus {
    outline: 2px solid #FF5722;
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(255, 87, 34, 0.3);
    color: #000000;
}

/* Improved Visibility */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Royal Badge */
.royal-badge {
    background: linear-gradient(135deg, #FF5722, #FF6B3D);
    border: 2px solid #000000;
    color: #FFFFFF;
    font-weight: bold;
    border-radius: 50px;
    padding: 8px 16px;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

/* Mobile Menu Base Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%; /* O un ancho fijo como 300px si prefieres */
    max-width: 320px; /* Limita el ancho en pantallas grandes */
    height: 100vh;
    background: #1a1a1a; /* Color de fondo del menú */
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto; /* Permite scroll si el contenido es muy largo */
}

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

/* Overlay para fondo oscuro */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

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

/* Evita scroll en el body cuando el menú está abierto */
body.menu-open {
    overflow: hidden;
}

/* Botón del Menú Móvil */
#mobile-menu-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001; /* Asegura que esté por encima del overlay */
}

/* Asegurar que el icono de cierre esté oculto por defecto */
#menu-close-icon {
    display: none !important;
}

#menu-close-icon.show {
    display: inline-block !important;
}

#menu-open-icon {
    display: inline-block !important;
}

#menu-open-icon.hide {
    display: none !important;
}

/* Ajustes para pantallas grandes (opcional) */
@media (min-width: 1024px) {
    .header {
        padding: 1.5rem 2rem;
    }
    .header-logo {
        max-width: none; /* Restaura el ancho completo en desktop */
    }
}

/* Indicador de scroll hacia abajo */
.scroll-down-indicator {
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.scroll-down-indicator:hover {
    opacity: 1;
    transform: translateY(5px);
}

.scroll-down-indicator i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: bounceDown 2s infinite;
}

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

