/* =====================================================
   BASE
===================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: #222;
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* =====================================================
   HEADER
===================================================== */
.site-header {
    background: rgba(255,255,255,.96);
    box-shadow: 0 3px 20px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
}
.header-container {
    max-width: 1280px;
    margin: auto;
    padding: 14px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.logo img, .custom-logo { max-height: 76px; width: auto; }
.site-name { font-size: 24px; font-weight: 800; }
.main-menu ul {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.main-menu a {
    color: #222;
    font-weight: 700;
    font-size: 15px;
}
.main-menu a:hover { color: #ff385c; }
.menu-toggle {
    display: none;
    background: #ff385c;
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 20px;
}

/* =====================================================
   HERO SLIDER
===================================================== */
.hero-slider {
    height: 720px;
    position: relative;
    overflow: hidden;
    background: #222;
}
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}
.slide.active { opacity: 1; }
.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.25), rgba(0,0,0,.10));
}
.default-slide {
    background: linear-gradient(135deg, #0f2a1f, #c08a3e);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 760px;
    padding: 220px 60px;
}
.hero-content h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    margin: 0 0 18px;
}
.hero-content p {
    font-size: 22px;
    margin: 0 0 28px;
}

/* =====================================================
   BUTTONS
===================================================== */
.btn-main,
.btn-small,
.contact-form button {
    display: inline-block;
    background: #ff385c;
    color: #fff;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 800;
    border: 0;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(255,56,92,.26);
    transition: .25s ease;
}
.btn-main:hover,
.btn-small:hover,
.contact-form button:hover {
    transform: translateY(-2px);
    background: #e7264b;
}
.btn-small { padding: 10px 18px; font-size: 14px; }

/* =====================================================
   PAGE / SECTION
===================================================== */
.section,
.page-content {
    max-width: 1280px;
    margin: auto;
    padding: 80px 25px;
}
.section { text-align: center; }
.section h2,
.page-title h1 {
    font-size: clamp(34px, 4vw, 52px);
    margin: 0 0 14px;
}
.section > p { max-width: 760px; margin: 0 auto 34px; color: #666; }
.bg-light {
    max-width: 100%;
    background: #f7f7f7;
}
.page-title {
    background: linear-gradient(135deg, #f8f5ef, #ffffff);
    padding: 90px 25px;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.page-title p { color: #666; font-size: 18px; margin: 0; }
.editable-content { max-width: 100%; padding: 0; }
.editable-content > *:not(.alignfull) { max-width: 1280px; margin-left: auto; margin-right: auto; }

/* =====================================================
   SERVICES - FONT AWESOME ICONS
===================================================== */
.services-grid {
    max-width: 1280px;
    margin: 35px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.service-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    padding: 28px 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    transition: .25s ease;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.service-item:hover { transform: translateY(-5px); }
.service-item i {
    font-size: 36px;
    color: #ff385c;
}
.service-item span {
    font-size: 18px;
    font-weight: 800;
}
.service-item small {
    color: #777;
    font-size: 13px;
}

/* =====================================================
   HABITACIONES - GRID TIPO GALERÍA
===================================================== */
.habitaciones-gallery-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 0;
    display: grid;
    gap: 18px;
}
.habitaciones-gallery-grid.columnas-1 { grid-template-columns: repeat(1, 1fr); }
.habitaciones-gallery-grid.columnas-2 { grid-template-columns: repeat(2, 1fr); }
.habitaciones-gallery-grid.columnas-3 { grid-template-columns: repeat(3, 1fr); }
.habitaciones-gallery-grid.columnas-4 { grid-template-columns: repeat(4, 1fr); }
.habitacion-gallery-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #111;
    min-height: 280px;
    box-shadow: 0 12px 35px rgba(0,0,0,.12);
}
.habitacion-gallery-card a { display: block; height: 100%; color: #fff; }
.habitacion-gallery-img,
.habitacion-gallery-img img,
.habitacion-no-image {
    width: 100%;
    height: 300px;
}
.habitacion-gallery-img img {
    display: block;
    object-fit: cover;
    transition: .35s ease;
}
.habitacion-gallery-card:hover img { transform: scale(1.06); }
.habitacion-gallery-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.72));
}
.habitacion-gallery-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px;
    z-index: 2;
}
.habitacion-gallery-info h3 {
    margin: 0 0 6px;
    font-size: 24px;
}
.habitacion-gallery-info p {
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: 14px;
}
.habitacion-no-image {
    background: #eee;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================
   GALERÍA DE FOTOS - 4 POR FILA
===================================================== */
.rancho-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 35px;
}
.rancho-gallery a {
    display: block;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.10);
}
.rancho-gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: .35s ease;
}
.rancho-gallery a:hover img { transform: scale(1.06); }

