/* ====================================================
   Rancho Mi Abuelo — Brand CSS (componentes compartidos)
   Base: Tabler Bootstrap 1.0.0-beta21
   Paleta: #10221b (verde oscuro), #68c3c4 (turquesa), #f9b000 (amarillo)
   Fuentes: Jost (cuerpo), Mansalva (acento)
   ==================================================== */

/* ---------- Variables de marca ---------- */
:root {
    --tblr-primary: var(--rma-teal, #1f7a8c);
    --tblr-primary-rgb: 31, 122, 140;
    --rma-dark: #10221b;
    --rma-teal: #68c3c4;
    --rma-yellow: #f9b000;
    --rma-white: #ffffff;
    --rma-light: #f8f5f0;
    --rma-text: #2c2c2c;
    --rma-muted: #666;
    --header-background: rgb(255 255 255 / 0);
    --header-shadow: 0 5px 10px #00000000;
    --logo-shadow: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.8));
    --header-links-bg-focus: var(--tblr-primary);
    --header-links-color-active: #Fff;
    --header-links-color-focus: #Fff;
    --header-color-menu: #fff;
    --height-header: 90px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; margin: 0 !important}

body.rma-body {
    color: var(--rma-text);
    background: #fff;
    margin: 0;
}

img { max-width: 100%; height: auto; }

a { text-decoration: none; }

/* ---------- HEADER ---------- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--height-header);
    z-index: 10000;
    background: var(--header-background);
    box-shadow: var(--header-shadow);
    transition: all 0.3s
}
.header-fixed {
    --header-background: rgb(255 255 255 / 1);
    --header-shadow: 0 5px 10px #00000011;
    --logo-shadow: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0));
    --header-links-color-focus: var(--tblr-primary);
    --header-links-color-active: #Fff;
    --header-color-menu: var(--tblr-primary);
}

header .header-wrapper {
    padding: 1rem;
    max-width: 1200px;
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
}

header .header-wrapper .logo-header {
    margin-right: auto;
}

    header .header-wrapper .logo-header img {
        filter: var(--logo-shadow);
        height: 60px;
        width: auto;
    }

header .header-wrapper #menu-toggle {
    display: none;
}

    header .header-wrapper .menu-btn {
        display: none;
        cursor: pointer;
        font-size: 30px;
        color: var(--header-color-menu);
        line-height: 1;
        user-select: none;
    }

header .header-wrapper nav ul .li-quit .link-inner {
    height: 40px;
    width: 40px;
}

    header .header-wrapper nav ul li a::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 2px;
        height: 100%;
        background: var(--header-links-bg-focus);
        transition: width .3s ease;
    }

    header .header-wrapper nav ul li a:hover::before,
    header .header-wrapper nav ul li a.active-nav::before {
        width: 100%;
    }
    header .header-wrapper nav ul li a:hover .link-inner,
    header .header-wrapper nav ul li a.active-nav .link-inner {
        color: #fff
    }
    header .header-wrapper nav ul li a .link-inner,
    header .header-wrapper nav ul .li-quit .link-inner {
        position: relative;
        color: var(--rma-dark);
        border-bottom: 3px solid transparent;
        padding: 10px 0;
        font-size: 16px;
        font-weight: 400;
        display: inline-block;
        transition: color 0.2s, border-color 0.2s;
        color: var(--header-links-color-focus)
    }


.li-quit {
    display: none;
}

.menu-overlay { display: none; }

/* ---------- Header móvil ---------- */
@media (max-width: 992px) {

    header .header-wrapper nav ul li a .link-inner,
    header .header-wrapper nav ul .li-quit .link-inner {
        color: var(--tblr-primary)
    }
    header .header-wrapper {
        padding: 1rem 1.25rem;
    }

    header .header-wrapper .menu-btn {
        display: block;
    }

        header .header-wrapper nav {
            width: 100%;
            max-width: 400px;
            height: 100vh;
            background: #fff;
            position: fixed;
            left: -400px;
            top: 0;
            z-index: 9999;
            transition: left 0.25s ease;
            flex-direction: column;
            justify-content: flex-start;
            padding: 1.5rem;
            box-shadow: 4px 0 20px rgba(0,0,0,0.12);
        }

    header .header-wrapper nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    header .header-wrapper nav ul li a .link-inner {
        display: block;
        padding: 12px 0;
        border-bottom: none;
        border-top: 1px solid #eee;
        font-size: 17px;
    }

    header .header-wrapper nav ul .li-quit .link-inner {
        border-top: none;
        font-size: 26px;
        font-weight: 700;
        text-align: right;
        padding: 0 0 12px 0;
    }

    header .header-wrapper #menu-toggle:checked ~ nav {
        left: 0;
    }

    header .header-wrapper #menu-toggle:checked ~ .menu-overlay {
        display: block;
    }

    .li-quit {
        display: block;
    }

    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 9998;
    }
}


