/* ========================================================
   W34 INMO - PLUGIN STYLESHEET
   Estructura:
   1.  Tarjeta de propiedad (base)
   2.  Imagen de la tarjeta / Slick Carousel
   3.  Contenido de la tarjeta
   4.  Badges (vendido, reservado, alquilado)
   5.  Botón Favoritos
   6.  Topbar (toggles de vista + ordenación)
   7.  Vista GRID
   8.  Vista LIST
   9.  Vista MAPA
   10. Buscador (search form) + Select2
   11. Vista SINGLE (propiedad individual)
   12. Formulario de contacto (single)
   13. Botón sticky de contacto
   14. Modal de contacto (EV)
======================================================== */


/* ========================================================
   1. TARJETA DE PROPIEDAD (BASE)
======================================================== */
.w34-destacados-grid {
    display: grid;
    gap: 30px;
    margin: 20px 0;
}

.w34-card-propiedad {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    background: #fff;
}

.w34-card-propiedad:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.w34-card-location {
    text-transform: uppercase;
    font-style: italic;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    padding: 0 0 5px;
    line-height: 1.2em;
}

.w34-card-location a:hover {
    color: #b58a36 !important;
}

.w34-card-content {
    padding: 4%;
}

.w34-card-title {
    font-size: 20px;
    line-height: 1.2em;
    font-family: 'didot-title' !important;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 2%;
    padding: 0;
}

.w34-card-title a {
    color: #333;
    text-decoration: none;
}

.w34-card-price-ref {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.w34-card-price {
    font-size: 18px;
    font-weight: bold;
    color: black;
    line-height: 2.4em;
    font-family: 'Lato';
}

.w34-card-ref {
    font-size: 13px;
    color: #999;
}

.w34-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 4px;
    padding-top: 12px;
    color: #666;
    font-size: 13px;
    line-height: 1.2;
    border-top: 1px solid #666;
    font-weight: 100;
}

.w34-card-features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 4px;
    white-space: nowrap;
}

.feature-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .w34-card-features {
        gap: 6px 2px;
        font-size: 12px;
    }

    .w34-card-features span {
        padding: 2px 3px;
    }
}

@media (max-width: 400px) {
    .w34-card-price-ref {
        gap: 5px;
    }

    .w34-card-price {
        line-height: 1.2em !important;
    }
}

.fa-heart.fa-solid {
    color: red;
}


/* ========================================================
   2. IMAGEN DE LA TARJETA / SLICK CAROUSEL
======================================================== */
.w34-card-img-container {
    position: relative;
}

.w34-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.w34-card-img-wrapper img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

/* Asegurar que el enlace que envuelve la foto ocupe todo el slide */
.w34-card-img-wrapper a.w34-card-img-link {
    display: block !important;
    height: 100%;
    width: 100%;
}

/* Forzar que Slick ocupe la altura completa del wrapper */
.w34-card-img-wrapper .slick-list,
.w34-card-img-wrapper .slick-track,
.w34-card-img-wrapper .slick-slide {
    height: 100% !important;
}

.w34-card-img-wrapper .slick-slide > div {
    height: 100% !important;
}

.view-list .w34-card-img-wrapper {
    height: 100%;
    min-height: 220px;
}

.view-list .w34-card-img-wrapper .slick-slide {
    width: 100%;
}

/* Evitar que las imágenes se amontonen antes de que Slick cargue (FOUC) */
.w34-card-img-wrapper:not(.slick-initialized) img:not(:first-child) {
    display: none;
}

/* FLECHAS INTERNAS (Fotos dentro de las tarjetas) */
.w34-card-img-wrapper .slick-prev {
    left: 10px !important;
    z-index: 2;
}

.w34-card-img-wrapper .slick-next {
    right: 10px !important;
    z-index: 2;
}

