/* ============================================================
   Caballo Campana - Hoja de estilos
   Tema: hacienda ecuestre / naturaleza / tradición
   Paleta: verde bosque, crema, café, dorado, blanco
   ============================================================ */

:root {
    /* Paleta hacienda ecuestre */
    --forest: #2d4a2b;
    --forest-light: #4a6b4a;
    --forest-dark: #1a2e1a;
    --forest-soft: #3d5e3b;
    --cream: #f7f1e3;
    --cream-dark: #ece3d0;
    --cream-card: #fbf7ec;
    --brown: #6b4423;
    --brown-dark: #3e2723;
    --brown-light: #8b6b4a;
    --gold: #c9a227;
    --gold-light: #e0c25a;
    --gold-dark: #a88a1c;
    --white: #ffffff;

    /* Alias semánticos */
    --accent: var(--gold);
    --primary: var(--forest);
    --primary-dark: var(--forest-dark);
    --text: #2c2c2c;
    --text-soft: #6b6b6b;
    --bg: var(--cream);
    --border: #e0d6c6;
    --shadow: 0 4px 20px rgba(45, 74, 43, 0.10);
    --shadow-lg: 0 12px 40px rgba(45, 74, 43, 0.18);
    --shadow-warm: 0 8px 30px rgba(107, 68, 35, 0.20);
    --radius: 14px;
    --radius-sm: 8px;
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', system-ui, sans-serif;
    --maxw: 1180px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Botones ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-lg { padding: 17px 40px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: var(--forest);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(45, 74, 43, 0.30);
}
.btn-primary:hover {
    background: var(--forest-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 74, 43, 0.40);
}

.btn-gold {
    background: var(--gold);
    color: var(--brown-dark);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.35);
}
.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.45);
}

.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--forest-dark); }

.btn-outline-dark {
    background: transparent;
    border-color: var(--forest);
    color: var(--forest);
}
.btn-outline-dark:hover { background: var(--forest); color: var(--white); }

.btn-light {
    background: var(--white);
    color: var(--forest-dark);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline-light {
    background: transparent;
    border-color: rgba(255,255,255,0.7);
    color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }

.btn-whatsapp {
    background: #25d366;
    color: #fff;
}
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); }

