/*   
Theme Name: PLANOS Y RAYAS
Description: Theme for Planos y Rayas
Author: LESTER
Version: 1.0.0
*/

/* Reset básico */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, sans-serif;
    background-color: #0A1628;
    background-image: url('assets/svg/background.svg'), linear-gradient(to bottom, #7C3AED 0%, #4338CA 35%, #1E3A5F 70%, #0A1628 100%);
    background-repeat: repeat, no-repeat;
    background-size: 50% 50%, 100% 100vh;
    background-position: 0 0, 0 0;
    background-attachment: scroll, fixed;
    
}

/* Wrapper con fondo SVG */
.pyr-site-wrapper {
    /*
    min-height: 100vh;
    */
}

/* Contenedor principal */
.pyr-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-bottom: 16rem;
}

/* Contenido de páginas */
.pyr-page-content {
    align-items: flex-start;
}

.pyr-content-wrapper {
    max-width: 800px;
    width: 100%;
}

.pyr-page-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.pyr-page-logo-link {
    display: block;
    max-width: 300px;
}

.pyr-page-logo {
    width: 100%;
    height: auto;
    display: block;
}

.pyr-page-body {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.pyr-page-body p {
    margin: 0 0 1rem;
}

.pyr-page-body a {
    color: #00F917;
}

.pyr-page-body a:hover {
    text-decoration: underline;
}

/* Contenedor del logo centrado */
.pyr-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Logo */
.pyr-logo-link {
    display: block;
    max-width: 100%;
}

.pyr-logo {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    width: auto;
    display: block;
}

/* Título del sitio (fallback sin logo) */
.pyr-site-title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.pyr-site-title a {
    color: #fff;
    text-decoration: none;
}

.pyr-site-title a:hover {
    opacity: 0.9;
}

.pyr-site-description {
    margin: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
}

/* Página de inicio: estilos con Tailwind en front-page.php */

/* Logo y subtítulo: ocultos al inicio, fade-in tras los personajes */
.pyr-fade-in{
    opacity: 0;
    animation: pyr-fade-in 0.9s ease-out forwards;
}

.pyr-front-logo {
    animation-delay: 0.8s;
}

.pyr-front-subtitle {
    animation-delay: 1s;
}

.pyr-front-rest {
    animation-delay: 1.2s;
}

@keyframes pyr-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Contenedor de personajes: emerge del centro de la página */
.pyr-characters-wrapper {
    transform-origin: center center;
}

/* Cada personaje emerge con desfase - escala desde el centro, luego flota */
.pyr-entrance-ana,
.pyr-entrance-moni,
.pyr-entrance-cris {
    transform: scale(0);
    transform-origin: center center;
    opacity: 0;
}

.pyr-entrance-ana {
    animation: pyr-fly-in 0.6s 0.2s ease-out forwards, pyr-float 3.2s ease-in-out 0.6s infinite;
}

.pyr-entrance-moni {
    animation: pyr-fly-in 0.6s 0.1s ease-out forwards, pyr-float 2.5s ease-in-out 0.7s infinite;
}

.pyr-entrance-cris {
    animation: pyr-fly-in 0.6s 0.3s ease-out forwards, pyr-float 3.8s ease-in-out 0.8s infinite;
}

@keyframes pyr-fly-in {
    0% {
        transform: scale(0.15);
        opacity: 0.6;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pyr-float {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1) translateY(-8px); }
}

.pyr-footer {
    background-color: #00F917;
    padding: 1rem 2rem;
    /*
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    */
}

.pyr-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
    align-items: center;
}

.pyr-footer-label {
    font-weight: 700;
    color: #0A1628;
}

.pyr-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0A1628;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s;
}

.pyr-footer-link:hover {
    opacity: 0.8;
}

.pyr-footer-icon {
    font-size: 1.25rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}