/* ============================================
   Farmacia De La Costa — Custom Styles
   ============================================ */

/* --- Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* --- Geometric Decorative Shapes --- */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 160, 58, 0.06) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    border-radius: 50%;
}

.circle-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.04) 0%, transparent 70%);
    bottom: 20%;
    left: -100px;
    border-radius: 50%;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(212, 160, 58, 0.05);
    top: 40%;
    right: 5%;
    transform: rotate(15deg);
}

.rect {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(15, 23, 42, 0.06);
    top: 60%;
    left: 8%;
    transform: rotate(45deg);
    border-radius: 8px;
}

/* --- Buttons --- */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #d4a03a 0%, #e8b84b 100%);
    color: #0a0f1e;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 160, 58, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 160, 58, 0.4);
    color: #0a0f1e;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #0a0f1e;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(10, 15, 30, 0.2);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #d4a03a;
    color: #b8862e;
    transform: translateY(-2px);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    border-color: #d4a03a;
    color: #d4a03a;
    transform: translateY(-2px);
}

/* --- Section Labels --- */
.section-label {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.section-label.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-label-dark {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.section-label-dark.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.1s;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hero Animations --- */
.hero-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-anim:nth-child(1) { transition-delay: 0.1s; }
.hero-anim:nth-child(2) { transition-delay: 0.2s; }
.hero-anim:nth-child(3) { transition-delay: 0.3s; }
.hero-anim:nth-child(4) { transition-delay: 0.4s; }
.hero-anim:nth-child(5) { transition-delay: 0.5s; }

.hero-image-group {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-group.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Floating Card --- */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

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

/* --- Service Cards --- */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* --- Schedule Rows --- */
.schedule-row {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.schedule-row.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Info Cards --- */
.info-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.info-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(10, 15, 30, 0.15);
    border-radius: 50%;
    color: rgba(10, 15, 30, 0.4);
    animation: scroll-bounce 2s ease-in-out infinite;
    text-decoration: none;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

/* --- Navbar --- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(10, 15, 30, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4a03a;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Mobile Menu --- */
.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    text-decoration: none;
}

.mobile-menu-link.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }
    
    .floating-card {
        position: relative;
        margin-top: 1rem;
        animation: none;
    }
    
    .hero-image-group {
        margin-top: 2rem;
    }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-anim,
    .hero-image-group,
    .service-card,
    .schedule-row,
    .info-card,
    .section-label,
    .section-label-dark,
    .mobile-menu-link {
        opacity: 1;
        transform: none;
    }
}