.w34-card-img-wrapper .slick-prev:before,
.w34-card-img-wrapper .slick-next:before {
    font-size: 20px;
    color: white !important;
    opacity: 0.8;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* FLECHAS EXTERNAS (Bloque completo de destacados) */
.destacados-block .slick-prev,
.destacados-block .slick-next {
    width: 40px;
    height: 40px;
    z-index: 10;
}

.destacados-block .slick-prev {
    left: -20px !important;
}

.destacados-block .slick-next {
    right: -20px !important;
}

.destacados-block .slick-prev:before,
.destacados-block .slick-next:before {
    color: #b58a36 !important;
    font-size: 30px;
    opacity: 1;
}

@media (max-width: 1200px) {
    .destacados-block .slick-prev { left: 0px !important; }
    .destacados-block .slick-next { right: 0px !important; }
}

/* DOTS */
.slick-dots {
    position: absolute;
    bottom: 5px;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: 0;
    padding-bottom: 0 !important;
    list-style: none;
    text-align: center;
}

.slick-dots li {
    margin: 0px !important;
    width: 15px;
    height: 15px;
}

.slick-dotted.slick-slider {
    margin-bottom: 0;
}

/* DOTS INTERNOS (Fotos de las tarjetas) */
.w34-card-img-wrapper .slick-dots li button:before {
    color: white !important;
    opacity: 0.7;
    font-size: 8px !important;
}

.w34-card-img-wrapper .slick-dots li.slick-active button:before {
    opacity: 1;
    color: white !important;
}

.w34-destacados .w34-card-img-wrapper .slick-dots li button::before {
    color: black;
}

/* Fix para cuando Slick se inicializa en el grid de destacados */
.w34-destacados-grid.slick-initialized {
    display: block;
}

.w34-destacados-grid.slick-initialized .slick-track {
    display: flex !important;
}

.w34-destacados-grid.slick-initialized .w34-card-propiedad {
    margin: 0 15px;
}

/* Heart icon helper */
.heart-icon {
    background-color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 5px;
}

.heart-icon path {
    fill: currentColor;
}

.heart-icon:hover {
    color: #b58a36;
    background-color: rgba(255, 255, 255, 1);
}


/* ========================================================
   3. BADGES (VENDIDO, RESERVADO, ALQUILADO)
======================================================== */
.w34-badge-vendido {
    position: absolute;
    display: flex;
    top: 15px;
    left: 15px;
    background: #b58a36;
    color: #fff;
    padding: 1px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    z-index: 2;
}

.w34-badge-reservado {
    background: #b58a36;
}

.w34-badge-alquilado {
    background: #b58a36;
}


/* ========================================================
   4. BOTÓN FAVORITOS
======================================================== */
.bwm-favorite-btn {
    background: rgba(255, 255, 255, 0.75);
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s ease;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    border-radius: 6px;
    padding: 5px 7px;
}

.bwm-favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
}

/* Botón de corazón en la página de favoritos */
.bwm-favorites-list .bwm-favorite-btn {
    font-size: 24px;
}


/* ========================================================
   5. TOPBAR (TOGGLES DE VISTA + ORDENACIÓN)
======================================================== */
.bwm_props_list .topbar {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.view-toggles {
    display: flex;
    gap: 10px;
}

.bwm-toggle-view {
    padding: 8px 10px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.bwm-toggle-view:hover {
    background: #e0e0e0;
}

.bwm-toggle-view.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.sortby {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sortby a {
    text-decoration: none;
    color: #333;
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
}

.sortby a:hover {
    background: #b58a36;
    color: #fff;
    border-color: #b58a36;
}

@media (max-width: 600px) {
    .bwm_props_list .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .bwm_props_list .topbar .sortby {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}


/* ========================================================
   6. VISTA GRID
======================================================== */
.view-grid .w34-destacados-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .view-grid .w34-destacados-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .view-grid .w34-destacados-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.view-grid .w34-card-propiedad {
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    justify-content: space-between;
}

.view-grid .w34-card-img-wrapper {
    height: 220px;
}

.view-grid .w34-card-img-wrapper img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.view-grid .w34-card-content {
    padding: 8px 18px;
}


/* ========================================================
   7. VISTA LIST
======================================================== */
.view-list .w34-destacados-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.view-list .w34-card-propiedad {
    display: flex;
    flex-direction: row;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    align-items: stretch;
}

.view-list .w34-card-img-container {
    width: 25%;
    flex-shrink: 0;
}

.view-list .w34-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.view-list .w34-card-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .view-list .w34-card-propiedad {
        flex-direction: column;
    }

    .view-list .w34-card-img-container,
    .view-list .w34-card-content {
        width: 100%;
    }

    .view-list .w34-card-img-wrapper {
        height: 220px;
    }
}


/* ========================================================
   8. VISTA MAPA
======================================================== */
#w34inmo-map-wrapper {
    display: none;
    margin: 0;
}

.view-map #w34inmo-map-wrapper {
    display: block;
    align-self: start;
    border: 1px solid #e6e1d8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(23, 25, 32, 0.08);
    overflow: hidden;
}

.view-map #w34inmo-map-container {
    width: 100%;
    height: clamp(420px, 68vh, 760px) !important;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Escritorio (> 992px): propiedades a la izquierda, mapa a la derecha */
@media (min-width: 993px) {
    .view-map .w34-layout-wrapper {
        display: grid;
        grid-template-columns: minmax(360px, 0.6fr) minmax(360px, 1.4fr);
        align-items: start;
        gap: 10px;
    }

    .view-map #bwmproperties {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 0;
        max-height: 80vh;
        overflow-y: auto;
        padding-right: 10px;
    }
    
    /* Scrollbar styling for a cleaner look */
    .view-map #bwmproperties::-webkit-scrollbar {
        width: 6px;
    }
    .view-map #bwmproperties::-webkit-scrollbar-track {
        background: #f1f1f1; 
        border-radius: 4px;
    }
    .view-map #bwmproperties::-webkit-scrollbar-thumb {
        background: #ccc; 
        border-radius: 4px;
    }
    .view-map #bwmproperties::-webkit-scrollbar-thumb:hover {
        background: #b58a36; 
    }

    .view-map #w34inmo-map-wrapper {
        position: sticky;
        top: 24px;
        height: 80vh;
    }
    
    .view-map #w34inmo-map-container {
        height: 100% !important;
    }
}

