@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;600&display=swap');

:root {
    --color-blue: #86a9c6;
    --color-brown: #baaa98;
    --color-green: #8da279;
    --color-white: #ffffff;
    --color-light-blue: #a3c1da;
    --color-text-dark: #2c3e50;
    --color-text-light: #ffffff;
    --font-heading: 'Cinzel', serif;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: #faf9f7; /* Soft warm white */
    line-height: 1.6;
    overflow-x: hidden;
}

/* Texture overlay for backgrounds */
.textured-bg {
    position: relative;
    z-index: 1;
}

.textured-bg::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(250, 249, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: all 0.4s ease;
}

.nav-logo {
    height: 70px;
    object-fit: contain;
    transform: scale(3.5);
    transform-origin: left center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    font-size: 1.4rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 1px;
    bottom: -3px; left: 0;
    background-color: var(--color-brown);
    transition: width 0.3s ease;
}

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

.btn-cita {
    padding: 0.8rem 2rem;
    background-color: transparent;
    border: 1px solid var(--color-brown);
    color: var(--color-brown);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 400;
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.btn-cita:hover {
    background-color: var(--color-brown);
    color: var(--color-white);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('image/6.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(250, 249, 247, 0.7), rgba(250, 249, 247, 0.9));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    max-width: 800px;
    width: 90%;
}

.main-logo {
    width: 100%;
    max-width: 450px;
    margin-bottom: 2rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.subtitle {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--color-text-dark);
    margin-bottom: 3rem;
}

.btn-explore {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-text-dark);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: all 0.4s ease;
}

.btn-explore:hover {
    background-color: var(--color-brown);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(186, 170, 152, 0.3);
}

/* Editorial Sections */
.services-section {
    padding: 8rem 5%;
    position: relative;
    overflow: hidden;
}

.section-container {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.editorial-layout {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.reverse-layout .editorial-layout {
    flex-direction: row-reverse;
}

.editorial-text {
    flex: 1;
}

.editorial-image-wrapper {
    flex: 1;
    position: relative;
}

.editorial-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

/* Organic Image Shapes */
.img-rounded {
    border-radius: 40px 10px 40px 10px;
}

.img-arched {
    border-radius: 200px 200px 20px 20px;
}

.img-blob {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 1rem 2rem;
    border-radius: 30px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Headers & Typography */
.section-header-left {
    margin-bottom: 3rem;
}

.section-header-left h2, .section-header.center h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-text-dark);
}

.divider-organic {
    height: 1px;
    width: 100px;
    background-color: var(--color-text-dark);
    margin: 1.5rem 0;
    opacity: 0.5;
}

.divider-organic.center {
    margin: 1.5rem auto;
}

.intro-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: rgba(44, 62, 80, 0.8);
    font-style: italic;
    line-height: 1.6;
}

.intro-text-center {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: rgba(44, 62, 80, 0.8);
    font-style: italic;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    font-family: var(--font-heading);
    font-size: 15vw;
    color: rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
}

/* Specific Section Colors */
.section-green {
    background-color: var(--color-green);
}
.section-green h2, .section-green h3, .section-green p, .section-green .divider-organic {
    color: var(--color-white);
}
.section-green .intro-text {
    color: rgba(255,255,255,0.9);
}

.section-blue {
    background-color: var(--color-blue);
}
.section-blue h2, .section-blue h3, .section-blue p, .section-blue .divider-organic {
    color: var(--color-white);
}
.section-blue .intro-text {
    color: rgba(255,255,255,0.9);
}

.section-light-blue {
    background-color: var(--color-light-blue);
}

.section-brown {
    background-color: var(--color-brown);
}
.section-brown h2, .section-brown h3, .section-brown p, .section-brown .divider-organic {
    color: var(--color-white);
}
.section-brown .intro-text {
    color: rgba(255,255,255,0.9);
}

/* Service Lists */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-item {
    border-left: 1px solid rgba(255,255,255,0.3);
    padding-left: 1.5rem;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateX(10px);
    border-left-color: rgba(255,255,255,1);
}

.service-item h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.service-item .service-desc {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Masonry / Magazine Gallery for Essence */
.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.masonry-item {
    border-radius: 20px;
    overflow: hidden;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4/5;
}

.text-item {
    padding: 3rem;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
}

.text-item.dark {
    background: rgba(44, 62, 80, 0.8);
    color: white;
}

.text-item.dark h3 {
    color: white;
}

.text-item.wide {
    grid-column: 1 / -1;
    background: transparent;
    text-align: center;
    border-top: 1px solid rgba(44,62,80,0.2);
    border-bottom: 1px solid rgba(44,62,80,0.2);
    border-radius: 0;
    padding: 3rem 0;
}

.text-item h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-style: italic;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

.text-item ul {
    list-style: none;
}

.text-item li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.text-item li strong {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.2rem;
}

/* Appointment Section */
.appointment-section {
    padding: 10rem 5%;
    position: relative;
    background-image: url('image/7.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}

.appointment-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(250, 249, 247, 0.5);
}

.glass-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 5rem 4rem;
    border-radius: 40px;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
}

.glass-card h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.glass-card p {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 3rem;
    font-style: italic;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-link {
    text-decoration: none;
    color: var(--color-text-dark);
    font-size: 1.3rem;
    font-family: var(--font-body);
    transition: color 0.3s ease;
}

.contact-link span {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-brown);
    margin-right: 10px;
}

.contact-link:hover {
    color: var(--color-brown);
}

.btn-explore.solid {
    background-color: var(--color-brown);
    color: white;
}
.btn-explore.solid:hover {
    background-color: var(--color-text-dark);
}

/* Footer */
footer {
    background-color: var(--color-text-dark);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 3rem 5%;
    font-size: 0.9rem;
    font-family: var(--font-body);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    
    .nav-logo {
        transform: scale(2.8);
        margin-left: 20px;
    }

    .editorial-layout, .reverse-layout .editorial-layout {
        flex-direction: column;
        gap: 3rem;
    }
    
    .editorial-img {
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }
    
    .section-watermark {
        font-size: 22vw;
    }
    
    .masonry-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .nav-logo {
        transform: scale(2.2);
        margin-left: 15px;
    }
    
    .btn-cita {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .main-logo {
        max-width: 300px;
    }

    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .services-section {
        padding: 5rem 1rem;
    }

    .section-header-left h2, .section-header.center h2 {
        font-size: 2.2rem;
    }
    
    .intro-text, .intro-text-center {
        font-size: 1.1rem;
    }

    .text-item {
        padding: 2rem 1rem;
    }
    
    .appointment-section {
        padding: 6rem 1rem;
    }

    .glass-card {
        padding: 2rem 1.5rem;
    }

    .glass-card h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        transform: scale(1.8);
        margin-left: 10px;
    }
    
    .section-header-left h2, .section-header.center h2 {
        font-size: 1.8rem;
    }
}

/* Popup Modal Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-content {
    position: relative;
    background: transparent;
    border-radius: 24px;
    width: auto;
    max-width: 90%;
    max-height: 80vh;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transform: scale(0.92) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-overlay.active .popup-content {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    color: var(--color-text-dark);
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.popup-close:hover {
    background: var(--color-brown);
    color: white;
    transform: rotate(90deg) scale(1.05);
    border-color: transparent;
}

.popup-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    overflow: hidden;
}

.popup-image {
    max-width: 450px;
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
}

/* Prevent scroll when popup is open */
body.popup-open {
    overflow: hidden;
}


