:root {
    /* Color Palette: Ruby & Champagne */
    --color-primary: #A6192E;
    --color-primary-light: #C21E37;
    --color-secondary: #F4EBD0;
    --color-accent: #D4AF37;
    --color-accent-light: #E8C860;
    --color-text-dark: #1A1A1A;
    --color-text-light: #FDFDFD;
    --color-bg-light: #FFFBFA;
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-elevated: 0 25px 50px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-slow: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* Loading Screen */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #7a1221 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-white);
    letter-spacing: 6px;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
}

.loader-line {
    width: 60px;
    height: 2px;
    background: var(--color-accent);
    margin-top: 20px;
    animation: expand 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes expand {

    0%,
    100% {
        width: 60px;
    }

    50% {
        width: 100px;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

/* Typography Scale */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* --- Layout Sections --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url('giovanna.webp');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(10, 10, 10, 0.85) 0%,
            rgba(10, 10, 10, 0.6) 40%,
            rgba(10, 10, 10, 0.3) 70%,
            rgba(10, 10, 10, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    max-width: 600px;
    padding: 0 60px;
    margin-top: 5vh;
}

.hero-name {
    font-size: 4rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 15px;
    animation: fadeInDown 1.2s ease-out forwards;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--color-accent);
    margin-bottom: 45px;
    animation: fadeInUp 1.2s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeInUp 1.2s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-cta-btn {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 18px 40px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.hero-cta-btn:hover {
    background: var(--color-primary-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(166, 25, 46, 0.4);
}

/* Hero Logo */
.hero-logo {
    position: absolute;
    top: 30px;
    left: 40px;
    width: 70px;
    height: 70px;
    z-index: 100;
    animation: fadeIn 1.2s ease-out 0.5s both;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

.hero-logo svg {
    width: 100%;
    height: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1.5s ease-out 2s forwards;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-accent-light), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25px;
    background: linear-gradient(to bottom, transparent, #FFFFFF, transparent);
    animation: scrollAnim 2s infinite cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes scrollAnim {
    0% {
        transform: translateY(-25px);
    }

    100% {
        transform: translateY(60px);
    }
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--color-accent-light);
    text-transform: uppercase;
    font-weight: 500;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

/* Hero to About gradient transition */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(255, 251, 250, 0.4) 50%,
            var(--color-bg-light) 100%);
    z-index: 4;
    pointer-events: none;
}

/* --- About Section --- */
.about {
    text-align: center;
    background-color: var(--color-bg-light);
    position: relative;
    z-index: 1;
}

/* About to Procedures gradient transition */
.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--color-bg-light), #FFF5F5);
    pointer-events: none;
}

.about-wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.about-line {
    width: 50px;
    height: 1px;
    background: var(--color-accent);
    margin: 0 auto 40px;
}

.about-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--color-text-dark);
    line-height: 1.7;
    margin-bottom: 40px;
}

.about-signature {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--color-primary);
}

/* --- Procedures Grid --- */
.procedures {
    padding-top: 60px;
    background: linear-gradient(180deg, var(--color-bg-light) 0%, #FFF5F5 100%);
    position: relative;
    overflow: hidden;
}

/* Golden particles background */
.procedures::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(201, 168, 108, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 90% 10%, rgba(212, 175, 55, 0.3) 1.5px, transparent 1.5px),
        radial-gradient(circle at 20% 80%, rgba(201, 168, 108, 0.35) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.4) 2px, transparent 2px),
        radial-gradient(circle at 50% 50%, rgba(201, 168, 108, 0.25) 1px, transparent 1px),
        radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.3) 1.5px, transparent 1.5px),
        radial-gradient(circle at 70% 30%, rgba(201, 168, 108, 0.35) 1px, transparent 1px),
        radial-gradient(circle at 15% 60%, rgba(212, 175, 55, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 85% 90%, rgba(201, 168, 108, 0.4) 1.5px, transparent 1.5px),
        radial-gradient(circle at 40% 15%, rgba(212, 175, 55, 0.25) 1px, transparent 1px),
        radial-gradient(circle at 60% 85%, rgba(201, 168, 108, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 5% 45%, rgba(212, 175, 55, 0.35) 1px, transparent 1px),
        radial-gradient(circle at 95% 55%, rgba(201, 168, 108, 0.3) 1.5px, transparent 1.5px),
        radial-gradient(circle at 25% 95%, rgba(212, 175, 55, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 75% 5%, rgba(201, 168, 108, 0.25) 1px, transparent 1px);
    pointer-events: none;
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.procedures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.procedure-card {
    position: relative;
    height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px;
}

.procedure-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-elevated);
}

.procedure-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: var(--transition-slow);
    filter: brightness(0.6) saturate(1.1);
}