/* ===== Header / Nav ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: rgba(247, 241, 227, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header.scrolled {
    padding: 8px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}
.header.scrolled .logo-img { height: 52px; }

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--forest-dark);
}
.logo-icon { width: 34px; height: 34px; color: var(--gold); }
.logo-img { height: 64px; width: auto; display: block; object-fit: contain; border-radius: 6px; }
.logo-text { display: none; }
.logo-text strong { color: var(--gold-dark); font-weight: 800; }

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
}
.nav a {
    color: var(--forest-dark);
    font-size: 0.92rem;
    font-weight: 400;
    position: relative;
    transition: var(--transition);
}
.nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: var(--transition);
}
.nav a:not(.btn):hover { color: var(--forest); }
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 26px; height: 3px;
    background: var(--forest-dark);
    border-radius: 3px;
    transition: var(--transition);
}
.nav-close {
    display: none;
    background: none;
    border: none;
    color: var(--forest-dark);
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 16px; right: 20px;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(26,46,26,0.72) 0%, rgba(45,74,43,0.45) 50%, rgba(107,68,35,0.35) 100%),
        url('../img/web/hero.jpg') center/cover no-repeat;
    color: var(--white);
    padding-top: 80px;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(201,162,39,0.18) 0%, transparent 45%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(201,162,39,0.5);
    backdrop-filter: blur(8px);
    color: var(--gold-light);
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}
.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
}
.hero h1 span { color: var(--gold-light); font-style: italic; }
.hero-tagline {
    font-family: var(--font-head);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--gold-light);
    font-style: italic;
    margin-bottom: 24px;
    border-left: 3px solid var(--gold);
    padding-left: 16px;
}
.hero p {
    font-size: 1.12rem;
    max-width: 560px;
    margin-bottom: 36px;
    opacity: 0.95;
    font-weight: 300;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat strong {
    display: block;
    font-family: var(--font-head);
    font-size: 2.4rem;
    color: var(--gold);
    line-height: 1;
}
.stat span { font-size: 0.85rem; opacity: 0.85; }

/* ===== Secciones generales ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--white); }
.section-forest { background: var(--forest-dark); color: var(--white); }
.section-cream { background: var(--cream-dark); }

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}
.eyebrow {
    display: inline-block;
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.eyebrow-light { color: var(--gold-light); }
.section-head h2 {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--forest-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}
.section-forest .section-head h2 { color: var(--white); }
.section-head p { color: var(--text-soft); font-size: 1.05rem; }
.section-forest .section-head p { color: rgba(255,255,255,0.8); }

/* ===== Servicios (prioridad comercial) ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 28px;
}
.service-card {
    background: var(--cream-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 30px;
    transition: var(--transition);
    position: relative;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}
.service-card.featured {
    background: linear-gradient(160deg, var(--forest), var(--forest-dark));
    color: var(--white);
    border-color: var(--forest-dark);
    box-shadow: var(--shadow-warm);
}
.service-card.featured h3 { color: var(--gold-light); }
.service-card.featured .price { color: var(--gold-light); }
.service-card.featured p { color: rgba(255,255,255,0.88); }
.service-card.featured .link-arrow { color: var(--gold-light); }
.service-card.featured:hover { border-color: var(--gold); }

.service-priority {
    position: absolute;
    top: 18px; right: 18px;
    background: var(--gold);
    color: var(--brown-dark);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.service-icon {
    width: 60px; height: 60px;
    background: rgba(201,162,39,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: var(--gold-dark);
}
.service-card.featured .service-icon { background: rgba(255,255,255,0.12); color: var(--gold-light); }
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--forest-dark);
}
.service-card p { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 24px; }
.service-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.service-card.featured .service-foot { border-top-color: rgba(255,255,255,0.15); }
.price { font-weight: 700; font-size: 1.1rem; color: var(--gold-dark); }
.link-arrow { color: var(--gold-dark); font-weight: 600; font-size: 0.9rem; transition: var(--transition); }
.link-arrow:hover { letter-spacing: 0.5px; }

/* ===== Banner experiencia (tu primera vez) ===== */
.first-time {
    background: linear-gradient(135deg, var(--cream-dark), var(--cream));
    border-radius: var(--radius);
    padding: 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    border: 1px solid var(--border);
}
.first-time-text h2 {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--forest-dark);
    margin-bottom: 18px;
}
.first-time-text p { color: var(--text-soft); margin-bottom: 16px; }
.first-time-list { list-style: none; margin: 20px 0 28px; }
.first-time-list li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 14px;
    color: var(--text);
    font-size: 0.95rem;
}
.first-time-list li::before {
    content: '🐴';
    position: absolute;
    left: 0; top: 0;
    font-size: 1.1rem;
}
.first-time-visual {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 320px;
}

/* ===== Tarifas claras ===== */
.tarifas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.tarifa-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
}
.tarifa-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.tarifa-card.popular { border-color: var(--forest); background: var(--cream-card); }
.tarifa-tag {
    display: inline-block;
    background: var(--forest);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tarifa-title { font-family: var(--font-head); font-size: 1.2rem; color: var(--forest-dark); margin-bottom: 8px; }
.tarifa-price {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-dark);
    line-height: 1;
    margin-bottom: 6px;
}
.tarifa-price small { font-size: 0.9rem; font-weight: 500; color: var(--text-soft); }
.tarifa-desc { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 16px; }
.tarifa-features { list-style: none; text-align: left; margin-bottom: 20px; }
.tarifa-features li {
    position: relative;
    padding-left: 24px;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 8px;
}
.tarifa-features li::before {
    content: '✓';
    position: absolute; left: 0;
    color: var(--forest);
    font-weight: 700;
}

/* ===== Info banners (no necesitas experiencia / seguridad / qué llevar) ===== */
.info-banners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.info-banner {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}
.info-banner:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.info-banner-icon {
    width: 48px; height: 48px;
    background: rgba(45,74,43,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.info-banner h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--forest-dark); margin-bottom: 10px; }
