/*
Theme Name:   Tinajas
Theme URI:    https://clubtinajasvdo.es
Description:  Tema hijo de Twenty Twenty-Five para Club Deportivo Las Tinajas
Author:       Club Deportivo Las Tinajas
Author URI:   https://clubtinajasvdo.es
Template:     twentytwentyfive
Version:      1.0.0
Text Domain:  tinajas
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html

Colores corporativos:
  Oscuro:   #2b353e
  Turquesa: #00a69c
  Blanco:   #ffffff
  Gris:     #f5f5f5
*/

:root {
    --ct-dark:  #2b353e;
    --ct-teal:  #00a69c;
    --ct-white: #ffffff;
    --ct-light: #f5f5f5;
}

/* Utilidades globales del club */
.ct-aviso {
    padding: 12px 16px;
    border-left: 4px solid var(--ct-teal);
    background: var(--ct-light);
    border-radius: 0 6px 6px 0;
}

.ct-card {
    background: var(--ct-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.ct-btn {
    display: inline-block;
    background: var(--ct-teal);
    color: var(--ct-white);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.ct-btn:hover {
    background: #008f87;
    color: var(--ct-white);
}

/* ==========================================================
   HERO — Página de inicio
   ========================================================== */

/* Ocultar cabecera del tema padre en la home */
.ct-home .wp-block-template-part,
.ct-home header.wp-block-template-part {
    display: none;
}

/* Contenedor principal del hero */
.ct-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #2b353e; /* fallback si el iframe no carga */
}

/* Wrapper del iframe YouTube */
.ct-hero__video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none; /* no interceptar clics */
}

/* Iframe escalado para cubrir siempre el viewport (técnica 16:9) */
.ct-hero__video-wrap iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Cubre el viewport manteniendo la relación 16:9 */
    width: 100vw;
    height: 56.25vw;   /* 100vw / 16 * 9 */
    min-height: 100vh;
    min-width: 177.78vh; /* 100vh / 9 * 16 */
    border: 0;
}

/* Overlay oscuro semitransparente */
.ct-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(43, 53, 62, 0.6);
    z-index: 1;
}

/* Contenido centrado sobre el overlay */
.ct-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 0 24px;
    color: #ffffff;
}

/* Logo del club */
.ct-hero__logo img,
.ct-hero__logo svg {
    max-width: 200px;
    max-height: 120px;
    width: auto;
    height: auto;
    margin-bottom: 24px;
    filter: brightness(0) invert(1); /* forzar blanco si el logo es oscuro */
}

/* Nombre del club como fallback de logo */
.ct-hero__site-name {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 24px;
    line-height: 1.1;
}

/* Tagline */
.ct-hero__tagline {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 40px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Botones CTA del hero */
.ct-hero__cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.ct-hero__btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
}

.ct-hero__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Botón principal — turquesa sólido */
.ct-hero__btn--primary {
    background: #00a69c;
    color: #ffffff;
    border: 2px solid #00a69c;
}

.ct-hero__btn--primary:hover {
    background: #008f87;
    border-color: #008f87;
    color: #ffffff;
}

/* Botón secundario — borde blanco */
.ct-hero__btn--secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.ct-hero__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
}

/* Flecha scroll-down */
.ct-hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: ct-bounce 2s infinite;
}

.ct-hero__scroll svg {
    width: 28px;
    height: 28px;
    fill: rgba(255, 255, 255, 0.6);
}

@keyframes ct-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* Responsive: apilar botones en móvil estrecho */
@media (max-width: 400px) {
    .ct-hero__cta {
        flex-direction: column;
        align-items: center;
    }
    .ct-hero__btn {
        width: 100%;
        text-align: center;
    }
}
