/*
Theme Name: Yogagenda
Theme URI: https://nuevo.yogagenda.eu
Description: Tema hijo de GeneratePress para Yogagenda. Solo presentación (pinta los datos del plugin yg-core). No registra CPTs ni campos.
Author: Yogagenda
Template: generatepress
Version: 0.1.0
Text Domain: yogagenda
*/

/* ==========================================================================
   Identidad visual Yogagenda — variables
   ========================================================================== */
:root {
    --yg-bg: #faf8f3;          /* crema de fondo */
    --yg-primary: #7a9b5e;     /* verde salvia */
    --yg-primary-dark: #6a8a50;
    --yg-title: #2e3b2b;       /* verde muy oscuro (títulos) */
    --yg-text: #6a6d61;        /* cuerpo */
    --yg-card: #ffffff;        /* tarjetas */
    --yg-border: #ece7dc;      /* borde tarjetas */
    --yg-amber: #e8a23d;       /* acento ámbar (ofertas) */
    --yg-blue: #5a8a9a;        /* acento azul apagado */
    --yg-mauve: #8a6a9a;       /* acento malva */

    --yg-radius: 14px;
    --yg-radius-sm: 10px;
    --yg-shadow: 0 4px 20px rgba(46, 59, 43, 0.06);
    --yg-shadow-sm: 0 2px 10px rgba(46, 59, 43, 0.05);

    --yg-font-title: "Fraunces", Georgia, "Times New Roman", serif;
    --yg-font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --yg-gap: 1.5rem;
    --yg-gap-lg: 2.75rem;
    --yg-maxw: 1140px;
}

/* ==========================================================================
   Base
   ========================================================================== */
body {
    background-color: var(--yg-bg);
    color: var(--yg-text);
    font-family: var(--yg-font-body);
    line-height: 1.7;
}

.yg-retiro h1,
.yg-retiro h2,
.yg-retiro h3,
.yg-retiro h4 {
    font-family: var(--yg-font-title);
    color: var(--yg-title);
    font-weight: 600;
    line-height: 1.2;
}

.yg-retiro a { color: var(--yg-primary); }

/* Contenedor general */
.yg-retiro {
    max-width: var(--yg-maxw);
    margin: 0 auto;
    padding: 0 1.25rem 4rem;
}

/* ==========================================================================
   Hero / imagen destacada
   ========================================================================== */
.yg-hero {
    position: relative;
    border-radius: var(--yg-radius);
    overflow: hidden;
    margin: 1.5rem 0 2rem;
    box-shadow: var(--yg-shadow);
    background: #e9e4d8;
}

.yg-hero__img {
    display: block;
    width: 100%;
    height: clamp(280px, 46vw, 520px);
    object-fit: cover;
}

.yg-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(46,59,43,0.05) 40%, rgba(46,59,43,0.45) 100%);
    pointer-events: none;
}

.yg-hero__tags {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    z-index: 2;
}

.yg-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.92);
    color: var(--yg-title);
    font-family: var(--yg-font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.yg-badge-oferta {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2;
    background: var(--yg-amber);
    color: #fff;
    font-family: var(--yg-font-body);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    box-shadow: 0 3px 12px rgba(232, 162, 61, 0.4);
}

/* ==========================================================================
   Cabecera de texto
   ========================================================================== */
.yg-header { margin-bottom: 2rem; }

.yg-title {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    margin: 0 0 0.4rem;
}

.yg-subtitle {
    font-family: var(--yg-font-title);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    color: var(--yg-primary);
    margin: 0 0 0.75rem;
}

.yg-location {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.98rem;
    color: var(--yg-text);
}

.yg-location svg { flex: none; }

/* ==========================================================================
   Barra de info (tarjetas pequeñas)
   ========================================================================== */
.yg-infobar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--yg-gap);
    margin-bottom: var(--yg-gap-lg);
}

