body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
    color: #fff;
    margin: 0;
}

h1,
h2,
h3,
.title-serif {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #fff;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin: 4rem 0 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    width: 50px;
    height: 2px;
    background: #fff;
    display: block;
    margin: 1rem auto 0;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
}

nav .navbar-nav .nav-link {
    color: #fff !important;
}

header {
    background: url('../images/fondo.jpg') center/cover no-repeat;
    height: 100vh;
    text-align: center;
    position: relative;
}

.logo-placeholder {
    width: 120px;
    height: 120px;
    background: #e0e0e0;
    margin: 0 auto 1rem;
}

.hero-text {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
}

.wine-card {
    padding: 0.5rem 0;
    background-color: #000;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.wine-card:nth-child(even) {
    flex-direction: row-reverse;
    align-items: stretch;
    min-height: 550px;
}

.wine-img {
    flex: 0 0 37.5%;
    max-width: 37.5%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 0;
}

.wine-img img {
    height: 580px;
    max-width: 100%;
    max-height: 95%;
    object-fit: contain;
    margin-bottom: 0;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

.wine-info {
    flex: 1;
    background: #111;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid #fff;
    padding: 1.5rem;
    text-align: justify;
    text-justify: distribute;
}

.wine-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.wine-info h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: #fff;
    margin-top: 0.5rem;
}

#vinos .wine-card:nth-child(2) .wine-info,
#vinos .wine-card:nth-child(4) .wine-info {
    border-right: 2px solid #fff;
    border-left: 0px;
}

#origen .row img,
#origen .row .col-md-3 img {
    object-fit: cover;
    margin-top: 0;
    padding: 0;
    display: block;
}

#contacto {
    background: #000;
}

#contacto .form-container {
    background: black;
    padding: 2rem;
}

#contacto .row {
    align-items: stretch;
}

#contacto .info-container {
    background: #000;
    padding: 2rem;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.map-responsive {
    position: relative;
    flex-grow: 1;
    min-height: 300px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

#contacto iframe {
    margin-top: 0rem;
    border: none;
    display: block;
}

#contacto .social-icons {
    margin-bottom: 1rem;
    flex-shrink: 0;
}

#contacto .info-container>p {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fff;
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

footer {
    background: #111;
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.social-icons a {
    color: #fff;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-float img {
    width: 30px;
    height: 30px;
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.technical-summary {
    position: relative;
    font-size: 0.85rem;
    background: transparent;
    border: none;
    margin-left: 1rem;
    z-index: 2;
}

.technical-summary summary {
    background: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    list-style: none;
    font-weight: 500;
    white-space: nowrap;
}

.technical-summary::-webkit-details-marker {
    display: none;
}

.technical-content {
    position: absolute;
    top: 100%;
    right: 0;
    width: max-content;
    min-width: 250px;
    background: #fff;
    color: #000;
    padding: 1rem;
    border: 1px solid #000;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.technical-content p {
    margin: 0.25rem 0;
}

.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-sizing: border-box;
    margin: 0 auto;
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #000;
}

.modal-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #000;
}

.btn {
    background-color: #111;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
}

.btn:hover {
    background-color: #333;
}

.logo-small {
    height: 60px;
}

.logo-big {
    height: 80px;
    margin-bottom: 1rem;
}

.origin-text p {
    text-align: justify;
}

.origin-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.mt-3 {
    margin-top: 0rem !important;
}

/* Media Queries */
@media (max-width: 767px) {
    .wine-card {
        display: block;
        margin-bottom: 1rem;
        background-color: white;
        padding: 0;
        overflow: visible;
    }

    .wine-img {
        flex: none;
        max-width: 100%;
        width: 100%;
        height: auto;
        background-color: white;
        padding: 2rem 0;
    }

    .wine-img img {
        width: 80%;
        max-width: 500px;
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    }

    .wine-info {
        width: 100%;
        text-align: justify;
        padding: 2rem;
        border-left: none;
        border-right: none;
    }

    .wine-info h3 {
        font-size: 2rem;
    }

    .wine-info p {
        font-size: 1rem;
        text-align: justify;
        text-justify: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
        line-height: 1.25rem;
    }

    .origin-text p {
        line-height: 1.25rem;
        hyphens: auto;
    }

    .section-title {
        margin: 2rem 0 2rem;
    }

    .py-5 {
        padding-top: 0rem !important;
    }

    .px-5 {
        padding-bottom: 1.5rem;
    }

    .py-5 {
        padding-bottom: 0rem !important;
    }

    /* Bordes específicos para vinos  */
    #vinos .wine-card:nth-child(2) .wine-info,
    #vinos .wine-card:nth-child(4) .wine-info {
        border-right: 0px;
        border-left: 0px;
    }

    .technical-summary {
        margin-left: 0;
        z-index: 2;
    }

    .technical-summary summary {
        padding: 10px;
        border-radius: 5px;
    }

    .technical-content {
        width: calc(100vw - 4rem);
        max-width: 300px;
        box-sizing: border-box;
    }

    #contacto .info-container {
        /* Nuevos estilos para alinear en mobile */
        display: flex;
        flex-direction: column;
        align-items: center; /* Centra horizontalmente */
        justify-content: center; /* Centra verticalmente (si es necesario) */
    }

    #contacto .info-container>p {
        text-align: center; /* Centra el texto del email */
        margin-bottom: 0.5rem; /* Reduce el espacio antes de los íconos */
    }

    #contacto .social-icons {
        display: flex;
        justify-content: center; /* Centra los íconos horizontalmente */
        margin-bottom: 1rem; /* Espacio después de los íconos */
    }

    .map-responsive {
        height: 300px;
        flex-grow: 0;
    }
}