/* ============================================
   Aura Clínica Estética - Custom Styles
   Luxury Aesthetic Clinic Landing Page
   ============================================ */

/* ----- Modal System Styles ----- */

/* Modal Backdrop */
#modal-backdrop {
    transition: opacity 0.3s ease;
}

#modal-backdrop.active {
    opacity: 1;
}

/* Modal Container */
#modal-container {
    transition: visibility 0.3s ease;
}

/* Modal Content */
#modal-content {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
}

#modal-content.active {
    transform: scale(1);
    opacity: 1;
}

/* Modal Close Button */
#modal-close {
    transition: all 0.3s ease;
}

#modal-close:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

/* Modal Image */
#modal-image {
    transition: transform 0.5s ease;
}

#modal-content:hover #modal-image {
    transform: scale(1.05);
}

/* Modal Benefits List Animation */
#modal-benefits li {
    opacity: 0;
    transform: translateX(-10px);
    animation: slideInLeft 0.4s ease forwards;
}

#modal-benefits li:nth-child(1) { animation-delay: 0.1s; }
#modal-benefits li:nth-child(2) { animation-delay: 0.2s; }
#modal-benefits li:nth-child(3) { animation-delay: 0.3s; }
#modal-benefits li:nth-child(4) { animation-delay: 0.4s; }
#modal-benefits li:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Modal CTA Button */
#modal-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#modal-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

#modal-cta:hover::before {
    left: 100%;
}

#modal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(230, 194, 185, 0.4);
}

/* Service Card Cursor */
.service-card {
    cursor: pointer;
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

/* Mobile Menu Active State */
#mobile-menu.active {
    max-height: 300px;
    opacity: 1;
}

/* Header Scrolled State */
#header.scrolled .backdrop-blur-md {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ----- CSS Variables ----- */
:root {
    --color-cream: #FFFDF8;
    --color-champagne: #E6C2B9;
    --color-champagne-dark: #D4A89A;
    --color-charcoal: #333333;
    --color-charcoal-light: #555555;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
}

/* ----- Base Styles ----- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-cream);
    color: var(--color-charcoal);
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--color-champagne);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-champagne-dark);
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

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

/* ----- Animation Classes ----- */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* ----- WhatsApp Float Button Animation ----- */
#whatsapp-float {
    animation: pulse-glow 2s infinite;
}

#whatsapp-float:hover {
    animation: none;
}

/* ----- Header Scroll Effect ----- */
#header.scrolled {
    padding-top: 0;
    padding-bottom: 0;
}

#header.scrolled .backdrop-blur-md {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ----- Service Cards Hover Effects ----- */
.service-card {
    transition: transform 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card img {
    transition: transform 0.7s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

/* ----- Modal Styles ----- */
#modal-backdrop.active {
    opacity: 1;
}

#modal-content.active {
    transform: scale(1);
    opacity: 1;
}

/* ----- Button Hover Effects ----- */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

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

/* ----- Glassmorphism Utilities ----- */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ----- Text Selection ----- */
::selection {
    background-color: var(--color-champagne);
    color: white;
}

/* ----- Focus Styles for Accessibility ----- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-champagne);
    outline-offset: 2px;
}

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

#mobile-menu.active {
    max-height: 300px;
    opacity: 1;
}

/* ----- Responsive Typography Adjustments ----- */
@media (max-width: 640px) {
    .font-serif {
        letter-spacing: -0.01em;
    }
}

/* ----- Loading State for Images ----- */
img {
    background-color: var(--color-cream);
}

/* ----- Smooth Image Loading ----- */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

/* ----- Section Spacing Utilities ----- */
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 640px) {
    .section-padding {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding-top: 9rem;
        padding-bottom: 9rem;
    }
}

/* ----- Custom Shadow for Cards ----- */
.shadow-luxury {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.shadow-luxury-hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

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

/* ----- Decorative Elements ----- */
.decoration-line {
    width: 60px;
    height: 2px;
    background-color: var(--color-champagne);
}

/* ----- Print Styles ----- */
@media print {
    #whatsapp-float,
    #header,
    .no-print {
        display: none !important;
    }
}

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