:root {
    --golden: #D4AF37;
    --cream: #FFF8DC;
    --brown: #8B4513;
    --light-brown: #DEB887;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--brown);
    background-color: var(--cream);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--golden);
}

.navbar {
    background-color: rgba(255, 248, 220, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--golden) !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    height: 68px;
    overflow: hidden;
    text-shadow: 1px 1px 1px rgba(139, 69, 19, 0.45);
    -webkit-text-stroke: 0.4px rgba(139, 69, 19, 0.55);
}

.navbar-brand .logo {
    width: 100px;
    min-width: 100px;
    height: auto;
    display: block;
    transform: scale(1.5);
    transform-origin: center center;
    object-fit: cover;
}


.nav-link {
    color: var(--brown) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--golden) !important;
}

.hero-carousel {
    position: relative;
    height: 600px; /* Altura fija para desktop */
    margin-top: 70px;
}

.hero-carousel .carousel {
    height: 100%;
}

.hero-carousel .carousel-inner {
    height: 100%;
}

.hero-carousel .carousel-item {
    height: 100%;
}

.hero-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.2)); /* Overlay más oscuro para mejor legibilidad */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-golden {
    background-color: var(--golden);
    border-color: var(--golden);
    color: var(--brown);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-golden:hover {
    background-color: var(--brown);
    border-color: var(--brown);
    color: var(--golden);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.section {
    padding: 80px 0;
}

.location-card {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.location-card .section-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    color: var(--brown);
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.location-card h2 {
    margin-bottom: 1rem;
    color: var(--brown);
}

.location-card p,
.location-card h5 {
    color: #555;
}

.map-frame {
    height: 100%;
    min-height: 420px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.btn-route {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brown);
    color: var(--cream);
    border: none;
    padding: 0.95rem 2rem;
    border-radius: 999px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-route:hover {
    background-color: var(--golden);
    color: var(--brown);
    transform: translateY(-2px);
}

#products .card {
        border: none;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        overflow: hidden;
        transform-style: preserve-3d;
        perspective: 1200px;
    }

    #products .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    }

    #products .card:hover .card-img-top {
        transform: perspective(1000px) translateZ(14px) rotateX(2deg);
        box-shadow: 0 18px 40px rgba(0,0,0,0.16);
    }

    #products .card-img-top {
        height: 200px;
        object-fit: cover;
        transition: transform 0.35s ease, box-shadow 0.35s ease;
        transform: perspective(1000px) translateZ(0) rotateX(0deg);
        backface-visibility: hidden;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: transparent;
    border: none;
}



.gallery-nav-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 3rem;
    font-weight: bold;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-nav-btn:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 2px solid var(--light-brown);
}

.form-control:focus {
    border-color: var(--golden);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.footer {
    background-color: var(--brown);
    color: var(--cream);
    padding: 40px 0 20px;
}

.social-icon {
    color: var(--golden);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--cream);
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    .navbar-brand .logo {
        width: 70px;
    }
    .hero-carousel {
        height: 400px; /* Altura para tablet */
        margin-top: 60px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 0.95rem;
    }
    .navbar-brand .logo {
        width: 50px;
    }
    .hero-carousel {
        height: 300px; /* Altura para mobile */
        margin-top: 55px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .modal-dialog {
        margin: 10px;
    }
    .gallery-nav-btn {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
    .location-card {
        padding: 1.5rem;
    }
    .map-frame {
        min-height: 260px;
    }
}