.info-banner p { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 12px; }
.info-banner ul { list-style: none; }
.info-banner ul li {
    position: relative;
    padding-left: 22px;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 8px;
}
.info-banner ul li::before {
    content: '✓';
    position: absolute; left: 0;
    color: var(--forest);
    font-weight: 700;
    font-size: 0.8rem;
}

/* ===== Pasos (cómo reservar) ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}
.step { text-align: center; }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    background: var(--forest);
    color: var(--gold-light);
    border-radius: 50%;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(45,74,43,0.3);
}
.step h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 8px; color: var(--forest-dark); }
.section-forest .step h3 { color: var(--white); }
.step p { color: var(--text-soft); font-size: 0.92rem; }
.section-forest .step p { color: rgba(255,255,255,0.75); }

/* ===== Galería (grilla uniforme 3 columnas) ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    position: relative;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 3px solid transparent;
    background: linear-gradient(45deg, var(--gold), var(--forest));
    background-clip: padding-box border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; }

/* Clases de encuadre */
.gallery-item.position-center img { object-position: center center; }
.gallery-item.position-top img { object-position: center top; }
.gallery-item.position-bottom img { object-position: center bottom; }
.gallery-item.position-horse img { object-position: center 60%; }
.gallery-item.position-down img { object-position: center 70%; }
.gallery-item.position-left img { object-position: left center; }
.gallery-item.position-right img { object-position: right center; }

/* ===== Placeholder (para reemplazar por fotos reales) ===== */
.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background:
        linear-gradient(135deg, var(--forest-light), var(--forest-dark)),
        repeating-linear-gradient(45deg, transparent 0 20px, rgba(255,255,255,0.04) 20px 21px);
    background-blend-mode: overlay;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    position: relative;
}
.placeholder::before {
    content: 'Caballo Campana';
    position: absolute;
    font-family: var(--font-head);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--gold-light);
    opacity: 0.7;
    top: 14px;
}
.placeholder::after {
    content: attr(data-label);
    background: rgba(26,46,26,0.55);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
}
.placeholder-tall { min-height: 420px; }
.placeholder-wide { min-height: 340px; }
.placeholder-map { min-height: 380px; }

/* ===== Nosotros ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
}
.about-grid-reverse {
    grid-template-columns: 1.1fr 1fr;
}
.about-img .placeholder { border-radius: var(--radius); }
.about-text h2 {
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    color: var(--forest-dark);
    margin: 10px 0 20px;
    line-height: 1.25;
}
.about-text p { color: var(--text-soft); margin-bottom: 18px; }
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0 32px;
}
.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--text);
}
.value-icon {
    width: 38px; height: 38px;
    background: rgba(45,74,43,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.about-list { list-style: none; margin: 24px 0 32px; }
.about-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    color: var(--text);
    font-size: 0.95rem;
}
.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0; top: 0;
    width: 22px; height: 22px;
    background: var(--forest);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ===== Testimonios ===== */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.testimonial {
    background: var(--cream-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}
.testimonial:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial blockquote {
    font-size: 1rem;
    color: var(--text);
    font-style: italic;
    margin-bottom: 22px;
    line-height: 1.7;
}
.testimonial figcaption { display: flex; align-items: center; gap: 14px; }
.avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}
.testimonial figcaption span:last-child { display: flex; flex-direction: column; }
.testimonial figcaption small { color: var(--text-soft); font-size: 0.82rem; }

/* ===== Instagram feed ===== */
.ig-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    max-width: 720px;
    margin: 0 auto 40px;
}
.ig-feed-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 1;
}
.ig-feed-item .placeholder { min-height: auto; height: 100%; }
.ig-feed-item img { width: 100%; height: 100%; object-fit: cover; }
.ig-feed-item::after {
    content: '📸';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(45,74,43,0.4);
    opacity: 0;
    transition: var(--transition);
}
.ig-feed-item:hover::after { opacity: 1; }

