/**
 * SoulSpa - Hero Section Visual Enhancements
 * 
 * Este archivo contiene mejoras visuales para la página principal.
 * Para activarlo, agregar en base_page_home.html:
 * <link rel="stylesheet" href="{% static 'src/hero-enhancements.css' %}">
 */

/* ==========================================================================
   1. MEJORA DE CONTRASTE EN HERO - Overlay con gradiente
   ========================================================================== */

/* Agregar un overlay sutil para mejorar la legibilidad del texto */
#default-carousel > .relative.w-ful::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 10;
    background: linear-gradient(
        to right,
        rgba(62, 39, 25, 0.55) 0%,      /* dark_brown con opacidad */
        rgba(62, 39, 25, 0.35) 40%,
        rgba(0, 0, 0, 0.15) 100%
    );
    pointer-events: none;
}

/* Mejorar sombra del texto en el hero */
#default-carousel h1,
#default-carousel h2,
#default-carousel p {
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(62, 39, 25, 0.25);
}

/* ==========================================================================
   2. JERARQUÍA TIPOGRÁFICA MEJORADA
   ========================================================================== */

/* Subtítulo del hero - más sutil */
#default-carousel h1 {
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    #default-carousel h1 {
        font-size: 1.125rem;
    }
}

/* Título principal del hero - más impactante */
#default-carousel h2 {
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

/* Descripción del hero - más legible */
#default-carousel p {
    font-weight: 300;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   3. ANIMACIONES Y MICRO-INTERACCIONES
   ========================================================================== */

/* Animación de entrada para el contenido del hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#default-carousel > div:last-child {
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
}

/* Mejora del botón flotante de WhatsApp (si existe en .z-50.fixed) */
.fixed.bottom-4.right-4,
.fixed.bottom-6.right-6,
a[href*="wa.me"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fixed.bottom-4.right-4:hover,
.fixed.bottom-6.right-6:hover,
a[href*="wa.me"]:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   4. MEJORAS EN TARJETAS DE SERVICIOS (Sección "Our Facilities")
   ========================================================================== */

/* Tarjetas con efecto hover mejorado */
[data-aos="fade-top"],
[data-aos="fade-right"],
[data-aos="fade-left"] {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s ease;
}

[data-aos="fade-top"]:hover,
[data-aos="fade-right"]:hover,
[data-aos="fade-left"]:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(62, 39, 25, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Imágenes de tarjetas con zoom suave al hover */
[data-aos] img {
    transition: transform 0.5s ease;
}

[data-aos]:hover img {
    transform: scale(1.05);
}

/* Contenedor de imagen con overflow hidden para el efecto zoom */
.bg-dark_brown.rounded-lg {
    overflow: hidden;
}

/* ==========================================================================
   5. BOTONES CTA MEJORADOS
   ========================================================================== */

/* Mejora de los botones "Read more" / "Ver más" */
a.inline-flex.items-center.bg-jade_green {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

a.inline-flex.items-center.bg-jade_green::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 ease;
}

a.inline-flex.items-center.bg-jade_green:hover::before {
    left: 100%;
}

a.inline-flex.items-center.bg-jade_green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(80, 200, 120, 0.35);
}

/* Flecha con animación al hover */
a.inline-flex.items-center.bg-jade_green svg {
    transition: transform 0.3s ease;
}

a.inline-flex.items-center.bg-jade_green:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   6. SECCIONES CON MEJOR SEPARACIÓN VISUAL
   ========================================================================== */

/* Suavizar la transición entre secciones */
section {
    position: relative;
}

/* Sección de instalaciones - fondo con gradiente sutil */
section.mx-auto.py-14.overflow-x-hidden {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(135, 206, 235, 0.08) 50%,
        rgba(255, 255, 255, 1) 100%
    );
}

/* ==========================================================================
   7. NAVEGACIÓN MEJORADA
   ========================================================================== */

/* Efecto de subrayado animado para links de navegación */
nav a:not(.p-2):not([class*="rounded"]) {
    position: relative;
}

nav a:not(.p-2):not([class*="rounded"])::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #50C878, #87CEEB);
    transition: width 0.3s ease;
}

nav a:not(.p-2):not([class*="rounded"]):hover::after {
    width: 100%;
}

/* ==========================================================================
   8. GLASSMORPHISM PARA EL HEADER (si aplica)
   ========================================================================== */

/* Si el header tiene posición fixed/sticky */
header.fixed,
header.sticky,
nav.fixed,
nav.sticky {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(62, 39, 25, 0.85) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   9. SCROLL INDICATOR (Indicador visual de scroll)
   ========================================================================== */

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

/* Esto se puede activar agregando un elemento con clase .scroll-indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

/* ==========================================================================
   10. MEJORAS DE ACCESIBILIDAD
   ========================================================================== */

/* Focus visible mejorado para accesibilidad */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #50C878;
    outline-offset: 2px;
    border-radius: 4px;
}

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