/* ===================================
   VISUAL IMPROVEMENTS v1.0
   Mejoras de efectos visuales para Marín Asesorías
   =================================== */

/* ===================================
   1. SCROLL REVEAL - Animaciones al hacer scroll
   Las secciones aparecen suavemente al entrar al viewport
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.reveal--left {
    transform: translateX(-40px);
}

.reveal.reveal--right {
    transform: translateX(40px);
}

.reveal.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Delay escalonado para hijos en grids */
.reveal-group > *:nth-child(1) { transition-delay: 0s; }
.reveal-group > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-group > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-group > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-group > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-group > *:nth-child(6) { transition-delay: 0.5s; }

/* ===================================
   2. HERO - Mejoras de fondo y parallax suave
   =================================== */

/* Partículas sutiles en el hero */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(184, 149, 106, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(74, 95, 127, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(184, 149, 106, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.hero__container {
    z-index: 1;
    position: relative;
}

/* Flotación suave de la imagen del hero */
@keyframes floatImage {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

.hero__image-wrapper {
    animation: floatImage 6s ease-in-out infinite;
}

/* Brillo sutil en la imagen del perfil */
.hero__image-wrapper img {
    transition: box-shadow 0.4s ease;
}

.hero__image-wrapper:hover img {
    box-shadow: 0 30px 60px rgba(184, 149, 106, 0.35);
}

/* Pulso expandido del scroll arrow */
@keyframes bounceScroll {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.8; }
    50%       { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

.hero__scroll {
    animation: bounceScroll 2s ease-in-out infinite !important;
}

/* ===================================
   3. NAVEGACIÓN - Mejoras de hover y transiciones
   =================================== */

/* Navbar - efecto glassmorphism mejorado al hacer scroll */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(184,149,106,0.1) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Hover de nav links - eliminar background y mejorar transición */
.nav__link.active,
.nav__link:hover {
    background-color: transparent !important;
}

.nav__link::after {
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* ===================================
   4. BOTONES - Efectos de ripple y brillo
   =================================== */

/* Efecto de brillo al hover en botón primario */
.btn--primary {
    position: relative;
    overflow: hidden;
}

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

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

/* Mejor sombra dorada en hover */
.btn--primary:hover {
    box-shadow: 0 10px 30px rgba(184, 149, 106, 0.4) !important;
    transform: translateY(-3px) !important;
}

/* Botón de Google Play */
.btn-google-play {
    position: relative;
    overflow: hidden;
}

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

.btn-google-play:hover::before {
    left: 150%;
}

/* ===================================
   5. CARDS - Efectos 3D tilt y brillo
   =================================== */

/* Value cards - borde superior dorado con gradiente */
.value-card {
    border-top: 3px solid transparent;
    background-image: linear-gradient(var(--white), var(--white)),
                      linear-gradient(135deg, var(--accent-gold), var(--deep-gold));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s ease !important;
}

.value-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 20px 40px rgba(184, 149, 106, 0.2) !important;
}

/* Icono en las value cards - efecto rotación sutil al hover */
.value-card:hover .value-card__icon {
    transform: rotate(-5deg) scale(1.1);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-card__icon {
    transition: transform 0.4s ease;
}

/* Catalog cards - mejora de hover */
.catalog-card {
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s ease,
                border-color 0.35s ease !important;
}

.catalog-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 40px rgba(74, 95, 127, 0.15) !important;
}

/* Highlight cards */
.highlight-card {
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s ease !important;
    border-left: 3px solid transparent;
}

.highlight-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 30px rgba(184, 149, 106, 0.18) !important;
    border-left-color: var(--accent-gold);
}

/* ===================================
   6. TIMELINE - Marcadores con pulso
   =================================== */

@keyframes timelinePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(107, 127, 159, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(107, 127, 159, 0);
    }
}

.timeline__marker {
    animation: timelinePulse 2.5s ease-in-out infinite;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.timeline__item:hover .timeline__marker {
    transform: scale(1.4);
    background-color: var(--accent-gold);
    animation: none;
    box-shadow: 0 0 0 4px rgba(184, 149, 106, 0.3);
}

.timeline__item:hover .timeline__title {
    color: var(--accent-gold);
    transition: color 0.3s ease;
}

/* ===================================
   7. CONTACT METHODS - Mejora de hover
   =================================== */

.contact__method {
    position: relative;
    overflow: hidden;
    border-left: 3px solid transparent;
    transition: transform 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease !important;
}

.contact__method::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.contact__method:hover::before {
    transform: scaleY(1);
}

.contact__method:hover {
    transform: translateX(8px) !important;
    box-shadow: 0 8px 25px rgba(184, 149, 106, 0.15) !important;
    background-color: var(--white) !important;
}

/* ===================================
   8. APP SCREENS - Mejora del efecto de stacking
   =================================== */

.app__screen {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                z-index 0s !important;
}

.app__screen:hover {
    transform: translateY(-15px) scale(1.03) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25) !important;
}

/* ===================================
   9. SECTION TITLE - Línea decorativa animada
   =================================== */

.section__title::before {
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    width: 0 !important;
}

.section__header.in-view .section__title::before {
    width: 60px !important;
}

/* ===================================
   10. FOOTER SOCIAL LINKS - Iconos con color de marca
   =================================== */

.footer__social-link {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.3s ease,
                color 0.3s ease !important;
}

.footer__social-link:hover {
    transform: translateY(-5px) scale(1.1) !important;
}

/* ===================================
   11. SCROLL-TO-TOP - Efecto mejorado
   =================================== */

.scroll-top {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.scroll-top:hover {
    transform: translateY(-8px) scale(1.1) !important;
}

/* ===================================
   12. PRODUCT CARD - Badge animado mejorado
   =================================== */

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(238, 90, 111, 0.3);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 25px rgba(238, 90, 111, 0.5);
    }
}

.product-card__badge {
    animation: badgePulse 2s ease-in-out infinite !important;
}

/* ===================================
   13. BOOKING STEPS - Números con hover animado
   =================================== */

.booking__step-number {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}

.booking__step:hover .booking__step-number {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(184, 149, 106, 0.4);
}

/* ===================================
   14. PRECIO en catálogo - Efecto al hover
   =================================== */

.catalog-list__price {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                transform 0.3s ease;
}

.catalog-list__item:hover .catalog-list__price {
    background-color: var(--accent-gold);
    color: var(--white);
    transform: scale(1.05);
}

/* ===================================
   15. CHATBOT - Botón con pulso mejorado
   =================================== */

@keyframes chatPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(184, 149, 106, 0.4),
                    0 0 0 0 rgba(184, 149, 106, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(184, 149, 106, 0.5),
                    0 0 0 10px rgba(184, 149, 106, 0);
    }
}

.chat-widget-button {
    animation: chatPulse 3s ease-in-out infinite !important;
}

/* ===================================
   16. GLOBAL - Transiciones de selección de texto
   =================================== */
::selection {
    background-color: rgba(184, 149, 106, 0.3);
    color: var(--text-dark);
}

/* ===================================
   17. FOCUS VISIBLE - Accesibilidad mejorada
   =================================== */
:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===================================
   18. GRADIENTE DECORATIVO en sección About
   =================================== */
.about::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), var(--deep-gold), var(--accent-gold), transparent);
    opacity: 0.6;
    pointer-events: none;
}

.about {
    position: relative;
}

/* ===================================
   19. EXPERIENCE COLUMN - Título animado
   =================================== */

.experience__column-title {
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.experience__column-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.experience__column:hover .experience__column-title::after {
    width: 100%;
}

/* ===================================
   20. REDUCCIÓN DE MOVIMIENTO (Accesibilidad)
   =================================== */
@media (prefers-reduced-motion: reduce) {
    .hero__image-wrapper,
    .hero__scroll,
    .timeline__marker,
    .product-card__badge,
    .chat-widget-button {
        animation: none !important;
    }

    .reveal,
    .value-card,
    .catalog-card,
    .highlight-card,
    .contact__method,
    .btn--primary::before,
    .experience__column-title::after {
        transition: none !important;
    }
}