/* ===== CTA Banner ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--forest-dark), var(--forest));
    color: var(--white);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(201,162,39,0.15) 0%, transparent 50%);
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}
.cta-inner h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.cta-inner h2 span { color: var(--gold-light); font-style: italic; }
.cta-inner p { opacity: 0.9; }

/* ===== Contacto ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-icon {
    width: 48px; height: 48px;
    flex-shrink: 0;
    background: rgba(201,162,39,0.12);
    color: var(--gold-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.info-item strong { display: block; color: var(--forest-dark); margin-bottom: 4px; }
.info-item p { color: var(--text-soft); font-size: 0.95rem; }
.info-item a { color: var(--text-soft); transition: var(--transition); }
.info-item a:hover { color: var(--gold-dark); }
.contact-map .placeholder { border-radius: var(--radius); }

/* ===== Footer ===== */
.footer { background: var(--forest-dark); color: rgba(255,255,255,0.75); padding-top: 64px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr;
    gap: 40px;
    padding-bottom: 40px;
}
.logo-light { color: var(--white); margin-bottom: 18px; }
.logo-light .logo-text strong { color: var(--gold-light); }
.footer-desc { font-size: 0.9rem; max-width: 280px; }
.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 18px;
    font-weight: 600;
}
.footer-col a, .footer-col p {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: var(--transition);
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 22px 0;
    text-align: center;
}
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 14px;
}
.footer-social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--gold);
    transform: translateY(-3px);
}
.footer-social svg { width: 20px; height: 20px; fill: var(--white); }

/* ===== Prevención de desbordamiento horizontal ===== */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
img, video, iframe {
    max-width: 100%;
}

/* ===== Page head (páginas internas) ===== */
.page-head {
    background: linear-gradient(135deg, var(--forest-dark), var(--forest));
    color: var(--white);
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-head::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(201,162,39,0.15) 0%, transparent 50%);
}
.page-head .container { position: relative; z-index: 2; }
.page-head h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 10px 0 16px;
}
.page-head p { max-width: 580px; margin: 0 auto; opacity: 0.9; font-weight: 300; }

/* ===== Reservas layout ===== */
.reserve-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.5fr;
    gap: 44px;
    align-items: start;
}
.reserve-info {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.reserve-info h2,
.reserve-form h2 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--forest-dark);
    margin-bottom: 4px;
}
.info-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}
.info-block h3 { font-size: 1.05rem; color: var(--forest-dark); margin-bottom: 14px; }
.info-block p { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 14px; }
.highlight-box {
    background: linear-gradient(160deg, rgba(201,162,39,0.08), rgba(45,74,43,0.06));
    border-color: var(--gold);
}
.check-list { list-style: none; }
.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: var(--text);
}
.check-list li::before {
    content: '✓';
    position: absolute; left: 0; top: 1px;
    color: var(--forest);
    font-weight: 700;
}
.btn-block + .btn-block { margin-top: 10px; }

/* ===== Formulario ===== */
.reserve-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 38px;
    box-shadow: var(--shadow);
}
.form-row { margin-bottom: 20px; }
.form-label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--forest-dark);
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--cream);
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}
textarea.form-control { resize: vertical; }
select.form-control { cursor: pointer; }

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

.form-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.radio-group { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-card {
    flex: 1;
    min-width: 140px;
    position: relative;
    cursor: pointer;
}
.radio-card input { position: absolute; opacity: 0; }
.radio-card span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}
.radio-card input:checked + span {
    border-color: var(--forest);
    background: rgba(45,74,43,0.08);
    color: var(--forest-dark);
}

.form-check-row { display: flex; flex-direction: column; gap: 6px; }
.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-soft);
    cursor: pointer;
}
.checkbox-line input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--forest); }
.checkbox-line a { color: var(--gold-dark); font-weight: 500; }

.form-error {
    display: block;
    color: #c0392b;
    font-size: 0.8rem;
    margin-top: 6px;
    min-height: 1em;
}
.form-control.invalid { border-color: #c0392b; background: rgba(192,57,43,0.04); }

.form-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-soft);
    margin-top: 18px;
}

#submitBtn { margin-top: 8px; }