/* =====================================================
   TESTIMONIALS
===================================================== */
.testimonial-grid {
    max-width: 1280px;
    margin: 35px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.testimonial-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    text-align: left;
}
.testimonial-card p { color: #555; margin-top: 0; }
.testimonial-card strong { color: #111; }

/* =====================================================
   CONTACT + MAPS
===================================================== */
.contact-page {
    max-width: 1280px;
    margin: auto;
    padding: 70px 25px;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}
.contact-card {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 14px 40px rgba(0,0,0,.10);
    padding: 32px;
}
.contact-card h2 { margin-top: 0; font-size: 30px; }
.contact-form {
    display: grid;
    gap: 16px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-size: 16px;
    outline: none;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ff385c;
    box-shadow: 0 0 0 4px rgba(255,56,92,.10);
}
.rancho-mapa,
.rancho-mapa iframe {
    width: 100%;
}
.rancho-mapa iframe {
    height: 430px;
    border: 0 !important;
    border-radius: 24px;
    display: block;
}
.mapa-empty {
    background: #f7f7f7;
    border: 1px dashed #ccc;
    border-radius: 18px;
    padding: 30px;
    color: #777;
}
.alert-success,
.alert-error {
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 16px;
}
.alert-success { background: #e6f8ec; color: #116b2f; }
.alert-error { background: #ffe8e8; color: #9b1c1c; }

/* =====================================================
   SINGLE ROOM
===================================================== */
.room-detail {
    max-width: 1280px;
    margin: auto;
    padding: 70px 25px;
}
.room-main-photo img {
    width: 100%;
    height: 580px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 16px 42px rgba(0,0,0,.12);
}
.room-layout {
    margin-top: 35px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}
.booking-box {
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 14px 40px rgba(0,0,0,.12);
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 120px;
}

/* =====================================================
   FOOTER + WHATSAPP
===================================================== */
.site-footer {
    background: #111;
    color: #fff;
    padding: 60px 25px 25px;
}
.footer-grid {
    max-width: 1280px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.footer-card h3 { margin-top: 0; }
.footer-card p, .footer-card a { color: rgba(255,255,255,.82); }
.footer-logo img { max-height: 70px; width: auto; }
.social-icons a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    background: rgba(255,255,255,.10);
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
}
.social-icons a:hover { background: #ff385c; }
.copyright {
    text-align: center;
    margin-top: 40px;
    color: rgba(255,255,255,.65);
    font-size: 14px;
}
.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 64px;
    height: 64px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    z-index: 9999;
    box-shadow: 0 12px 32px rgba(0,0,0,.28);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1100px) {
    .services-grid,
    .testimonial-grid,
    .rancho-gallery,
    .habitaciones-gallery-grid.columnas-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .menu-toggle { display: inline-flex; }
    .main-menu { display: none; width: 100%; }
    .main-menu.open { display: block; }
    .header-container { flex-wrap: wrap; }
    .main-menu ul { flex-direction: column; align-items: flex-start; padding: 15px 0; }
    .hero-slider { height: 560px; }
    .hero-content { padding: 150px 25px; }
    .services-grid,
    .testimonial-grid,
    .rancho-gallery,
    .footer-grid,
    .contact-grid,
    .room-layout,
    .habitaciones-gallery-grid.columnas-3,
    .habitaciones-gallery-grid.columnas-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .hero-slider { height: 500px; }
    .hero-content p { font-size: 18px; }
    .services-grid,
    .testimonial-grid,
    .rancho-gallery,
    .footer-grid,
    .contact-grid,
    .room-layout,
    .habitaciones-gallery-grid { grid-template-columns: 1fr !important; }
    .rancho-gallery img,
    .habitacion-gallery-img,
    .habitacion-gallery-img img,
    .habitacion-no-image { height: 260px; }
    .room-main-photo img { height: 340px; }
    .contact-card { padding: 24px; }
}

/* =====================================================
   INICIO PERSONALIZABLE + WPBAKERY
===================================================== */
.inicio-personalizable .wpb_row,
.inicio-contenido-wpbakery .wpb_row {
    margin-left: auto;
    margin-right: auto;
}

.inicio-contenido-wpbakery {
    max-width: 1280px;
    padding: 60px 25px;
}

.vc_row[data-vc-full-width] {
    overflow: visible;
}

.wpb_text_column p:last-child {
    margin-bottom: 0;
}

/* =====================================================
   COMENTARIOS SLIDER - 2 POR VISTA
===================================================== */
.testimonial-slider {
    max-width: 1280px;
    margin: 35px auto 0;
    position: relative;
}

.testimonial-pages {
    position: relative;
    min-height: 250px;
}

.testimonial-page {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    animation: ranchoFade .45s ease;
}

.testimonial-page.active {
    display: grid;
}

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

.testimonial-slider .testimonial-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,56,92,.10);
    color: #ff385c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
}

.testimonial-controls {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.testimonial-controls button {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #ff385c;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 10px 24px rgba(255,56,92,.25);
    transition: .25s ease;
}

.testimonial-controls button:hover {
    transform: translateY(-2px);
    background: #e7264b;
}

/* Oculta el grid viejo cuando el shortcode nuevo usa slider */
.testimonial-grid { grid-template-columns: repeat(2, 1fr); }

/* =====================================================
   RESPONSIVE EXTRA
===================================================== */
@media (max-width: 800px) {
    .testimonial-page {
        grid-template-columns: 1fr;
    }

    .testimonial-pages {
        min-height: 430px;
    }
}