.yg-infocard {
    background: var(--yg-card);
    border: 0.5px solid var(--yg-border);
    border-radius: var(--yg-radius);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--yg-shadow-sm);
}

.yg-infocard__label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--yg-primary);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.yg-infocard__value {
    font-family: var(--yg-font-title);
    font-size: 1.2rem;
    color: var(--yg-title);
    font-weight: 600;
}

/* ==========================================================================
   Layout principal + sidebar
   ========================================================================== */
.yg-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--yg-gap-lg);
}

@media (min-width: 900px) {
    .yg-layout {
        grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr);
        align-items: start;
    }
}

.yg-section { margin-bottom: var(--yg-gap-lg); }

.yg-section__title {
    font-size: 1.6rem;
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 0.5px solid var(--yg-border);
}

.yg-prose { font-size: 1.02rem; }
.yg-prose p { margin: 0 0 1rem; }
.yg-prose ul { margin: 0 0 1rem 1.2rem; }
.yg-prose li { margin-bottom: 0.4rem; }

/* Programa día a día */
.yg-programa { display: flex; flex-direction: column; gap: 1rem; }

.yg-programa__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.1rem;
    background: var(--yg-card);
    border: 0.5px solid var(--yg-border);
    border-radius: var(--yg-radius);
    padding: 1.1rem 1.3rem;
    box-shadow: var(--yg-shadow-sm);
}

.yg-programa__day {
    flex: none;
    min-width: 58px;
    text-align: center;
    background: var(--yg-bg);
    border-radius: var(--yg-radius-sm);
    padding: 0.5rem 0.6rem;
    font-family: var(--yg-font-title);
    font-weight: 600;
    color: var(--yg-primary);
    font-size: 0.9rem;
    align-self: start;
}

.yg-programa__title {
    font-family: var(--yg-font-title);
    color: var(--yg-title);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}

.yg-programa__desc { margin: 0; font-size: 0.96rem; }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.yg-sidebar { display: flex; flex-direction: column; gap: var(--yg-gap); }

@media (min-width: 900px) {
    .yg-sidebar { position: sticky; top: 2rem; }
}

.yg-card {
    background: var(--yg-card);
    border: 0.5px solid var(--yg-border);
    border-radius: var(--yg-radius);
    padding: 1.6rem;
    box-shadow: var(--yg-shadow);
}

/* Tarjeta precio */
.yg-price { text-align: center; margin-bottom: 1.1rem; }

.yg-price__old {
    display: block;
    color: #a8a89c;
    text-decoration: line-through;
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
}

.yg-price__now {
    font-family: var(--yg-font-title);
    color: var(--yg-title);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.yg-price__now.is-promo { color: var(--yg-amber); }

.yg-price__from {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--yg-primary);
    margin-bottom: 0.25rem;
}

/* Botón
   Selector con especificidad alta (.yg-retiro a.yg-btn) para ganar a la regla
   genérica de enlaces .yg-retiro a, que si no pinta el texto en verde y lo deja
   invisible sobre el fondo verde salvia hasta el hover. */
.yg-retiro a.yg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    background: var(--yg-primary);
    color: #fff;
    font-family: var(--yg-font-body);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.95rem 1.25rem;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.yg-retiro a.yg-btn svg { color: #fff; }

.yg-retiro a.yg-btn:hover {
    background: var(--yg-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.yg-badge-flex {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    background: rgba(90, 138, 154, 0.12);
    color: var(--yg-blue);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.55rem 0.9rem;
    border-radius: var(--yg-radius-sm);
}

/* Tarjeta organizador */
.yg-org { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.9rem; }
.yg-org__img { border-radius: 50%; width: 64px; height: 64px; object-fit: cover; flex: none; }
.yg-org__label {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--yg-primary); font-weight: 600;
}
.yg-org__name { font-family: var(--yg-font-title); color: var(--yg-title); font-size: 1.2rem; font-weight: 600; }
.yg-org__desc { font-size: 0.94rem; margin: 0; }

/* ==========================================================================
   Galería
   ========================================================================== */
.yg-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.85rem;
}

.yg-gallery a { display: block; border-radius: var(--yg-radius-sm); overflow: hidden; }

.yg-gallery img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.yg-gallery a:hover img { transform: scale(1.05); }

/* ==========================================================================
   Ubicación
   ========================================================================== */
.yg-place { margin: 0 0 1rem; }

.yg-place__name {
    display: block;
    font-family: var(--yg-font-title);
    color: var(--yg-title);
    font-size: 1.15rem;
    font-weight: 600;
}

.yg-place__addr { display: block; font-size: 0.96rem; color: var(--yg-text); }

.yg-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.5rem;
    color: var(--yg-primary);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
}

