/* ===================================
   CUSTOM STYLES - SIRIUS LYCH SPA
   =================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: #ffc107;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e5ba8;
}

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

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

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

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

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

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

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

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

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

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

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar Styles */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(10, 25, 47, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu Transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.active {
    max-height: 500px;
}

/* Hero Section Enhancements */
#hero {
    background: linear-gradient(135deg, #0a1929 0%, #1e5ba8 100%);
}

/* Service Cards Hover Effect */
.service-card {
    transition: all 0.3s ease;
}

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

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(255, 193, 7, 0.5);
    transform: translateY(-2px);
}

/* Form Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 91, 168, 0.2);
}

input::placeholder,
textarea::placeholder {
    color: #9CA3AF;
}

/* Custom Radio/Checkbox Styles */
input[type="radio"]:checked,
input[type="checkbox"]:checked {
    accent-color: #ffc107;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #ffc107;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #0a1929;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

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

/* Image Overlay Effects */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 41, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.image-overlay:hover::after {
    opacity: 1;
}

/* Stats Counter */
.stat-number {
    font-variant-numeric: tabular-nums;
}

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

/* Card Shine Effect */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::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;
}

.card-shine:hover::before {
    left: 100%;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    /* Typography Adjustments */
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    /* Padding Adjustments */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Button Adjustments */
    .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
    }
}

/* Print Styles */
@media print {
    nav,
    footer,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    body {
        background: white;
        color: black;
    }
    
    .bg-primary {
        background: black !important;
    }
    
    .text-secondary {
        color: yellow !important;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* Selection Colors */
::selection {
    background: #ffc107;
    color: #0a1929;
}

::-moz-selection {
    background: #ffc107;
    color: #0a1929;
}

/* Refuerzo de estilo para el logo circular */
.footer .footer-logo, 
img.footer-logo {
    width: 120px !important;    /* Forzamos ancho */
    height: 120px !important;   /* Forzamos alto igual para círculo perfecto */
    border-radius: 50% !important; 
    object-fit: cover !important;
    background-color: #ffffff !important;
    border: 3px solid #ffc107 !important;
    box-shadow: 0 4px 15px rgba(30, 91, 168, 0.3);
    display: block;
    margin: 0 auto 1.5rem auto; /* Centra el logo si está en una columna */
}

/* Smooth Transitions for All Interactive Elements */
a,
button,
input,
select,
textarea {
    transition: all 0.3s ease;
}

/* Loading Spinner for Form Submission */
.spinner {
    border: 3px solid rgba(255, 193, 7, 0.3);
    border-radius: 50%;
    border-top: 3px solid #ffc107;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

/* Success Checkmark Animation */
@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.checkmark-animation {
    animation: checkmark 0.5s ease-out;
}

/* Error Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

.shake-animation {
    animation: shake 0.5s ease-out;
}

/* Skeleton Loading (for future use) */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

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

/* Improved Link Styles */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 9999px;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

/* Performance Optimization */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Prevent layout shift */
img {
    max-width: 100%;
    height: auto;
}
.gallery-card-img {
    height: 240px !important;
}

/* Container Max Width */
.container {
    max-width: 1280px;
}

/* Grid Gap Utilities */
.gap-custom {
    gap: 2rem;
}

@media (max-width: 768px) {
    .gap-custom {
        gap: 1rem;
    }
}
/* ===============================
   GALERÍA HORIZONTAL
================================ */

.gallery-section {
    padding: 80px 0;
    background: #0e0e0e;
    position: relative;
}

.gallery-section .section-title {
    color: #fff;
    margin-bottom: 2.5rem;
    text-align: center;
}

.gal-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gal-slides {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    padding: 10px 0 20px 0;
}

.gal-slide {
    flex: 0 0 calc(33.333% - 14px);
    height: 340px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gal-slide:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.gal-slide .gal-img {
    width: 100%;
    height: 100%;
}

.gal-slide .gal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gal-slide:hover .gal-img img {
    transform: scale(1.06);
}

.gal-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,25,41,0.75) 0%, transparent 55%);
    border-radius: 16px;
    pointer-events: none;
}

.gal-slide h3 {
    position: absolute;
    bottom: 16px;
    left: 20px;
    right: 20px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    z-index: 2;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.gal-slide.active {
    box-shadow: 0 0 0 3px #ffc107, 0 12px 35px rgba(255,193,7,0.25);
}

.gal-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 25, 41, 0.75);
    border: 2px solid rgba(255,193,7,0.5);
    color: #ffc107;
    font-size: 22px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

.gal-btn:hover {
    background: #ffc107;
    color: #0a1929;
    border-color: #ffc107;
    transform: translateY(-50%) scale(1.1);
}

.gal-prev { left: 8px; }
.gal-next { right: 8px; }

.gal-dots {
    margin-top: 28px;
    text-align: center;
}

.gal-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: #444;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gal-dot.active {
    background: #ffc107;
    transform: scale(1.3);
}

@media (max-width: 992px) {
    .gal-slide {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .gal-slide {
        flex: 0 0 100%;
        height: 260px;
    }
}
/* Dificultar descarga de imágenes */
.gal-slide img,
.service-img-container {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}