/*
Theme Name: Tertulia y Comedias
Theme URI: https://tertuliaycomedias.local
Author: ANTI
Description: Theme base para Tertulia y Comedias.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: tertulia-y-comedias
*/

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800;900&display=swap");

:root {
    --tyc-blue: #1A387A;
    --tyc-paper: #ffffff;
    --tyc-soft: #F5F5F5;
    --tyc-white: #ffffff;
    --tyc-marquee-height: 40px;
    --tyc-page-padding: clamp(10px, 1.4vw, 20px);
    --tyc-panel-radius: 8px;
}

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

html {
    min-height: 100%;
    background: var(--tyc-paper);
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    color: var(--tyc-blue);
    background: var(--tyc-paper);
    font-family: "Geist", Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
    letter-spacing: -0.4px;
}

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

.site-main {
    width: 100%;
    min-height: 100vh;
}

.home-hero {
    position: relative;
    left: 50%;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    margin-left: -50vw;
    background: var(--tyc-paper);
}

.home-hero__marquee {
    display: block;
    width: 100vw;
    height: var(--tyc-marquee-height);
    overflow: hidden;
    color: var(--tyc-blue);
    background: var(--tyc-paper);
    white-space: nowrap;
}

.home-hero__marquee-line {
    display: block;
    width: 100vw;
    height: 100%;
    overflow: hidden;
    color: var(--tyc-blue);
    font-family: "Geist", Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: var(--tyc-marquee-height);
    letter-spacing: -0.4px;
    white-space: nowrap;
}

.home-hero__marquee-text,
.home-hero__marquee-dot {
    display: inline-block;
    vertical-align: middle;
}

.home-hero__marquee-text {
    padding-inline: 6px;
}

.home-hero__marquee-dot {
    padding-inline: 0;
}

.home-hero__panel {
    position: relative;
    width: calc(100vw - (var(--tyc-page-padding) * 2));
    height: calc(100vh - var(--tyc-marquee-height) - var(--tyc-page-padding));
    height: calc(100svh - var(--tyc-marquee-height) - var(--tyc-page-padding));
    margin: 0 var(--tyc-page-padding) var(--tyc-page-padding);
    padding: 0;
    overflow: hidden;
    border-radius: var(--tyc-panel-radius);
    background: var(--tyc-white);
}

.home-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

.home-hero__logo {
    position: absolute;
    z-index: 1;
    right: clamp(18px, 4vw, 72px);
    bottom: clamp(18px, 4vw, 72px);
    left: clamp(18px, 4vw, 72px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.home-hero__logo-img,
.custom-logo {
    width: min(1120px, 88vw);
    max-height: 28vh;
    object-fit: contain;
}

.home-hero__logo span {
    color: var(--tyc-blue);
    font-size: clamp(52px, 10vw, 168px);
    font-weight: 900;
    line-height: 0.86;
    text-align: center;
    text-transform: uppercase;
}

.intro-section {
    width: 100%;
    padding: 0 var(--tyc-page-padding) var(--tyc-page-padding);
    background: var(--tyc-white);
}

.intro-section__inner {
    width: 100%;
    min-height: 360px;
    padding: clamp(80px, 9vw, 130px) var(--tyc-page-padding);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--tyc-soft);
}

.intro-section__text {
    width: min(100%, 860px);
    margin: 0;
    color: var(--tyc-blue);
    text-align: center;
    font-feature-settings: "ss01" on, "ss03" on;
    font-family: "Geist", Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
    letter-spacing: -0.48px;
}

.split-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.split-word__inner {
    display: inline-block;
    opacity: 0;
    transform: translateY(110%);
    will-change: transform, opacity;
}

.products-section {
    width: 100%;
    padding: 0 var(--tyc-page-padding) var(--tyc-page-padding);
    background: var(--tyc-white);
}

.products-section__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--tyc-page-padding);
    min-height: 85vh;
    min-height: 85svh;
}

.product-card {
    position: relative;
    min-width: 0;
    height: 85vh;
    height: 85svh;
    overflow: hidden;
    border-radius: 8px;
    background: var(--tyc-soft);
}

.product-card__link,
.product-card__media {
    display: block;
    width: 100%;
    height: 100%;
    color: var(--tyc-white);
    text-decoration: none;
}

.product-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.50) 100%);
    pointer-events: none;
}

.product-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 260ms ease, transform 700ms cubic-bezier(0.19, 1, 0.22, 1);
}

.product-card__image--hover {
    opacity: 0;
}

.product-card:hover .product-card__image--primary,
.product-card:focus-within .product-card__image--primary {
    opacity: 0;
}

.product-card:hover .product-card__image--hover,
.product-card:focus-within .product-card__image--hover {
    opacity: 1;
    transform: scale(1.025);
}

.product-card__info {
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    gap: 2px;
    width: auto;
    min-height: 120px;
    padding: 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.20);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    color: var(--tyc-white);
}

.product-card__title,
.product-card__subtitle,
.product-card__year {
    display: block;
    color: #F6F8FB;
    font-feature-settings: "ss01" on, "ss03" on;
    font-family: "Geist", Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
    letter-spacing: -0.4px;
}

.page-shell {
    min-height: 100vh;
    padding: clamp(32px, 6vw, 96px);
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__marquee-line {
        -webkit-marquee-speed: slow;
    }
}

@media (max-width: 760px) {
    :root {
        --tyc-marquee-height: 40px;
        --tyc-page-padding: 8px;
        --tyc-panel-radius: 8px;
    }

    .intro-section__inner {
        min-height: 280px;
        padding: 72px var(--tyc-page-padding);
    }

    .products-section__grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .product-card {
        height: 72vh;
        height: 72svh;
    }

    .product-card__title,
    .product-card__subtitle,
    .product-card__year {
        font-size: 18px;
    }
}
