/* ═══════════════════════════════════════════════════
   Yeguada Core v3.0.0 — Doble Click
   https://doble-click.es
═══════════════════════════════════════════════════ */
:root {
    --yeg-navy:      #1B3A6B;
    --yeg-navy-dark: #0f2347;
    --yeg-gold:      #C8A96E;
    --yeg-black:     #111;
    --yeg-gray:      #555;
    --yeg-border:    #ddd;
    --yeg-light:     #f8f7f5;
    --cinzel:        'Cinzel', Georgia, serif;
    --mont:          'Montserrat', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--mont); color: var(--yeg-black); background: #fff; }

/* ── PAGE BANNER ─────────────────────────────── */
.yeg-banner {
    background: var(--yeg-navy-dark);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.yeg-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .35;
}
.yeg-banner-title {
    position: relative;
    font-family: var(--cinzel);
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-align: center;
    padding: 20px;
}
.yeg-banner-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 1px;
    background: var(--yeg-gold);
    margin: 12px auto 0;
}

/* ── WRAP ────────────────────────────────────── */
.yeg-wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 60px 32px;
}
.yeg-wrap-sm { max-width: 1060px; margin: 0 auto; padding: 40px 32px; }

/* ── BREADCRUMBS ─────────────────────────────── */
.yeg-breadcrumbs {
    font-family: var(--cinzel);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--yeg-gray);
    margin-bottom: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.yeg-breadcrumbs a { color: var(--yeg-navy); text-decoration: none; }
.yeg-breadcrumbs a:hover { color: var(--yeg-gold); }

/* ── GRID CABALLOS ───────────────────────────── */
.yeg-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--yeg-border);
    border-left: 1px solid var(--yeg-border);
}
.yeg-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .yeg-grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .yeg-grid, .yeg-grid-3 { grid-template-columns: 1fr; } }

.yeg-card {
    border-right: 1px solid var(--yeg-border);
    border-bottom: 1px solid var(--yeg-border);
    cursor: pointer;
    overflow: hidden;
    transition: background .2s;
}
.yeg-card:hover { background: var(--yeg-light); }

.yeg-card-img {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--yeg-navy-dark);
    position: relative;
}
.yeg-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.yeg-card:hover .yeg-card-img img { transform: scale(1.04); }
.yeg-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,35,71,.5) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .3s;
}
.yeg-card:hover .yeg-card-img-overlay { opacity: 1; }
.yeg-card-no-img {
    width: 100%;
    aspect-ratio: 3/2;
    background: var(--yeg-navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .25;
    font-size: 60px;
}

.yeg-card-body { padding: 20px 22px 26px; }
.yeg-card-name {
    font-family: var(--cinzel);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--yeg-black);
    margin-bottom: 5px;
    transition: color .2s;
}
.yeg-card:hover .yeg-card-name { color: var(--yeg-navy); }
.yeg-card-meta {
    font-family: var(--mont);
    font-size: 12px;
    font-weight: 300;
    color: var(--yeg-gray);
    margin-bottom: 12px;
}
.yeg-card-sep {
    width: 24px;
    height: 1px;
    background: var(--yeg-border);
    margin-bottom: 12px;
    transition: width .25s, background .25s;
}
.yeg-card:hover .yeg-card-sep { width: 44px; background: var(--yeg-navy); }
.yeg-card-link {
    font-family: var(--cinzel);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--yeg-navy);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: gap .2s;
}
.yeg-card:hover .yeg-card-link { gap: 12px; }

/* Precio en tarjeta de venta */
.yeg-card-precio {
    font-family: var(--cinzel);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--yeg-navy);
    margin-bottom: 8px;
}
.yeg-card-precio-consultar {
    font-family: var(--mont);
    font-size: 12.5px;
    font-style: italic;
    color: var(--yeg-gray);
    margin-bottom: 8px;
}