.procedure-card:hover .procedure-bg {
    transform: scale(1.08);
    filter: brightness(0.5) saturate(1.2);
}

.procedure-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--color-accent);
    color: var(--color-text-dark);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.procedure-icon {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.procedure-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-accent);
    fill: none;
    stroke-width: 1.5;
}

.procedure-content {
    color: var(--color-white);
    z-index: 1;
}

.procedure-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.procedure-desc {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.procedure-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.procedure-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.procedure-duration {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
}

.view-btn .btn-arrow {
    transition: var(--transition);
}

.procedure-card:hover .view-btn .btn-arrow {
    transform: translateX(5px);
}

/* --- Carousel --- */
.carousel-section {
    padding: 100px 0;
    overflow: hidden;
    background: var(--color-white);
    position: relative;
}

/* Procedures to Carousel gradient transition */
.carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, #FFF5F5, var(--color-white));
    pointer-events: none;
}

.carousel-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.carousel-title {
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.carousel-subtitle {
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.carousel-wrapper {
    position: relative;
}

.carousel-track {
    display: flex;
    white-space: nowrap;
    animation: scroll 60s linear infinite;
    gap: 20px;
    padding: 20px 0;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-item {
    flex: 0 0 300px;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.carousel-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-320px * 14));
    }
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--color-white);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: var(--transition);
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-details {
    margin-bottom: 25px;
}

.modal-info-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
}

.modal-description {
    margin: 25px 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

.modal-features {
    list-style: none;
    padding: 0;
    margin-bottom: 35px;
}

.modal-features li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
}

.modal-features li .feature-icon {
    color: var(--color-accent);
    font-size: 0.7rem;
}

.modal-cta {
    display: block;
    width: 100%;
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 18px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
}

.modal-cta:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, var(--color-white) 0%, #FFF5F5 100%);
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.footer-text {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
}

.footer-heart {
    color: var(--color-primary);
}

/* --- Mobile Adjustments --- */
@media (max-width: 968px) {
    .hero {
        background-position: center 15%;
        align-items: flex-end;
        padding-bottom: 220px;
    }

    .hero-overlay {
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 0) 35%,
                rgba(0, 0, 0, 0.3) 50%,
                rgba(0, 0, 0, 0.7) 70%,
                rgba(0, 0, 0, 0.9) 100%);
    }

    .hero-content {
        padding: 0 25px;
        text-align: center;
        max-width: 100%;
        margin-top: 0;
    }

    .hero-name {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

    .hero-tagline {
        letter-spacing: 3px;
        font-size: 0.8rem;
        margin-bottom: 30px;
    }

    .hero-scroll-indicator {
        bottom: 25px;
    }

    .hero::after {
        height: 180px;
    }

    .hero-logo {
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 100px;
        top: 60px;
    }

    .scroll-line {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .about-text {
        font-size: 1.4rem;
    }

    .section-title,
    .carousel-title {
        font-size: 2rem;
    }

    .procedures-grid {
        grid-template-columns: 1fr;
    }

    .procedure-card {
        height: 420px;
    }

    .modal-content {
        padding: 40px 25px;
    }

    .modal-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }

    .hero-content {
        padding: 0 20px;
    }

    .loader-text {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }

    .section-container {
        padding: 60px 15px;
    }
}