/* 
   Animaciones de Nat Clinic
   =========================
*/

/* Clases de Revelación al Desplazar */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-100 {
    transition-delay: 100ms;
}

.reveal.delay-200 {
    transition-delay: 200ms;
}

.reveal.delay-300 {
    transition-delay: 300ms;
}

.reveal.delay-400 {
    transition-delay: 400ms;
}

.reveal.delay-500 {
    transition-delay: 500ms;
}

/* Fotogramas Clave de Animaciones Específicas */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@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);
    }
}

.animate-fade-up {
    animation: fadeUp 1s ease-out forwards;
}

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

.animate-slide-left {
    animation: slideInLeft 1s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 1s ease-out forwards;
}

/* Efectos de Hover (Pasar el ratón) */
.hover-zoom img {
    transition: transform 0.5s ease;
}

.hover-zoom:hover img {
    transform: scale(1.05);
}

.icon-box {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.icon-box:hover {
    transform: translateY(-8px);
}

/* Animación de Flotación */
@keyframes infiniteFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

.floating-img {
    animation: infiniteFloat 6s ease-in-out infinite;
}

/* Utilidad de Profundidad de Campo */
.blur-sm {
    filter: blur(2px);
}

.blur-md {
    filter: blur(4px);
}

.blur-lg {
    filter: blur(8px);
}

/* Animación de Borde Suave */
@keyframes softGlow {
    0% {
        box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 0 0 0px rgba(15, 92, 77, 0.2);
    }
    50% {
        box-shadow: 0 15px 45px rgba(0,0,0,0.15), 0 0 0 10px rgba(15, 92, 77, 0);
    }
    100% {
        box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 0 0 0px rgba(15, 92, 77, 0.2);
    }
}

.animate-border-soft {
    animation: softGlow 4s ease-in-out infinite;
}

/* Animaciones de Experiencias Premium */
@keyframes musicNoteFloat {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.4; }
    100% { transform: translate(var(--x-end), -150px) rotate(360deg); opacity: 0; }
}

.music-note {
    position: absolute;
    color: var(--accent);
    font-size: 1.2rem;
    pointer-events: none;
    animation: musicNoteFloat 6s linear forwards;
    z-index: 10;
}

@keyframes instrumentRhythm {
    0%, 100% { transform: translateY(0) rotate(-5deg) scale(1); }
    50% { transform: translateY(-10px) rotate(5deg) scale(1.05); }
}

.instrument-animation i {
    animation: instrumentRhythm 3s ease-in-out infinite;
    display: inline-block;
}

.exp-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important;
    overflow: hidden !important;
    border-radius: 40px !important;
}

.exp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 60px -15px rgba(0,0,0,0.25) !important;
}

/* Pulso de Punto de Estado */
@keyframes statusPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.status-dot-pulse {
    width: 12px;
    height: 12px;
    background-color: #25D366;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: statusPulse 2s infinite;
}

/* Sacudida de Teléfono */
@keyframes phoneShake {
    0% { transform: rotate(0); }
    10% { transform: rotate(-10deg); }
    20% { transform: rotate(10deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(10deg); }
    50% { transform: rotate(0); }
    100% { transform: rotate(0); }
}


.phone-animation {
    display: inline-block;
    animation: phoneShake 3s ease-in-out infinite;
}

/* Animación de Pastillas Flotantes para Sección Farmacia */
@keyframes pillFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, -25px) rotate(15deg); }
    66% { transform: translate(-10px, -45px) rotate(-10deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.pill-floating {
    position: absolute;
    color: var(--accent);
    opacity: 0.3;
    pointer-events: none;
    animation: pillFloat 8s ease-in-out infinite;
    z-index: 1;
}

.pill-1 { top: 10%; left: 10%; animation-delay: 0s; font-size: 2rem; }
.pill-2 { top: 20%; right: 15%; animation-delay: 2s; font-size: 1.5rem; }
.pill-3 { bottom: 20%; left: 15%; animation-delay: 4s; font-size: 2.5rem; }
.pill-4 { bottom: 10%; right: 10%; animation-delay: 1s; font-size: 1.8rem; }
.pill-5 { top: 50%; left: 5%; animation-delay: 3.5s; font-size: 1.2rem; }

/* Ajustes de Adaptabilidad Móvil */
@media (max-width: 768px) {
    .transport-premium-section .container {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        padding: 4rem 1.5rem !important;
    }
    
    .transport-info {
        text-align: center;
    }
    
    .transport-info h2 {
        text-align: center !important;
    }
    
    .transport-info .section-subtitle {
        text-align: center !important;
    }
    
    .transport-info div[style*="width: 60px"] {
        margin: 0 auto 2rem !important;
    }

    .efficiency-block {
        flex-direction: column !important;
    }
    
    .efficiency-copy {
        padding: 2.5rem 1.5rem !important;
        text-align: center;
    }

    .efficiency-metrics {
        flex-direction: column !important;
        gap: 2rem !important;
        align-items: center;
    }

    .pharmacy-premium-section .container {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        padding: 4rem 1.5rem !important;
    }

    .pharmacy-visual {
        order: -1;
    }

    /* Ocultar elementos decorativos pesados en móvil para mejorar el enfoque */
    .animated-circle, 
    .music-particles,
    .team-bg-collage img {
        display: none !important;
    }

    .brand-statement-section {
        padding: 6rem 1rem !important;
    }
    
    .brand-statement-section h2 {
        font-size: 2.2rem !important;
    }

    /* Asegurar que el padding del contenedor sea consistente */
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}