* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 25%, #f0f4f8 50%, #e8ecf1 75%, #f5f7fa 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(45, 53, 97, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 140, 66, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.page-junior .site-header {
    position: relative;
    padding: 0;
    z-index: 20;
}

.page-junior .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 8px clamp(24px, 4vw, 48px);
    background: linear-gradient(135deg, rgba(255, 122, 61, 0.48) 0%, rgba(255, 165, 0, 0.45) 100%);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-radius: 0;
}

.page-junior .brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-junior .brand-logo {
    width: clamp(36px, 5vw, 48px);
    aspect-ratio: 1;
    padding: 6px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
}

.page-junior .title {
    font-family: var(--font-heading, 'Playfair Display', 'Montserrat', 'Barlow', 'Segoe UI', sans-serif);
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.page-junior .site-nav {
    display: flex;
    align-items: center;
}

.page-junior .site-nav__list {
    list-style: none;
    display: flex;
    gap: clamp(16px, 2.5vw, 28px);
    margin: 0;
    padding: 0;
    font-weight: 600;
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.page-junior .site-nav__list a {
    position: relative;
    color: rgba(255, 255, 255, 0.78);
    padding: 4px 0;
    transition: color 0.2s ease;
}

.page-junior .site-nav__list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 140, 66, 0.8) 100%);
    transition: width 0.2s ease;
}

.page-junior .site-nav__list a:hover,
.page-junior .site-nav__list a:focus-visible {
    color: #fff;
}

.page-junior .site-nav__list a:hover::after,
.page-junior .site-nav__list a:focus-visible::after {
    width: 100%;
}

.page-junior .btn-menu {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.page-junior .btn-menu:hover,
.page-junior .btn-menu:focus-visible {
    background: rgba(255, 255, 255, 0.18);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    font-size: 1.5em;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.6);
}

.floating-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.floating-btn.whatsapp:hover {
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.header {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.55) 0%, rgba(255, 140, 66, 0.55) 50%),
                url('../../images/cover.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    background-attachment: fixed;
    color: white;
    padding: clamp(160px, 18vw, 240px) 20px 80px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 0;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: drift 20s linear infinite;
    opacity: 0.3;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.header-logo {
    max-width: 200px;
    max-height: 150px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.header-logo img {
    width: 80%;
    height: auto;
    object-fit: contain;
}

.header-icon {
    font-size: 3em;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    animation: bounce 2s ease-in-out infinite;
}

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

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.header .tagline {
    font-size: 1.2em;
    font-weight: 300;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-enabled .fade-in:not(.visible) {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.intro-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 245, 0.98) 100%);
    border-radius: 10px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(255, 107, 53, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 107, 53, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35 0%, #ff8c42 50%, #ff6b35 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.intro-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.intro-section h2 {
    color: #ff6b35;
    margin-bottom: 20px;
    font-size: 2em;
}

.intro-statement {
    background: #fff8f5;
    border-left: 4px solid #ff6b35;
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
    line-height: 1.8;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.photo-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item img[src=""],
.photo-item img:not([src]) {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.header-logo img[src=""],
.header-logo img:not([src]),
.header-logo img[src*="YOUR_LOGO"] {
    display: none;
}

.image-error {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9em;
    height: 100%;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-item .photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-placeholder {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: 10px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.2em;
    border: 2px dashed #ccc;
    transition: transform 0.3s ease;
}

.photo-placeholder i {
    font-size: 3em;
    margin-bottom: 15px;
    color: #bbb;
}

.photo-placeholder:hover {
    transform: scale(1.02);
}

.info-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 245, 0.98) 100%);
    border-radius: 10px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

.info-section h3 {
    color: #ff6b35;
    margin-bottom: 20px;
    font-size: 1.5em;
    display: flex;
    align-items: center;
}

.info-section h3 i {
    margin-right: 15px;
    font-size: 1.3em;
}

.info-list {
    list-style: none;
    margin: 15px 0;
}

.info-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.info-list li::before {
    content: "•";
    color: #ff6b35;
    font-weight: bold;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: 8px;
}

.training-stages {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 245, 0.98) 100%);
    border-radius: 10px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

.training-stages h3 {
    color: #ff6b35;
    margin-bottom: 30px;
    font-size: 1.8em;
    text-align: center;
}

.stage-card {
    background: #fff8f5;
    border-left: 5px solid #ff6b35;
    padding: 25px;
    margin: 20px 0;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.stage-card:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stage-card h4 {
    color: #ff6b35;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.stage-card .objective {
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
}

.stage-card ul {
    margin-left: 20px;
    color: #666;
}

.stage-card ul li {
    margin: 5px 0;
}

.values-section {
    background: linear-gradient(135deg, #2d3561 0%, #3f4c7a 100%);
    color: white;
    border-radius: 10px;
    padding: 40px;
    margin: 30px 0;
    text-align: center;
}

.values-section h3 {
    margin-bottom: 30px;
    font-size: 2em;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.value-item {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.value-item i {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.value-item h4 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.cta-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 245, 0.98) 100%);
    border-radius: 10px;
    padding: 50px 40px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

.cta-section h3 {
    color: #ff6b35;
    font-size: 2em;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 600;
    margin: 20px 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.cta-button i {
    margin-right: 10px;
}

.footer {
    background: #2d3561;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

.footer .motto {
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 10px;
}

.page-junior .site-nav {
    position: relative;
}

@media (max-width: 900px) {
    .page-junior .brand {
        gap: 12px;
    }

    .page-junior .brand-logo {
        padding: 8px;
    }

    .page-junior .title {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }

    .page-junior .btn-menu {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .page-junior .site-nav {
        position: absolute;
        right: clamp(20px, 6vw, 40px);
        top: calc(100% + 12px);
        background: rgba(255, 122, 61, 0.96);
        padding: 20px 24px;
        border-radius: 18px;
        box-shadow: 0 24px 45px rgba(255, 122, 61, 0.35);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.25s ease;
        min-width: 220px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(12px);
    }

    .page-junior .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .page-junior .site-nav__list {
        flex-direction: column;
        gap: 16px;
    }

    .page-junior .site-nav__list a {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .page-junior .site-nav {
        right: clamp(16px, 6vw, 28px);
        top: calc(100% + 10px);
        min-width: 200px;
    }

    .page-junior .site-nav__list {
        gap: 14px;
        font-size: 0.95rem;
    }

    .header {
        padding: 140px 20px 60px;
        min-height: 320px;
        background: linear-gradient(135deg, rgba(255, 107, 53, 0.55) 0%, rgba(255, 140, 66, 0.55) 50%),
                    url('../../images/cover.jpg');
        background-size: cover;
        background-position: center 80% !important;
        background-blend-mode: overlay;
        background-attachment: scroll !important;
        background-repeat: no-repeat;
    }

    .header-logo {
        max-width: 150px;
        max-height: 100px;
    }

    .floating-actions {
        bottom: 20px;
        right: 20px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .header .tagline {
        font-size: 1em;
    }

    .intro-section,
    .info-section,
    .training-stages {
        padding: 25px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }
}