/* Estado badge */
.yeg-estado {
    display: inline-block;
    font-family: var(--cinzel);
    font-size: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid;
    margin-bottom: 10px;
}
.yeg-estado-disponible { color: #186a3b; border-color: #a9dfbf; background: #f0faf4; }
.yeg-estado-reservado  { color: #7d6608; border-color: #f0d060; background: #fef9e7; }
.yeg-estado-vendido    { color: #922b21; border-color: #f5b7b1; background: #fdf0f0; }

/* Filtros */
.yeg-filtros {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--yeg-border);
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.yeg-filtro-btn {
    font-family: var(--cinzel);
    font-size: 9.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 13px 20px;
    cursor: pointer;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--yeg-gray);
    transition: color .2s, border-color .2s;
}
.yeg-filtro-btn:hover, .yeg-filtro-btn.active {
    color: var(--yeg-navy);
    border-bottom-color: var(--yeg-navy);
}

/* ── FICHA INDIVIDUAL ────────────────────────── */
.yeg-single { max-width: 1060px; margin: 0 auto; padding: 48px 32px 70px; }

.yeg-single-main-img {
    width: 100%;
    aspect-ratio: 16/7;
    overflow: hidden;
    background: var(--yeg-navy-dark);
    position: relative;
    cursor: pointer;
}
.yeg-single-main-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.yeg-single-main-img:hover img { transform: scale(1.02); }
.yeg-single-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(10,25,50,.85) 0%, transparent 100%);
    padding: 40px 40px 22px;
}
.yeg-single-caption-title {
    font-family: var(--cinzel);
    font-size: 1.7rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
}
.yeg-single-caption-title::after {
    content: '';
    display: block;
    width: 38px;
    height: 1px;
    background: var(--yeg-gold);
    margin-top: 10px;
}

/* Thumbnails */
.yeg-thumbs {
    display: flex;
    gap: 3px;
    margin-bottom: 50px;
}
.yeg-thumb {
    flex: 1;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    opacity: .5;
    transition: opacity .25s, outline .25s;
    background: var(--yeg-navy-dark);
}
.yeg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yeg-thumb:hover, .yeg-thumb.active { opacity: 1; outline: 2px solid var(--yeg-navy); outline-offset: -2px; }

/* Dos columnas ficha */
.yeg-single-cols {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: start;
}
@media (max-width: 768px) { .yeg-single-cols { grid-template-columns: 1fr; gap: 36px; } }

.yeg-single-h1 {
    font-family: var(--cinzel);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--yeg-black);
    margin: 0 0 8px;
}
.yeg-single-excerpt {
    font-family: var(--mont);
    font-size: .85rem;
    font-weight: 300;
    font-style: italic;
    color: var(--yeg-gray);
    line-height: 1.9;
    margin-bottom: 26px;
}
.yeg-ficha-table { width: 100%; border-collapse: collapse; margin-bottom: 26px; }
.yeg-ficha-table tr { border-bottom: 1px solid #ebebeb; }
.yeg-ficha-table td { padding: 9px 0; font-family: var(--mont); font-size: 13px; vertical-align: top; }
.yeg-ficha-table td:first-child {
    font-family: var(--cinzel);
    font-size: 8.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--yeg-gray);
    width: 40%;
    padding-top: 11px;
    font-weight: 600;
}
.yeg-logros-block { border-top: 1px solid var(--yeg-border); padding-top: 20px; margin-bottom: 26px; }
.yeg-logros-label {
    font-family: var(--cinzel);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--yeg-gray);
    display: block;
    margin-bottom: 8px;
}
.yeg-logros-text {
    font-family: var(--mont);
    font-size: 12.5px;
    font-weight: 300;
    font-style: italic;
    color: var(--yeg-black);
    line-height: 1.9;
    white-space: pre-line;
}

/* Precio en ficha */
.yeg-precio { font-family: var(--cinzel); font-size: 2rem; font-weight: 700; color: var(--yeg-navy); margin-bottom: 14px; }
.yeg-precio-consultar { font-family: var(--mont); font-size: .95rem; font-style: italic; color: var(--yeg-gray); margin-bottom: 14px; }