/* ===== Blog ===== */
.blog-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 56px;
    box-shadow: var(--shadow);
    background: var(--white);
}
.blog-featured .placeholder { border-radius: 0; min-height: 100%; }
.blog-featured-text { padding: 38px; }
.blog-tag {
    display: inline-block;
    background: var(--forest);
    color: var(--gold-light);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.blog-featured-text h2 { font-family: var(--font-head); font-size: 1.7rem; color: var(--forest-dark); margin-bottom: 12px; line-height: 1.25; }
.blog-meta { color: var(--text-soft); font-size: 0.85rem; margin-bottom: 14px; }
.blog-featured-text p { color: var(--text-soft); margin-bottom: 20px; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 28px;
}
.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card .placeholder { min-height: 190px; }
.blog-card-body { padding: 24px; }
.blog-card-body h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--forest-dark); margin-bottom: 8px; line-height: 1.3; }
.blog-card-body p { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 16px; }

.blog-newsletter {
    text-align: center;
    background: linear-gradient(135deg, var(--forest-dark), var(--forest));
    color: var(--white);
    border-radius: var(--radius);
    padding: 48px 32px;
    margin-top: 48px;
}
.blog-newsletter h3 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 10px; }
.blog-newsletter p { opacity: 0.9; margin-bottom: 24px; }
.blog-newsletter .btn { margin: 0 8px 10px; }

/* ===== Caballos en venta ===== */
.horses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.horse-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.horse-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.horse-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    background: var(--forest-dark);
}
.horse-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.horse-card:hover .horse-card-img img { transform: scale(1.06); }
.horse-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--gold);
    color: var(--brown-dark);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.horse-photo-count {
    position: absolute;
    bottom: 14px; right: 14px;
    background: rgba(26,46,26,0.7);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}
.horse-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.horse-card-body h3 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--forest-dark);
    margin-bottom: 8px;
}
.horse-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.horse-tag {
    background: rgba(45,74,43,0.08);
    color: var(--forest);
    font-size: 0.76rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 50px;
}
.horse-desc {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 18px;
    flex: 1;
}
.horse-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    gap: 12px;
}
.horse-price {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gold-dark);
}
.horse-price small { font-size: 0.75rem; color: var(--text-soft); font-weight: 400; display: block; }
.horse-actions { display: flex; gap: 8px; }
.horse-actions .btn { padding: 9px 16px; font-size: 0.82rem; }

/* ===== Lightbox galería ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(26,46,26,0.92);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-content {
    position: relative;
    max-width: 900px;
    width: 100%;
}
.lightbox-img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
    margin: 0 auto;
}
.lightbox-close {
    position: absolute;
    top: -44px; right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.15); }
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.lightbox-prev { left: -64px; }
.lightbox-next { right: -64px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-caption {
    text-align: center;
    color: var(--white);
    font-family: var(--font-head);
    font-size: 1.1rem;
    margin-top: 16px;
}
.lightbox-counter {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Mini-galería dentro de la sección expandible */
.horse-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 14px;
}
.horse-gallery-thumb {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.horse-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.horse-gallery-thumb:hover { border-color: var(--gold); transform: scale(1.05); }

/* ===== Bloques de servicio (imagen + contenido, alternados) ===== */
.service-block {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
}
.service-block:last-child { margin-bottom: 0; }
.service-block-reverse { grid-template-columns: 1.2fr 1fr; }
.service-block-reverse .service-block-img { order: 2; }
.service-block-reverse .service-block-content { order: 1; }
.service-block-img { border-radius: var(--radius); overflow: hidden; min-height: 360px; }
.service-block-img img { width: 100%; height: 100%; object-fit: cover; }
.service-block-img-fixed { aspect-ratio: 4 / 3; min-height: auto; }
.service-block-img-fixed img { object-position: center center; }
.service-block-content h3 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    color: var(--forest-dark);
    margin-bottom: 16px;
}
.service-block-content p {
    color: var(--text-soft);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* Tarifas inline (dentro de paseos) */
.tarifas-inline {
    display: flex;
    gap: 14px;
    margin: 24px 0;
    flex-wrap: wrap;
}
.tarifa-mini {
    flex: 1;
    min-width: 100px;
    background: var(--cream-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    text-align: center;
    transition: var(--transition);
}
.tarifa-mini:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.tarifa-mini-time {
    display: block;
    font-size: 0.82rem;
    color: var(--text-soft);
    margin-bottom: 4px;
}
.tarifa-mini-price {
    display: block;
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold-dark);
}

/* Sub-bloques (antes de venir, cómo reservar) */
.sub-block {
    background: var(--cream-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 22px 24px;
    margin: 20px 0;
}
.sub-block h4 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: var(--forest-dark);
    margin-bottom: 12px;
}
.sub-list {
    list-style: none;
    padding: 0;
}
.sub-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
}
.sub-list li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.2rem;
    top: -2px;
}
.sub-steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.sub-steps li {
    counter-increment: step;
    position: relative;
    padding-left: 38px;
    font-size: 0.9rem;
    color: var(--text);
    flex: 1;
    min-width: 140px;
}
.sub-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: -4px;
    width: 28px; height: 28px;
    background: var(--forest);
    color: var(--gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Contacto: redes sociales inline */
.contact-social {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}
.social-icons { display: flex; gap: 12px; }
.social-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(45,74,43,0.08);
    color: var(--forest);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.social-icon:hover { background: var(--forest); color: var(--white); transform: translateY(-3px); }
.social-icon svg { width: 22px; height: 22px; }

/* ===== Galería simple de caballos ===== */
.caballos-galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.caballo-item {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.gallery-item { cursor: pointer; }
.caballo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.caballo-item:hover img { transform: scale(1.06); }
.caballo-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-sm);
    border: 3px solid transparent;
    background: linear-gradient(45deg, var(--gold), var(--forest));
    background-clip: padding-box border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}