.yg-map-link:hover { color: var(--yg-primary-dark); text-decoration: underline; }
.yg-map-link svg { flex: none; }

/* Mapa embebido (Google Maps output=embed, sin API key) */
.yg-map {
    margin: 1rem 0 0.25rem;
    border-radius: var(--yg-radius);
    overflow: hidden;
    box-shadow: var(--yg-shadow-sm);
    line-height: 0;
}

.yg-map iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: 0;
}

/* ==========================================================================
   Vídeo (embed responsive 16:9)
   ========================================================================== */
.yg-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--yg-radius);
    overflow: hidden;
    box-shadow: var(--yg-shadow-sm);
    background: #e9e4d8;
}

.yg-video iframe,
.yg-video object,
.yg-video embed,
.yg-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   Botones globales (header, home, footer) — reutilizables fuera de .yg-retiro
   ========================================================================== */
.yg-btn-filled,
.yg-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--yg-font-body);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
    padding: 0.7rem 1.35rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.yg-btn-filled {
    background: var(--yg-primary);
    color: #fff;
}
.yg-btn-filled:hover,
.yg-btn-filled:focus-visible {
    background: var(--yg-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.yg-btn-outline {
    background: transparent;
    color: var(--yg-primary);
    border-color: var(--yg-primary);
}
.yg-btn-outline:hover,
.yg-btn-outline:focus-visible {
    background: var(--yg-primary);
    color: #fff;
}

/* Foco visible accesible en cualquier interactivo del chrome del sitio */
.yg-site-header a:focus-visible,
.yg-site-header button:focus-visible,
.yg-site-footer a:focus-visible {
    outline: 2px solid var(--yg-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ==========================================================================
   Cabecera del sitio (reemplaza la de GeneratePress)
   ========================================================================== */
.yg-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 243, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 0.5px solid var(--yg-border);
}

.yg-header-inner {
    max-width: var(--yg-maxw);
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.yg-logo {
    font-family: var(--yg-font-title);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--yg-title);
    text-decoration: none;
    letter-spacing: -0.01em;
    flex: none;
}
.yg-logo:hover { color: var(--yg-primary); }

.yg-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
}

.yg-nav__list {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.yg-nav__list a {
    font-family: var(--yg-font-body);
    font-weight: 500;
    font-size: 0.98rem;
    color: var(--yg-title);
    text-decoration: none;
    transition: color 0.2s ease;
}
.yg-nav__list a:hover { color: var(--yg-primary); }

.yg-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.yg-greeting {
    font-family: var(--yg-font-body);
    font-size: 0.95rem;
    color: var(--yg-text);
}
.yg-greeting strong { color: var(--yg-title); font-weight: 600; }

/* Botón hamburguesa (oculto en desktop) */
.yg-nav-toggle {
    display: none;
    flex: none;
    margin-left: auto;
    background: transparent;
    border: 0;
    padding: 0.4rem;
    color: var(--yg-title);
    cursor: pointer;
}
.yg-nav-toggle svg { display: block; }

/* ---- Responsive: menú colapsado en móvil ---- */
@media (max-width: 860px) {
    .yg-nav-toggle { display: inline-flex; }

    .yg-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 1.25rem;
        background: var(--yg-bg);
        border-bottom: 0.5px solid var(--yg-border);
        padding: 1.5rem 1.25rem 1.75rem;
        box-shadow: var(--yg-shadow);
        display: none;
    }
    .yg-nav.is-open { display: flex; }

    .yg-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.1rem;
    }
    .yg-nav__list a { font-size: 1.1rem; }

    .yg-nav__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
    }
    .yg-nav__actions .yg-btn-filled,
    .yg-nav__actions .yg-btn-outline {
        width: 100%;
        padding: 0.85rem 1.35rem;
        font-size: 1rem;
    }
    .yg-greeting { padding: 0.25rem 0; }
}

