/* Base & Colors - High End Floral Aesthetic */
:root {
    --bg-light: #F8F6F0; /* Linen / Muted Beige */
    --bg-white: #FFFFFF;
    --text-primary: #2C352D; /* Dark Olive Charcoal */
    --text-muted: #6b756c;
    --primary-color: #687359; /* Sage Green */
    --primary-light: #9BAF85;
    --secondary-color: #B59B8D; /* Dusty Rose */
    --dark-bg: #1A1F1A;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --shadow-main: 0 15px 40px rgba(44, 53, 45, 0.08);
    --shadow-hover: 0 20px 50px rgba(44, 53, 45, 0.15);
    
    --nav-height: 90px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
}

.bg-light { background-color: var(--bg-white); }
.bg-dark { background-color: var(--dark-bg); }
.text-light { color: var(--bg-light); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-100 { width: 100%; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

p {
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 300;
}

.divider {
    height: 1px;
    width: 60px;
    background-color: var(--primary-color);
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 40px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #555f4a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(104, 115, 89, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-outline.light-outline {
    border-color: var(--secondary-color);
    color: var(--bg-light);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 6px 20px rgba(104, 115, 89, 0.25);
    transform: translateY(-2px);
}

.btn-outline.light-outline:hover {
    background-color: rgba(181, 155, 141, 0.2);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: 70px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: 60px;
    width: auto;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.navbar.scrolled .nav-logo img {
    height: 45px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--bg-white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-link {
    color: var(--text-primary);
}

.nav-link:hover, .navbar.scrolled .nav-link:hover {
    color: var(--secondary-color);
}

.btn-book {
    border: 1.5px solid var(--bg-white);
    padding: 10px 24px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar.scrolled .btn-book {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.navbar.scrolled .btn-book:hover {
    background: var(--primary-color);
    color: white;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--bg-white);
}

.navbar.scrolled .bar {
    background-color: var(--text-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%; /* Extra height for parallax */
    background-size: cover;
    background-position: center 30%;
    z-index: -2;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 31, 26, 0.4);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-family: var(--font-body);
}

.hero-content h1 {
    font-size: 5rem;
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero-tagline {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--bg-light);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.hero-desc {
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* Layouts */
.layout-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-main);
}

.split-image img {
    width: 100%;
    height: auto;
    display: block;
}

.vcard-cta {
    margin-top: 20px;
    text-align: center;
    padding: 16px 20px;
    background: rgba(104, 115, 89, 0.06);
    border-radius: 8px;
    border: 1px solid rgba(104, 115, 89, 0.12);
}

.vcard-cta p {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 10px;
    font-style: italic;
    color: var(--text-muted);
}

/* Secciones de Espaciado Modificado */
.cafe-section {
    background-color: var(--bg-light);
    padding: 80px 0 20px 0;
}

#galeria {
    padding: 20px 0 80px 0;
}

/* Parallax Banner */
.parallax-banner {
    padding: 120px 0;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(104, 115, 89, 0.7); /* Sage green tint overlay */
}

.parallax-banner .container {
    position: relative;
    z-index: 2;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

.card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.service-card:hover .card-img {
    transform: scale(1.05); /* Zoom inside overflow hidden */
}

.card-content {
    padding: 30px 20px;
    position: relative;
    background: var(--bg-white);
    z-index: 2;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn-link {
    color: var(--secondary-color);
    text-transform: none;
    letter-spacing: normal;
    padding: 10px 28px;
    font-size: 1rem;
    font-family: var(--font-heading);
    font-style: italic;
    background: transparent;
    border: 1px solid rgba(181, 155, 141, 0.4);
    box-shadow: none;
}

.btn-link:hover {
    color: var(--bg-white);
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(181, 155, 141, 0.25);
}

/* Masonry Gallery Web */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    /* Basic masonry hack for 3 images */
}

.gallery-item-web {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.gallery-item-web img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4/5;
    transition: transform 0.8s ease;
}

.gallery-item-web:hover img {
    transform: scale(1.05);
}

/* Contact Form */
.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.info-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.elegant-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
}

.elegant-form .form-group {
    margin-bottom: 25px;
}

.elegant-form input,
.elegant-form select,
.elegant-form textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.elegant-form input:focus,
.elegant-form select:focus,
.elegant-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.elegant-form select {
    appearance: none;
    color: rgba(255,255,255,0.7);
}

.elegant-form select option {
    background: var(--dark-bg);
    color: white;
}

/* Footer */
.footer {
    background-color: var(--bg-white);
    padding: 60px 0 30px;
}

.footer-logo {
    width: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-social a {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--secondary-color);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-up.visible, .fade-in.visible, .fade-up-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .layout-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .vcard-cta {
        text-align: center;
    }
    
    .services-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        letter-spacing: 3px;
        margin-bottom: 12px;
    }
    
    .hero-tagline {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .hero-desc {
        font-size: 0.9rem;
        max-width: 90%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger { display: block; }

    .nav-logo img { height: 45px; }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        padding: 30px 0;
        gap: 0;
    }

    .navbar.scrolled .nav-menu {
        top: 70px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item { margin: 15px 0; }

    .nav-link { color: var(--text-primary); }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    
    /* Ajustes del Hero para pantallas de móviles angostas */
    .hero-content h1 {
        font-size: 2.6rem;
    }
    .hero-tagline {
        font-size: 1.3rem;
    }
}

/* Cafe Section Premium Card Wrapper */
.cafe-card-wrapper {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 60px 50px;
    box-shadow: 0 15px 45px rgba(44, 53, 45, 0.04), 0 4px 15px rgba(44, 53, 45, 0.02);
    border: 1px solid rgba(44, 53, 45, 0.05);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.cafe-badge {
    display: inline-block;
    background: rgba(104, 115, 89, 0.08);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 20px;
    border: 1px solid rgba(104, 115, 89, 0.12);
}

.web-cafe-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.web-cafe-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 0 20px 0;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    -webkit-overflow-scrolling: touch;
}

.web-cafe-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.web-cafe-slide {
    flex: 0 0 75%;
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.web-cafe-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.web-cafe-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(44, 53, 45, 0.15);
}

.web-cafe-slide:hover img {
    transform: scale(1.03);
}

@media (min-width: 900px) {
    .web-cafe-slide {
        flex: 0 0 65%;
    }
}

@media (max-width: 900px) {
    .cafe-card-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 25px;
        border-radius: 20px;
    }
    .web-cafe-slide {
        flex: 0 0 80%;
    }
}

/* Mobile Gallery Optimization to avoid infinite vertical scroll */
@media (max-width: 767px) {
    #floral-gallery .gallery-item-web {
        display: none;
    }
    #floral-gallery .gallery-item-web:nth-child(-n+8) {
        display: block; /* Muestra solo las primeras 8 en movil */
    }
}

#floral-gallery.show-all .gallery-item-web {
    display: block !important;
    animation: fadeInPhoto 0.6s ease forwards;
}

@keyframes fadeInPhoto {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes swipeMove {
    0% { transform: translateX(-3px); }
    100% { transform: translateX(3px); }
}