.caballo-item:hover::after { opacity: 1; }

/* ===== Lightbox visor de imágenes ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(26,46,26,0.92);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-img {
    max-width: 90vw;
    max-height: 82vh;
    border-radius: var(--radius-sm);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.4rem;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
}
.lightbox-close:hover { opacity: 0.7; }
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2001;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
@media (max-width: 520px) {
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* ===== Mapa de Google (iframe) ===== */
.contact-map iframe {
    width: 100%;
    min-height: 380px;
    border: 0;
    border-radius: var(--radius);
    display: block;
    filter: saturate(0.9);
}

/* ===== Galería: object-position para encuadres ===== */
.gallery-item.position-center img { object-position: center center; }
.gallery-item.position-top img { object-position: center top; }
.gallery-item.position-bottom img { object-position: center bottom; }
.gallery-item.position-horse img { object-position: center 65%; }

/* ===== Tarjetas interactivas de paseos ===== */
.horarios-text {
    background: rgba(45,74,43,0.06);
    border-left: 3px solid var(--forest);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    font-size: 0.92rem;
}
.tarifas-interactivas {
    display: flex;
    gap: 14px;
    margin: 24px 0;
    flex-wrap: wrap;
}
.tarifa-option {
    flex: 1;
    min-width: 120px;
    background: var(--cream-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-body);
}
.tarifa-option:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.tarifa-option.active {
    border-color: var(--forest);
    background: var(--forest);
    color: var(--white);
}
.tarifa-option.active .tarifa-option-price { color: var(--gold-light); }
.tarifa-option.active .tarifa-option-name { color: rgba(255,255,255,0.9); }
.tarifa-option-time { font-size: 0.82rem; color: var(--text-soft); }
.tarifa-option.active .tarifa-option-time { color: rgba(255,255,255,0.8); }
.tarifa-option-price {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold-dark);
}
.tarifa-option-name { font-size: 0.78rem; font-weight: 500; color: var(--text); }

/* Detalle del paseo seleccionado */
.ride-detail {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 22px 24px;
    margin: 16px 0 24px;
}
.ride-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.ride-detail-header h4 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    color: var(--forest-dark);
}
.ride-level {
    background: rgba(201,162,39,0.12);
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}
.ride-detail p { color: var(--text-soft); margin-bottom: 16px; font-size: 0.92rem; }

/* Sub-steps con 4 pasos */
.sub-steps-4 li { min-width: 120px; }

/* Sub-list en 2 columnas */
.sub-list-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 20px;
}