/* ==========================================================================
   Footer del sitio
   ========================================================================== */
.yg-site-footer {
    background: var(--yg-title);
    color: rgba(255, 255, 255, 0.72);
    margin-top: 0;
}

.yg-footer-inner {
    max-width: var(--yg-maxw);
    margin: 0 auto;
    padding: 4rem 1.25rem 2.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
}

@media (max-width: 700px) {
    .yg-footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 1.25rem 2rem;
    }
}

.yg-footer__logo {
    font-family: var(--yg-font-title);
    font-weight: 600;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.6rem;
}

.yg-footer__tagline {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    max-width: 32ch;
}

.yg-footer__heading {
    font-family: var(--yg-font-body);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 1rem;
}

.yg-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.yg-footer__links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.yg-footer__links a:hover { color: #fff; }

.yg-footer__social {
    display: flex;
    gap: 0.85rem;
}
.yg-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
}
.yg-footer__social a:hover {
    background: var(--yg-primary);
    transform: translateY(-2px);
}
.yg-footer__social svg { display: block; }

.yg-footer__bottom {
    border-top: 0.5px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    padding: 1.5rem 1.25rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Componente compartido: tarjeta de retiro + grid
   (usado por la home y por el archivo de retiros)
   ========================================================================== */
.yg-card-grid {
    display: grid;
    gap: var(--yg-gap);
    grid-template-columns: 1fr;
}
@media (min-width: 600px) {
    .yg-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .yg-card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.yg-card-retiro {
    background: var(--yg-card);
    border: 0.5px solid var(--yg-border);
    border-radius: var(--yg-radius);
    overflow: hidden;
    box-shadow: var(--yg-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.yg-card-retiro:hover {
    transform: translateY(-4px);
    box-shadow: var(--yg-shadow);
}

.yg-card-retiro__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.yg-card-retiro__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #e9e4d8;
}
.yg-card-retiro__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.yg-card-retiro__img--ph {
    background: linear-gradient(135deg, #e9e4d8, #d8d2c4);
}

.yg-card-retiro__badge {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    background: var(--yg-amber);
    color: #fff;
    font-family: var(--yg-font-body);
    font-weight: 600;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.32rem 0.8rem;
    border-radius: 999px;
    box-shadow: 0 3px 12px rgba(232, 162, 61, 0.4);
}

.yg-card-retiro__body {
    padding: 1.25rem 1.3rem 1.4rem;
}

.yg-card-retiro__eyebrow {
    display: block;
    font-family: var(--yg-font-body);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--yg-primary);
    margin-bottom: 0.4rem;
}

.yg-card-retiro__title {
    font-family: var(--yg-font-title);
    color: var(--yg-title);
    font-weight: 600;
    font-size: 1.22rem;
    line-height: 1.25;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yg-card-retiro__meta {
    font-family: var(--yg-font-body);
    color: var(--yg-text);
    font-size: 0.92rem;
    margin: 0 0 1rem;
}

.yg-card-retiro__price {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}
.yg-card-retiro__price-from {
    font-family: var(--yg-font-body);
    font-size: 0.8rem;
    color: var(--yg-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.yg-card-retiro__price-now {
    font-family: var(--yg-font-title);
    color: var(--yg-title);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1;
}