/* Botones */
.yeg-btn {
    display: inline-block;
    font-family: var(--cinzel);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 13px 26px;
    text-decoration: none;
    transition: background .25s, border-color .25s, color .25s;
    border: 1.5px solid transparent;
    text-align: center;
    cursor: pointer;
}
.yeg-btn-navy { background: var(--yeg-navy); color: #fff; border-color: var(--yeg-navy); }
.yeg-btn-navy:hover { background: var(--yeg-navy-dark); border-color: var(--yeg-navy-dark); color: #fff; }
.yeg-btn-wa { background: #25d366; color: #fff; border-color: #25d366; }
.yeg-btn-wa:hover { background: #1da851; color: #fff; }
.yeg-btn-outline { background: transparent; color: var(--yeg-navy); border-color: var(--yeg-navy); }
.yeg-btn-outline:hover { background: var(--yeg-navy); color: #fff; }
.yeg-btn-full { display: block; width: 100%; }
.yeg-cta-col { display: flex; flex-direction: column; gap: 10px; }
.yeg-cta-note {
    font-family: var(--mont);
    font-size: 11.5px;
    font-weight: 300;
    font-style: italic;
    color: #888;
    line-height: 1.8;
    margin-top: 6px;
}

/* Back link */
.yeg-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--cinzel);
    font-size: 9.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--yeg-gray);
    text-decoration: none;
    margin-top: 16px;
    transition: color .2s;
}
.yeg-back:hover { color: var(--yeg-navy); }

/* Grid de fotos en ficha */
.yeg-foto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-top: 50px;
}
.yeg-foto-cell {
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    background: var(--yeg-navy-dark);
}
.yeg-foto-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.yeg-foto-cell:hover img { transform: scale(1.05); }
.yeg-foto-cell:first-child { grid-column: span 2; aspect-ratio: 8/4.5; }
@media (max-width: 600px) { .yeg-foto-grid { grid-template-columns: 1fr 1fr; } .yeg-foto-cell:first-child { grid-column: span 2; } }

/* Video */
.yeg-video { position: relative; padding-top: 56.25%; margin: 40px 0; background: var(--yeg-navy-dark); }
.yeg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Lightbox */
.yeg-lb {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.yeg-lb.open { display: flex; }
.yeg-lb img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.yeg-lb-close { position: absolute; top: 18px; right: 24px; background: none; border: none; color: #fff; font-size: 32px; cursor: pointer; opacity: .7; }
.yeg-lb-close:hover { opacity: 1; }
.yeg-lb-prev, .yeg-lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 26px; width: 48px; height: 48px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.yeg-lb-prev:hover, .yeg-lb-next:hover { background: rgba(255,255,255,.25); }
.yeg-lb-prev { left: 18px; }
.yeg-lb-next { right: 18px; }

/* ── SECTION HEADER ──────────────────────────── */
.yeg-sec-head { text-align: center; margin-bottom: 50px; }
.yeg-sec-head-line { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 14px; }
.yeg-sec-head-line::before, .yeg-sec-head-line::after { content: ''; flex: 1; max-width: 80px; height: 1px; background: var(--yeg-border); }
.yeg-sec-title { font-family: var(--cinzel); font-size: 1.3rem; font-weight: 600; letter-spacing: 5px; text-transform: uppercase; color: var(--yeg-black); }
.yeg-sec-desc { font-family: var(--mont); font-size: .85rem; font-weight: 300; font-style: italic; color: var(--yeg-gray); line-height: 1.9; max-width: 520px; margin: 0 auto; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
    .yeg-wrap, .yeg-wrap-sm, .yeg-single { padding: 36px 20px; }
    .yeg-single-main-img { aspect-ratio: 4/3; }
    .yeg-single-caption-title { font-size: 1.2rem; letter-spacing: 2px; }
    .yeg-single-caption { padding: 20px 20px 16px; }
    .yeg-thumbs { gap: 2px; }
    .yeg-banner-title { font-size: 1.4rem; letter-spacing: 3px; }
}
