/* =========================================================
   GoWebix Page Title — estilo "GoWebix"  (prototipo v0.1)
   Prefijo .gwx-pt — sin dependencia de clases nativas del theme.
   Estructura reutilizable: .gwx-pt > .gwx-pt__slide* (1 slide hoy; N slides = modo carrusel futuro)
   Tokens copiados de hero-premium.css (cyan #00C2E5, tinta #071326, boton ovalado, scroll pill).
   ========================================================= */
.gwx-pt {
    --gwx-cyan: #00C2E5;
    --gwx-ink: #071326;
    --gwx-nav-h: 93px;              /* la mide el JS; 93px = header desktop 1920 */
    --gwx-img-ratio: 1.7877;        /* 1920 / 1074 */
    --gwx-pos-d: 50% 50%;           /* encuadre desktop (object-position) */
    --gwx-pos-m: 50% 50%;           /* encuadre movil/tablet vertical */
    --gwx-pad: clamp(40px, 6vw, 88px);

    position: relative;
    display: grid;                  /* los slides se apilan en la misma celda: la mas alta fija la altura */
    width: 100%;
    margin: var(--gwx-nav-h) 0 0;   /* header fijo: la seccion empieza justo debajo */
    /* Altura: la de la imagen a todo el ancho (sin recorte) pero nunca mas que el alto visible;
       el contenido puede hacerla crecer. No hay alturas fijas ni saltos por breakpoint. */
    min-height: min(calc(100vw / var(--gwx-img-ratio)), calc(100svh - var(--gwx-nav-h)));
    background: var(--gwx-ink);
    color: #fff;
    font-family: 'Inter', sans-serif;
    isolation: isolate;
}

.gwx-pt__slide {
    grid-area: 1 / 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}

/* ---- Imagen + overlay ---- */
.gwx-pt__img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;              /* rellena sin deformar; recorta solo lo que la proporcion obliga */
    object-position: var(--gwx-pos-d);
}
.gwx-pt__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--gwx-ov-color, #000);
    opacity: var(--gwx-ov-opacity, .5);
    pointer-events: none;
}

/* ---- Contenido ---- */
.gwx-pt__content {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: min(1200px, calc(100% - 64px));
    margin-inline: auto;
    padding-block: var(--gwx-pad);
    text-align: left;
}
.gwx-pt--has-down .gwx-pt__content { padding-bottom: calc(var(--gwx-pad) + 72px); }

.gwx-pt__eyebrow {
    margin: 0 0 10px;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--gwx-cyan);
}
.gwx-pt__title {
    position: relative;
    margin: 0 0 18px;
    padding: 18px 0 0 24px;
    max-width: 640px;
    font-family: inherit;
    font-size: clamp(1.9rem, 1.2rem + 1.6vw, 3rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.025em;
    color: #fff;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .32);
    text-transform: none;
}
.gwx-pt__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .12em;
    width: 4px;
    height: calc(100% - .24em);
    border-radius: 10px;
    background: var(--gwx-cyan);
    box-shadow: 0 0 18px rgba(0, 194, 229, .35);
}
.gwx-pt__desc {
    margin: 0 0 32px;
    max-width: 540px;
    font-size: clamp(1.05rem, .85rem + .8vw, 1.45rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, .96);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}
.gwx-pt__desc > :last-child { margin-bottom: 0; }
.gwx-pt__content > :last-child { margin-bottom: 0; }

/* ---- CTA ovalado (mismos valores que .hero-btn + regla AA del child: texto oscuro sobre cyan) ----
   Estados definidos explicitamente (fondo + texto + borde siempre juntos, !important): ninguna regla global
   `a:hover/a:focus/a:visited` del theme puede mezclarlos. Pares permitidos: cyan+tinta (reposo) o tinta+blanco (activo).
   Sin transicion de color/fondo/borde (solo transform) para que no pueda quedar un estado intermedio congelado. */
.gwx-pt__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 34px;
    box-sizing: border-box;
    background: var(--gwx-cyan);
    border: 2px solid var(--gwx-cyan);
    border-radius: 999px;
    color: var(--gwx-ink) !important;
    text-decoration: none !important;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .01em;
    box-shadow: 0 10px 30px rgba(0, 194, 229, .22);
    transition: transform .25s ease;
}
/* reposo: normal, link, visited y focus por raton/toque (no teclado) */
.gwx-pt__cta,
.gwx-pt__cta:link,
.gwx-pt__cta:visited,
.gwx-pt__cta:focus {
    background-color: var(--gwx-cyan) !important;
    border-color: var(--gwx-cyan) !important;
    color: var(--gwx-ink) !important;
}
/* hover: solo con hover real */
@media (hover: hover) and (pointer: fine) {
    .gwx-pt__cta:hover {
        background-color: var(--gwx-ink) !important;
        border-color: var(--gwx-ink) !important;
        color: #fff !important;
        transform: translateY(-2px);
    }
}
/* foco de teclado: mismo par oscuro/blanco + anillo blanco visible (gana a hover/focus por orden) */
.gwx-pt__cta:focus-visible {
    background-color: var(--gwx-ink) !important;
    border-color: var(--gwx-ink) !important;
    color: #fff !important;
    transform: translateY(-2px);
}
.gwx-pt__cta:focus-visible,
.gwx-pt__down:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* active: ultimo, igual en todos los dispositivos */
.gwx-pt__cta:active {
    background-color: var(--gwx-ink) !important;
    border-color: var(--gwx-ink) !important;
    color: #fff !important;
    transform: none;
}

/* ---- Slide Down (pastilla de .gowebix-hero-scroll-btn) ---- */
.gwx-pt__down {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 3;
    width: 40px;
    height: 62px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    padding-top: 10px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    transform: translateX(-50%);
    transition: transform .25s ease, border-color .25s ease;
}
.gwx-pt__down:hover { border-color: var(--gwx-cyan); transform: translateX(-50%) scale(1.06); }
.gwx-pt__down span {
    display: block;
    width: 7px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    animation: gwxPtDown 1.8s ease-in-out infinite;
}
@keyframes gwxPtDown {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50%      { transform: translateY(12px); opacity: .55; }
}

/* ---- Unico ajuste responsive: en pantallas verticales el encuadre es el movil ---- */
@media (max-aspect-ratio: 1/1) {
    .gwx-pt__img { object-position: var(--gwx-pos-m); }
}
@media (max-width: 767px) {
    .gwx-pt__content { width: calc(100% - 40px); }
    .gwx-pt__cta { min-height: 48px; padding: 12px 26px; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
    .gwx-pt__cta, .gwx-pt__down { transition: none; }
    .gwx-pt__down span { animation: none; }
}