.main-bottom-of-header {
    margin-top: 90px;
}

/* ---------- Botones de marca ---------- */
.btn-rma-dark {
    background: var(--rma-dark);
    color: #fff;
    font-weight: 400;
    padding: .45rem 1.5rem;
    border-radius: 3px;
    border: none;
    transition: background .2s;
    display: inline-block;
}

.btn-rma-dark:hover {
    background: var(--rma-teal);
    color: #fff;
}

.btn-rma-outline {
    background: transparent;
    color: var(--rma-dark);
    font-weight: 500;
    padding: .45rem 1.5rem;
    border-radius: 3px;
    border: 2px solid var(--rma-dark);
    display: inline-block;
    transition: all .2s;
}

.btn-rma-outline:hover {
    background: var(--rma-dark);
    color: #fff;
}

/* ---------- Page header (páginas interiores) ---------- */
.rma-page-header {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 320px;
}

.rma-page-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Section headings ---------- */
.rma-section-label {
    color: var(--rma-teal);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: .25rem;
}

.rma-divider {
    display: block;
    width: 150px;
    height: 5px;
    background: var(--rma-dark);
    margin: 1rem 0;
    border: none;
}

/* ---------- Feature section (dark bg) ---------- */
.rma-feature-section {
    background-color: var(--rma-dark);
    color: #fff;
    padding: 4rem 0;
}

.rma-feature-section .rma-section-title {
    color: #fff;
}

/* ---------- Partners ---------- */
.partners-container .partner-item {
    width: clamp(90px, 100%, 250px);
    height: auto;
}

.partners-container .partner-item img {
    width: 100%;
    height: 100%;
}

/* ---------- FOOTER ---------- */
.rma-footer {
    background: linear-gradient( to bottom, var(--rma-light) 0%, var(--rma-light) 0, rgb(0 0 0 / 0.3) 50% ), url('/wp-content/uploads/2023/03/fondo_pie5c8d.jpg');
    background-position: center;
    background-size: cover;
    color: rgba(255,255,255,.8);
}

    .rma-footer .container .wrapper {
        height: clamp(200px, 100%, 600px);
    }

.rma-footer-logo {
    filter: brightness(0) invert(1);
}

.rma-footer-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,.7);
}

.rma-footer-heading {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--rma-yellow);
    margin-bottom: .75rem;
}

.rma-footer-links { list-style: none; padding: 0; margin: 0; }

.rma-footer-links li { margin-bottom: .35rem; }

.rma-footer-links a {
    color: rgba(255,255,255,.7);
    font-size: 14px;
    transition: color .15s;
}

.rma-footer-links a:hover { color: var(--rma-yellow); }

.rma-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: 13px;
    color: rgba(255,255,255,.5);
}

.rma-footer-bottom a { color: rgba(255,255,255,.5); }
.rma-footer-bottom a:hover { color: var(--rma-yellow); }

.rma-social-links a { opacity: .75; transition: opacity .15s; }
.rma-social-links a:hover { opacity: 1; }

/* ---------- Utilities ---------- */
.text-teal   { color: var(--rma-teal) !important; }
.text-yellow { color: var(--rma-yellow) !important; }
.text-rma    { color: var(--rma-dark) !important; }
.bg-rma-light { background-color: var(--rma-light) !important; }


/* ---------- Hero ---------- */
.rma-hero {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(/wp-content/uploads/2023/02/slider.jpg);
    background-size: 100% 100%;
    background-color: var(--rma-dark);
}

.rma-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 1rem;
}

.rma-hero-subtitle {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: .25rem;
}

.rma-hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .rma-hero         { height: 420px; }
    .rma-hero-title   { font-size: 32px; }
    .rma-hero-subtitle { font-size: 22px; }
}

/* ---------- Tour card ---------- */
.rma-tour-card { text-align: center; }

.rma-tour-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

.rma-tour-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin: 1rem 0 .5rem;
}

.rma-tour-card p {
    font-size: 17px;
    line-height: 1.4;
    color: #333;
}

/* ---------- Highlights (iconos) ---------- */
.rma-highlight-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: .75rem;
}

/* ---------- Testimonials ---------- */
.rma-testimonial-section {
    padding: 4rem 0;
    background-size: cover;
    background-position: center;
    position: relative;
}

.rma-testimonial-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(16,34,27,.55);
}

.rma-testimonial-section > .container { position: relative; z-index: 1; }

.rma-testimonial-card {
    background: #fff;
    border-radius: 6px;
    padding: 2rem;
    height: 100%;
}

.rma-testimonial-card .stars { color: var(--rma-yellow); font-size: 18px; }