/* ===== Paneles desplegables (clases / potreraje) ===== */
.service-info-panel {
    margin: -40px 0 80px;
    animation: panelSlide 0.35s ease;
}
@keyframes panelSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.panel-inner {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}
.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.panel-head h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--forest-dark);
}
.panel-close {
    background: rgba(45,74,43,0.08);
    border: none;
    color: var(--forest-dark);
    font-size: 1.6rem;
    cursor: pointer;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}
.panel-close:hover { background: var(--forest); color: var(--white); }
.panel-intro {
    color: var(--text-soft);
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 0.95rem;
}
.panel-section { margin-bottom: 24px; }
.panel-section h4 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    color: var(--forest-dark);
    margin-bottom: 14px;
}
.panel-section h5 {
    font-size: 0.95rem;
    color: var(--forest);
    margin-bottom: 8px;
    font-weight: 600;
}
.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.panel-card {
    background: var(--cream-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
}
.panel-card h4, .panel-card h5 { margin-bottom: 10px; }
.panel-card p { color: var(--text-soft); font-size: 0.9rem; }
.panel-card .sub-list { margin: 0; }

/* Pesebrera destacada */
.pesebrera-highlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--forest), var(--forest-dark));
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 20px 28px;
}
.pesebrera-label { font-family: var(--font-head); font-size: 1.3rem; }
.pesebrera-price { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--gold-light); }

/* Planes mensuales (grid de tarjetas) */
.planes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.plan-card {
    background: var(--cream-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition);
}
.plan-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.plan-freq { font-size: 0.82rem; color: var(--text); font-weight: 500; }
.plan-total { font-size: 0.76rem; color: var(--text-soft); }
.plan-price {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold-dark);
    margin-top: 4px;
}

/* Nota del panel */
.panel-note {
    background: rgba(201,162,39,0.08);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 24px;
}
.panel-note p { color: var(--text); font-size: 0.9rem; margin: 0; }

/* Botón toggle activo */
.info-toggle.active {
    background: var(--forest);
    color: var(--white);
    border-color: var(--forest);
}

