/* --- ANIMACIONES GLOBALES PREMIUM --- */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.premium-entry {
    animation: fadeSlideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Para elementos que aparecen uno tras otro */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

body { 
    background-color: #FFFFFF; 
    color: #605E63;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    margin: 0;
    padding: 0;
}

/* --- ANIMACIÓN DE ENTRADA ESCALONADA --- */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes shimmerLine {
    0% { transform: scaleX(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scaleX(1); opacity: 0.6; }
}

@keyframes subtlePulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

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

/* --- LOGO ANIMADO --- */
.landing-logo {
    animation: fadeIn 1.2s ease-out both;
}

.landing-logo img {
    transition: transform 0.6s ease;
}

.landing-logo:hover img {
    transform: scale(1.03);
}

/* Línea decorativa bajo el logo */
.logo-accent {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8E7D9A, transparent);
    margin: 4px auto 0;
    animation: shimmerLine 2s ease-out 0.8s both;
}

/* --- TARJETAS DE SERVICIO --- */
.card-servicio {
    position: relative;
    height: 120px;
    overflow: hidden;
    border-radius: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;

    /* Animación de entrada */
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    animation: fadeSlideUp 0.7s ease-out both;
}

/* Escalonamiento de entrada: cada tarjeta entra con un pequeño retraso */
.card-servicio:nth-child(1) { animation-delay: 0.15s; }
.card-servicio:nth-child(2) { animation-delay: 0.30s; }
.card-servicio:nth-child(3) { animation-delay: 0.45s; }
.card-servicio:nth-child(4) { animation-delay: 0.60s; }
.card-servicio:nth-child(5) { animation-delay: 0.75s; }
.card-servicio:nth-child(6) { animation-delay: 0.90s; }

/* Ajuste proporcional para pantallas más grandes */
@media (min-width: 640px) {
    .card-servicio { height: 150px; }
}

@media (min-width: 1024px) {
    .card-servicio { height: 180px; }
}

/* Efecto hover premium: elevación suave + sombra difusa */
.card-servicio:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(96, 94, 99, 0.15);
}

.card-servicio:active {
    transform: translateY(0) scale(0.99);
    transition-duration: 0.1s;
}

/* Fondo con parallax suave al hover */
.card-bg {
    position: absolute;
    inset: -10px;  /* Overflow para permitir movimiento sin gaps */
    background-size: cover;
    background-position: center;
    transition: transform 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.card-servicio:hover .card-bg {
    transform: scale(1.06);
}

/* Overlay con degradado más elegante */
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(96, 94, 99, 0.10) 0%, 
        rgba(96, 94, 99, 0.35) 100%
    );
    transition: all 0.5s ease;
}

.card-servicio:hover .overlay {
    background: linear-gradient(
        180deg, 
        rgba(96, 94, 99, 0.20) 0%, 
        rgba(96, 94, 99, 0.55) 100%
    );
}

/* Borde luminoso sutil en hover */
.card-servicio::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0);
    transition: border-color 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

.card-servicio:hover::after {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Texto del servicio */
.card-servicio h3 {
    transition: all 0.5s ease;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 3;
}

.card-servicio:hover h3 {
    letter-spacing: 0.4em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Línea decorativa debajo del texto al hover */
.card-servicio h3::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    margin: 10px auto 0;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-servicio:hover h3::after {
    width: 40px;
}

/* --- FOOTER PREMIUM --- */
.firma-rubi {
    font-family: 'Noto Serif Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #8E7D9A;
    letter-spacing: 0.15em;
    animation: fadeIn 1.5s ease-out 1.2s both;
    transition: all 0.3s ease;
}

.firma-rubi:hover {
    color: #605E63;
    animation: floatUp 2s ease-in-out infinite;
}