/* Tablet (768px–992px): 2 columnas en la lista */
@media (min-width: 768px) and (max-width: 992px) {
    .view-map #bwmproperties {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móvil (< 992px): columna única, mapa primero */
@media (max-width: 992px) {
    .view-map .w34-layout-wrapper {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .view-map #w34inmo-map-wrapper {
        width: 100%;
        order: -1;
        position: static;
    }

    .view-map #w34inmo-map-container {
        height: clamp(320px, 55vh, 520px) !important;
    }

    .view-map #bwmproperties {
        width: 100%;
        grid-template-columns: 1fr;
        margin: 0;
    }
}


/* ========================================================
   9. BUSCADOR (SEARCH FORM) + SELECT2
======================================================== */
.bwm-search-form {
    background: #ffffff;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    margin: 20px 0 40px;
    border: 2px solid rgba(0, 0, 0, 0.03);
}

.bwm-search-form form {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: flex-end;
}

.bwm-field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bwm-field-unique {
    flex: 2 !important;
}

.bwm-field input,
.bwm-field select {
    width: 100%;
    height: 40px;
    padding: 0 16px;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-size: 12px;
    color: #1a202c;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    box-sizing: border-box;
}

.bwm-field select {
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.bwm-field input:focus,
.bwm-field select:focus {
    outline: none;
    border-color: #b58a36;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(181, 138, 54, 0.1);
}

.bwm-field input::placeholder {
    color: black;
}

.bwm-submit {
    flex: 0 0 auto;
}

.bwm-btn {
    background: #b58a36;
    color: #fff;
    border: none;
    padding: 0 28px;
    height: 40px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.bwm-btn:hover {
    background: #9a752e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181, 138, 54, 0.2);
}

.bwm-btn:active {
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .bwm-search-form form {
        flex-wrap: wrap;
    }

    .bwm-field {
        flex: 1 1 calc(33.333% - 12px);
        min-width: 200px;
    }

    .bwm-submit {
        flex: 1 1 100%;
    }

    .bwm-btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .bwm-field {
        flex: 1 1 100%;
    }
}

/* --- Select2 Overrides --- */
.select2-container--default .select2-selection--single {
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 5px !important;
    background-color: #fff !important;
    transition: all 0.2s ease-in-out !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1a202c !important;
    font-size: 12px !important;
    padding-left: 16px !important;
    padding-right: 40px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: 12px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #b58a36 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(181, 138, 54, 0.1) !important;
    outline: none !important;
}

.select2-dropdown {
    border: 2px solid #e2e8f0 !important;
    border-radius: 5px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    z-index: 9999 !important;
}

.select2-results__option {
    padding: 10px 16px !important;
    font-size: 12px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #b58a36 !important;
    color: white !important;
}

.select2-results__option[aria-selected="true"] {
    background-color: #DDDDDD !important;
    color: black !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: black !important;
}


/* ========================================================
   10. VISTA SINGLE (PROPIEDAD INDIVIDUAL)
======================================================== */
.w34-premium-single {
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Lato', sans-serif;
    color: #333;
    padding: 0 15px;
}

.w34-sp-header h1 {
    font-family: 'didot-title', serif;
    font-size: 38px;
    color: #1a202c;
    margin-bottom: 5px;
    line-height: 1.2;
}

.w34-sp-breadcrumbs {
    font-size: 13px;
    color: #888;
    margin-bottom: 25px;
}

/* Gallery */
.w34-sp-gallery {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    height: 500px;
}

.w34-sp-gallery-main {
    flex: 0 0 65%;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.w34-sp-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.w34-sp-badge-obra-nueva {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #b58a36;
    color: #fff;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 5;
}

.w34-sp-gallery-main .bwm-favorite-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.w34-sp-gallery-main .bwm-favorite-btn:hover {
    transform: scale(1.05);
}

.w34-sp-gallery-main .heart-icon {
    font-size: 20px;
    line-height: 1;
}

.w34-sp-gallery-side {
    flex: 0 0 calc(35% - 15px);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.w34-sp-gallery-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.w34-sp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.w34-sp-more-photos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

/* Location */
.w34-sp-location-text {
    font-size: 15px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.w34-sp-location-text a:hover {
    color: #b58a36 !important;
}

/* Info Row */
.w34-sp-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.w34-sp-info-left h2 {
    font-size: 26px;
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 15px;
    font-family: 'didot-title', serif;
}

.w34-sp-features {
    display: flex;
    gap: 25px;
    color: #666;
    font-size: 14px;
}

.w34-sp-features .feature-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.feature-item span.feature-number {
    font-size: larger;
    font-weight: 600;
}

.w34-sp-info-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.w34-sp-price-ref {
    margin-bottom: 15px;
    color: #666;
    font-size: 22px;
}

.w34-sp-price {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.w34-sp-separator {
    margin: 0 10px;
    color: #ccc;
    font-size: 22px;
}

.w34-sp-ref {
    font-size: 22px;
    color: #888;
}

.w34-sp-actions {
    display: flex;
    gap: 10px;
}

.w34-btn-action {
    display: inline-block;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.2s;
    cursor: pointer;
}

.w34-btn-gold {
    background-color: #b58a36;
    color: #fff;
    border: none;
}

.w34-btn-gold:hover {
    background-color: #9a752e;
    color: #fff;
}

.rounded-btn {
    border-radius: 4px;
}

/* Content sections */
.w34-sp-content {
    margin-top: 20px;
}

.w34-sp-section-title {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.w34-sp-section-title span {
    display: inline-block;
    font-family: 'didot-title', serif;
    font-size: 16px;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
    margin-bottom: -1px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.w34-sp-essential-details {
    font-size: 15px;
    margin-bottom: 20px;
}

.w34-sp-essential-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 20px;
    column-gap: 40px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.w34-sp-essential-list li {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 14px;
    color: #444;
}

.w34-sp-essential-list .label {
    font-weight: 600;
    min-width: 130px;
    color: #555;
    padding-right: 10px;
}

.w34-sp-essential-list .value {
    color: #111;
}

.w34-sp-description-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.w34-sp-description-text p {
    margin-bottom: 15px;
}

/* Responsive single */
@media (max-width: 992px) {
    .w34-sp-gallery {
        flex-direction: column;
        height: auto;
    }

    .w34-sp-gallery-main {
        flex: 0 0 auto;
        height: 400px;
    }

    .w34-sp-gallery-side {
        flex-direction: row;
        height: 150px;
    }

    .w34-sp-info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .w34-sp-info-right {
        text-align: left;
        align-items: flex-start;
        width: 100%;
        margin-top: 20px;
    }

    .w34-sp-essential-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .w34-sp-gallery-side {
        display: none;
    }

    .w34-sp-gallery-main {
        height: 300px;
    }

    .w34-sp-actions {
        flex-direction: column;
        width: 100%;
    }

    .w34-btn-action {
        text-align: center;
        width: 100%;
    }

    .w34-sp-essential-list {
        grid-template-columns: 1fr;
    }
}


/* ========================================================
   11. FORMULARIO DE CONTACTO (SINGLE)
======================================================== */
.w34-sp-contact-form {
    background: #f9f9f9;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 50px;
    border: 1px solid #eaeaea;
}

.w34-sp-contact-form h3 {
    font-family: 'didot-title', serif;
    font-size: 24px;
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
}

.w34-sp-contact-form form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.w34-sp-contact-form input[type="text"],
.w34-sp-contact-form input[type="email"],
.w34-sp-contact-form input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.3s;
    background: #fff;
}

.w34-sp-contact-form input:focus,
.w34-sp-contact-form textarea:focus {
    outline: none;
    border-color: #b58a36;
}

.w34-sp-contact-form textarea {
    grid-column: 1 / -1;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    min-height: 120px;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
    background: #fff;
}

.w34-sp-contact-form button[type="submit"] {
    grid-column: 1 / -1;
    background-color: #b58a36;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.2s;
    justify-self: start;
    margin-top: 10px;
}

.w34-sp-contact-form button[type="submit"]:hover {
    background-color: #9c762c;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .w34-sp-contact-form form {
        grid-template-columns: 1fr;
    }
}


/* ========================================================
   12. BOTÓN STICKY DE CONTACTO
======================================================== */
.w34-sticky-contact-button {
    position: fixed;
    right: 0;
    top: 80%;
    transform: translateY(-50%);
    z-index: 9999;
}

.w34-sticky-contact-button .w34-btn-sticky {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #b58a36;
    color: #fff;
    padding: 12px 20px 12px 25px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 10px 0 0 10px;
    box-shadow: -2px 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    gap: 10px;
}

.w34-sticky-contact-button .w34-btn-sticky:hover {
    background-color: #9a752e;
    padding-right: 30px;
}

.w34-sticky-contact-button .w34-btn-sticky i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .w34-sticky-contact-button {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        transform: none;
        width: 100%;
        margin: 0;
    }

    .w34-sticky-contact-button .w34-btn-sticky {
        border-radius: 0;
        width: 100%;
        text-align: center;
        padding-top: 15px;
        padding-bottom: 15px;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    }

    .w34-sticky-contact-button .w34-btn-sticky:hover {
        padding-right: 25px;
    }
}


/* ========================================================
   13. MODAL DE CONTACTO (EV)
======================================================== */
.w34-ev-modal {
    background: #fff;
    padding: 30px 40px;
    width: auto;
    max-width: 600px;
    margin: 40px auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    font-family: Arial, sans-serif;
    border: 1px solid #e0e0e0;
}

.w34-ev-modal .mfp-close {
    font-size: 36px;
    font-weight: 300;
    top: 20px;
    right: 20px;
    color: #000;
    opacity: 1;
}

.w34-ev-modal-title {
    font-family: 'didot-title', serif;
    font-size: 26px;
    font-weight: normal;
    color: #333;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
}

.w34-ev-form .w34-ev-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.w34-ev-form .w34-ev-row input {
    flex: 1;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    font-size: 14px;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.w34-ev-form input::placeholder,
.w34-ev-form textarea::placeholder {
    color: #666;
}

.w34-ev-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 15px;
    border: 1px solid #ccc;
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
    color: #333;
    outline: none;
    resize: vertical;
    transition: border-color 0.3s;
}

.w34-ev-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    font-size: 14px;
    margin-bottom: 25px;
    box-sizing: border-box;
    color: #333;
    outline: none;
    background: #fff;
    cursor: pointer;
    appearance: none;
}

.w34-ev-form input:focus,
.w34-ev-form textarea:focus,
.w34-ev-form select:focus {
    border-color: #b58a36;
}

.w34-ev-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    line-height: 1.4;
}

.w34-ev-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.w34-ev-btn-submit {
    background-color: #b58a36;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s;
    border-radius: 2px;
}

.w34-ev-btn-submit:hover {
    background-color: #9a752e;
}

.w34-ev-privacy {
    margin-top: 20px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.w34-ev-privacy a {
    color: #b58a36;
    text-decoration: none;
}

.w34-ev-privacy a:hover {
    text-decoration: underline;
}

/* Fix width for intl-tel-input */
.w34-ev-row .iti {
    display: block;
    width: 100%;
}

.w34-ev-row .iti__flag-container {
    z-index: 10;
}

@media (max-width: 600px) {
    .w34-ev-form .w34-ev-row {
        flex-direction: column;
        gap: 15px;
    }
}