/* ===== Animaciones scroll ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .about-img .placeholder { min-height: 300px; }
    .contact-grid { grid-template-columns: 1fr; }
    .reserve-layout { grid-template-columns: 1fr; }
    .reserve-info { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured .placeholder { min-height: 240px; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .first-time { grid-template-columns: 1fr; padding: 36px; }
    .first-time-visual { min-height: 240px; }
    .values-grid { grid-template-columns: 1fr; }
    .service-block, .service-block-reverse { grid-template-columns: 1fr; gap: 28px; }
    .service-block-reverse .service-block-img { order: 0; }
    .service-block-reverse .service-block-content { order: 0; }
    .service-block-img:not(.service-block-img-fixed) { min-height: 260px; }
    .service-block { margin-bottom: 56px; }
    .caballos-galeria { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Ocultar menú hamburguesa en móvil - solo logo centrado */
    .nav, .nav-toggle, .nav-close { display: none !important; }
    .nav-container { justify-content: center; }
    .logo { margin: 0 auto; }

    .logo-img { height: 52px; max-width: 180px; object-fit: contain; }
    .header { overflow: hidden; }
    .header.scrolled .logo-img { height: 46px; }

    .hero {
        min-height: 90vh;
        background:
            linear-gradient(135deg, rgba(26,46,26,0.75) 0%, rgba(45,74,43,0.5) 100%),
            url('../img/web/hero-mobile.jpg') center/cover no-repeat;
    }
    .hero-stats { gap: 28px; }
    .stat strong { font-size: 1.8rem; }
    .cta-inner { flex-direction: column; text-align: center; }
    .section { padding: 64px 0; }
    .reserve-form { padding: 26px; }
    .form-grid-2 { grid-template-columns: 1fr; gap: 0; }
    .radio-group { flex-direction: column; }
    .radio-card { min-width: 0; }
    .ig-feed { grid-template-columns: repeat(3, 1fr); }

    /* Contenedores sin desbordamiento */
    .container, .service-block, .service-block-content {
        width: 100%; max-width: 100%; min-width: 0; overflow: hidden;
    }

    /* Tarjetas de paseos en filas compactas */
    .tarifas-interactivas {
        display: grid; grid-template-columns: 1fr; gap: 10px;
        width: 100%; max-width: 100%; overflow: hidden;
    }
    .tarifa-option {
        width: 100%; max-width: 100%; min-width: 0;
        display: grid; grid-template-columns: 88px 64px 1fr;
        align-items: center; gap: 10px;
        padding: 14px 16px; text-align: left; overflow: hidden;
    }
    .tarifa-option-time, .tarifa-option-price, .tarifa-option-name {
        margin: 0; min-width: 0; white-space: normal; line-height: 1.2;
    }
    .tarifa-option-price { font-size: 1.55rem; line-height: 1; }
    .tarifa-option-name { font-size: 0.95rem; overflow-wrap: normal; }

    /* Detalle del paseo */
    .ride-detail { width: 100%; max-width: 100%; min-width: 0; padding: 20px; overflow: hidden; }
    .ride-detail-header { display: block; }
    .ride-level { display: inline-block; margin-top: 8px; max-width: 100%; white-space: normal; }
    #rideDesc { width: 100%; max-width: 100%; white-space: normal; overflow-wrap: normal; word-break: normal; }
    #rideWaLink {
        width: 100%; max-width: 100%; min-width: 0;
        display: flex; justify-content: center; align-items: center;
        padding: 16px 18px; text-align: center;
        white-space: normal; overflow-wrap: normal; word-break: normal; line-height: 1.25;
    }

    /* Botones largos de paneles */
    .service-info-panel .btn, .panel-inner .btn, .panel-inner a.btn, .service-info-panel a.btn, .ride-detail .btn {
        width: 100%; max-width: 100%; min-width: 0;
        display: flex; justify-content: center; align-items: center;
        padding: 15px 18px; text-align: center;
        white-space: normal; overflow-wrap: normal; word-break: normal;
        line-height: 1.25; font-size: 1rem; border-radius: 999px;
    }

    /* Planes mensuales en filas compactas */
    .planes-grid { grid-template-columns: 1fr !important; gap: 8px; }
    .plan-card {
        display: grid; grid-template-columns: 1fr auto; align-items: center;
        gap: 8px; padding: 12px 16px;
    }
    .plan-card .plan-freq { grid-column: 1; }
    .plan-card .plan-total { grid-column: 1; font-size: 0.78rem; }
    .plan-card .plan-price { grid-column: 2; grid-row: 1 / span 2; font-size: 1.3rem; }

    /* Pesebrera en una sola fila */
    .pesebrera-highlight {
        display: flex; justify-content: space-between; align-items: center;
        gap: 12px; padding: 16px;
    }
    .pesebrera-label, .pesebrera-price { white-space: normal; line-height: 1.2; }

    /* Paneles sin desbordamiento */
    .service-info-panel, .panel-inner, .panel-grid, .planes-grid,
    .panel-card, .plan-card, .panel-note, .pesebrera-highlight {
        width: 100%; max-width: 100%; min-width: 0; overflow: hidden;
    }
    .panel-inner { padding: 20px; }
    .panel-grid, .planes-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

    /* Ocultar barra y botón flotante si existieran */
    .mobile-bar, .wa-float { display: none !important; }
    body { padding-bottom: 0 !important; }
}

@media (max-width: 520px) {
    .container { padding: 0 18px; }
    .logo-img { height: 42px; }
    .header.scrolled .logo-img { height: 38px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .gallery { grid-template-columns: 1fr; }
    .blog-newsletter .btn { width: 100%; margin: 0 0 10px; }
    .ig-feed { grid-template-columns: repeat(2, 1fr); }
    .first-time { padding: 24px; }
    .tarifas-grid { grid-template-columns: 1fr; }
    .caballos-galeria { grid-template-columns: 1fr; }
    .sub-list-2col { grid-template-columns: 1fr; }
    .pesebrera-highlight { flex-direction: column; gap: 8px; text-align: center; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.4rem; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .horse-gallery { grid-template-columns: repeat(4, 1fr); }
}