.rma-testimonial-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin: .75rem 0;
}

.rma-testimonial-card img.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: .75rem;
}

/* ---------- Instagram section ---------- */
.rma-instagram-section {
    padding: 3rem 0;
    background: var(--rma-light);
}

/* ---------- Contact icon ---------- */
.rma-contact-icon { color: var(--rma-yellow); margin-right: .5rem; }

/* ---------- Gallery grid ---------- */
.rma-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
}

.rma-gallery-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
    transition: transform .2s;
}

.rma-gallery-grid img:hover { transform: scale(1.03); }

@media (max-width: 576px) {
    .rma-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Whatsapp*/
#wa-wrap {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}

    #wa-wrap > * {
        pointer-events: all;
    }

/* Chat panel */
#wa-panel {
    width: 310px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    background: #f0f2f5;
    transform-origin: bottom right;
    transform: scale(0.85) translateY(16px);
    opacity: 0;
    display: none;
    pointer-events: none;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s ease;
}

    #wa-panel.open {
        display: block !important;
        transform: scale(1) translateY(0);
        opacity: 1;
        pointer-events: all;
    }

/* Header */
.wa-header {
    background: #075e54;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .wa-avatar i {
        font-size: 22px;
        color: #fff;
    }

.wa-header-info {
    flex: 1;
    min-width: 0;
}

    .wa-header-info strong {
        display: block;
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .wa-header-info span {
        font-size: 11.5px;
        color: rgba(255,255,255,.75);
    }

.wa-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: rgba(255,255,255,.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background .15s;
}

    .wa-close:hover {
        background: rgba(255,255,255,.15);
        color: #fff;
    }

    .wa-close i {
        font-size: 18px;
    }

/* Body / bubble */
.wa-body {
    padding: 14px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wa-bubble {
    background: #fff;
    border-radius: 10px 10px 10px 2px;
    padding: 10px 12px 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
    max-width: 88%;
    position: relative;
}

    .wa-bubble::before {
        content: '';
        position: absolute;
        left: -7px;
        top: 0;
        border-width: 0 8px 8px 0;
        border-style: solid;
        border-color: transparent #fff transparent transparent;
    }

    .wa-bubble p {
        font-size: 13.5px;
        color: #111;
        line-height: 1.5;
        margin: 0 0 6px;
    }

    .wa-bubble .wa-time {
        font-size: 10.5px;
        color: #999;
        text-align: right;
        display: block;
    }

/* Input row */
.wa-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 12px;
}

.wa-input {
    flex: 1;
    border: none;
    border-radius: 22px;
    padding: 9px 14px;
    font-size: 13.5px;
    background: #fff;
    color: #111;
    outline: none;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
    resize: none;
    height: 40px;
    line-height: 22px;
}

    .wa-input::placeholder {
        color: #aaa;
    }

.wa-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25d366;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s, transform .12s;
    box-shadow: 0 2px 8px rgba(37,211,102,.35);
}

    .wa-send:hover {
        background: #1ebe59;
    }

    .wa-send:active {
        transform: scale(.93);
    }

    .wa-send i {
        font-size: 18px;
        color: #fff;
    }

/* FAB button */
#wa-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,.45);
    transition: background .15s, transform .15s, box-shadow .15s;
    position: relative;
}

    #wa-fab:hover {
        background: #1ebe59;
        transform: scale(1.07);
        box-shadow: 0 6px 22px rgba(37,211,102,.5);
    }

    #wa-fab:active {
        transform: scale(.95);
    }

    #wa-fab .fab-icon-wa,
    #wa-fab .fab-icon-x {
        transition: opacity .2s, transform .2s;
        position: absolute;
    }

    #wa-fab .fab-icon-wa {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }

    #wa-fab .fab-icon-x {
        opacity: 0;
        transform: rotate(-90deg) scale(.6);
    }

    #wa-fab.open .fab-icon-wa {
        opacity: 0;
        transform: rotate(90deg) scale(.6);
    }

    #wa-fab.open .fab-icon-x {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }

/* Tooltip de bienvenida */
#wa-tooltip {
    position: absolute;
    right: 64px;
    bottom: 50%;
    transform: translateY(50%);
    background: #fff;
    color: #1e293b;
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.14);
    white-space: nowrap;
    pointer-events: none;
    opacity: 1;
    transition: opacity .3s;
}

    #wa-tooltip::after {
        content: '';
        position: absolute;
        right: -6px;
        top: 50%;
        transform: translateY(-50%);
        border-width: 5px 0 5px 6px;
        border-style: solid;
        border-color: transparent transparent transparent #fff;
    }

    #wa-tooltip.hidden {
        opacity: 0;
    }

/* fin wasap*/

.vha-100 {
    height: calc(100vh - var(--height-header))
}