/* ==========================================================================
   Yogagenda — Home pública (front-page.php)
   Carga solo en is_front_page(). Reutiliza las variables de :root de style.css.
   ========================================================================== */

/* Contenedor general de secciones */
.yg-hp-wrap {
    max-width: var(--yg-maxw);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.yg-hp-section {
    padding: 80px 0;
}
.yg-hp-section--cream {
    background: var(--yg-bg);
}

@media (max-width: 700px) {
    .yg-hp-section { padding: 48px 0; }
}

/* Encabezado de sección */
.yg-hp-head {
    margin-bottom: 2.5rem;
}
.yg-hp-head__title {
    font-family: var(--yg-font-title);
    color: var(--yg-title);
    font-weight: 600;
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    line-height: 1.15;
    margin: 0 0 0.4rem;
}
.yg-hp-head__sub {
    font-family: var(--yg-font-body);
    color: var(--yg-text);
    font-size: 1.05rem;
    margin: 0;
}

/* Eyebrow reutilizable */
.yg-hp-eyebrow {
    display: inline-block;
    font-family: var(--yg-font-body);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--yg-primary);
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   A) HERO
   ========================================================================== */
.yg-hp-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 3rem 1.25rem;
    background-color: #1a1a1a;
    background-image: linear-gradient(135deg, #232a20 0%, #1a1a1a 100%);
    background-size: cover;
    background-position: center;
    text-align: center;
}
.yg-hp-hero.has-img {
    background-image: none; /* la imagen va inline; el gradiente de fallback se retira */
}

.yg-hp-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.yg-hp-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
}

.yg-hp-hero__title {
    font-family: var(--yg-font-title);
    font-weight: 600;
    color: #fff;
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.yg-hp-hero__subtitle {
    font-family: var(--yg-font-body);
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.5;
    margin: 0 auto 2.5rem;
    max-width: 600px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 700px) {
    .yg-hp-hero { min-height: 85vh; }
}

/* ==========================================================================
   B) BUSCADOR
   ========================================================================== */
.yg-search {
    background: var(--yg-card);
    border-radius: var(--yg-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
    text-align: left;
}

.yg-search__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.yg-search__label {
    font-family: var(--yg-font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--yg-primary);
}

.yg-search__input {
    font-family: var(--yg-font-body);
    font-size: 0.98rem;
    color: var(--yg-title);
    background: var(--yg-bg);
    border: 1px solid var(--yg-border);
    border-radius: var(--yg-radius-sm);
    padding: 0.7rem 0.85rem;
    width: 100%;
    line-height: 1.3;
}
.yg-search__input:focus-visible {
    outline: 2px solid var(--yg-primary);
    outline-offset: 1px;
    border-color: var(--yg-primary);
}

.yg-search__submit {
    height: calc(0.7rem * 2 + 0.98rem * 1.3 + 2px); /* alinea con la altura de los inputs */
    white-space: nowrap;
}

@media (max-width: 760px) {
    .yg-search {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }
    .yg-search__submit {
        width: 100%;
        height: auto;
        padding: 0.95rem 1.35rem;
    }
}

/* El componente de tarjeta de retiro (.yg-card-retiro, .yg-card-grid) vive en
   style.css porque se reutiliza también en el archivo de retiros. */

/* ==========================================================================
   D) SOBRE YOGAGENDA
   ========================================================================== */
.yg-hp-about {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 880px) {
    .yg-hp-about { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}

.yg-hp-about__media {
    border-radius: var(--yg-radius);
    overflow: hidden;
    box-shadow: var(--yg-shadow);
    min-height: 320px;
    background-color: #d8d2c4;
    background-image: linear-gradient(135deg, #e3ddcf, #cfc8b8);
    background-size: cover;
    background-position: center;
}
.yg-hp-about__media.has-img {
    background-image: none;
}

.yg-hp-about__title {
    font-family: var(--yg-font-title);
    color: var(--yg-title);
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.2;
    margin: 0 0 1rem;
}
.yg-hp-about__text p {
    font-family: var(--yg-font-body);
    color: var(--yg-text);
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0 0 1.6rem;
}

/* ==========================================================================
   E) DESTINOS POPULARES
   ========================================================================== */
.yg-destino-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--yg-gap);
}
@media (min-width: 600px) {
    .yg-destino-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .yg-destino-grid { grid-template-columns: repeat(3, 1fr); }
}

.yg-destino-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    border-radius: var(--yg-radius);
    overflow: hidden;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    box-shadow: var(--yg-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.yg-destino-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--yg-shadow);
}
.yg-destino-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.55) 100%);
}
.yg-destino-card__body {
    position: absolute;
    left: 1.25rem;
    bottom: 1.15rem;
    z-index: 2;
}
.yg-destino-card__name {
    display: block;
    font-family: var(--yg-font-title);
    color: #fff;
    font-weight: 600;
    font-size: 1.35rem;
    line-height: 1.1;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
.yg-destino-card__count {
    display: block;
    font-family: var(--yg-font-body);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

/* ==========================================================================
   G) CTA ORGANIZADORES
   ========================================================================== */
.yg-hp-cta {
    padding: 80px 0;
    background: rgba(122, 155, 94, 0.1);
}
@media (max-width: 700px) {
    .yg-hp-cta { padding: 48px 0; }
}

.yg-hp-cta__inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.yg-hp-cta__title {
    font-family: var(--yg-font-title);
    color: var(--yg-title);
    font-weight: 600;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    line-height: 1.15;
    margin: 0 0 1rem;
}
.yg-hp-cta__text {
    font-family: var(--yg-font-body);
    color: var(--yg-text);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 2rem;
}
