@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Big+Shoulders+Display:wght@700;800;900&family=Cormorant+Garamond:wght@400;600&family=Space+Grotesk:wght@400;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

.pan-hero__title {
    font-family: 'Impact', sans-serif;
    font-style: italic;
}

:root {
    --pan-bg: #000000;
    --pan-text: #ffffff;
    --pan-accent: #ff0000; /* Changed to red */
    --pan-secondary: #00ff00; /* Green for disruption */
    --pan-muted: #cccccc;
    --transition: 0.3s ease;
}

body.page-panamericanos {
    background: var(--pan-bg);
    color: var(--pan-text);
    font-family: "Space Grotesk", system-ui, sans-serif;
    position: relative;
    overflow-x: hidden;
}

.pan-main {
    position: relative;
}

.pan-triangles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.triangle {
    position: absolute;
    width: 200px;
    height: 200px;
    background: transparent;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: float 6s ease-in-out infinite;
}

.triangle:nth-child(1) {
    animation: float1 6s ease-in-out infinite;
}

.triangle:nth-child(2) {
    animation: float2 8s ease-in-out infinite;
}

.triangle:nth-child(3) {
    animation: float3 7s ease-in-out infinite;
}

.triangle-red {
    background: rgba(255, 0, 0, 1);
}

.triangle-green {
    background: rgba(0, 255, 0, 1);
}

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

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-15deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(280deg); }
    50% { transform: translateY(-15px) rotate(300deg); }
}

@keyframes competitive-pulse {
    0%, 100% { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); }
    50% { box-shadow: 0 18px 50px rgba(255, 0, 0, 0.3); }
}

.page-panamericanos main {
    padding-top: 0;
}

/* Hero Section */
.pan-hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: none;
    padding-top: var(--nav-h,72px);
}

.pan-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../../images/events/Panamericanos/m6.jpg") center/cover no-repeat;
    filter: contrast(1.35) saturate(0.9);
    z-index: 0;
}

.pan-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

.pan-hero__content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.pan-hero__title {
    margin: 0 0 18px;
    text-transform: uppercase;
    color: #e0e0e0;
    text-shadow: none;
    letter-spacing: 0.14em;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.pan-hero__title-main {
    font-family: "Big Shoulders Display", "Impact", "Arial Black", sans-serif;
    font-size: clamp(4.5rem, 12vw, 9rem);
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.16em;
    line-height: 0.9;
}

.pan-hero__title-sub {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: clamp(1rem, 3vw, 1.8rem);
    font-weight: 600;
    letter-spacing: 0.4em;
    color: rgba(255, 255, 255, 0.8);
}

.pan-hero__title::after {
    content: "";
    display: block;
    width: min(360px, 46vw);
    height: 6px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, #ff0000, rgba(255, 255, 255, 0.2));
    clip-path: polygon(0 0, 94% 0, 100% 100%, 0 100%);
}

.pan-hero__subtitle {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-title {
    font-family: "Big Shoulders Display", sans-serif;
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 60px;
    color: var(--pan-text);
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: var(--pan-accent);
    margin: 20px auto 0;
}

/* Story Section */
.pan-story {
    padding: 64px 0 24px;
}

.pan-story__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    align-items: center;
}

.pan-story .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.pan-story .section-title::after {
    margin: 16px 0 0;
}

.pan-story__kicker {
    font-family: "JetBrains Mono", monospace;
    color: var(--pan-secondary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 12px;
    font-size: 0.85rem;
}

.pan-story__lead {
    margin: 16px 0 24px;
    color: var(--pan-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.pan-story__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.pan-story__label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pan-muted);
}

.pan-story__value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pan-text);
    margin-top: 6px;
}

.pan-story__media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6);
}

.pan-story__img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: contrast(1.15) saturate(1.05);
}

/* Guerreros Section */
.pan-guerreros {
    position: relative;
    padding: 64px 0;
    background: rgba(255,255,255,0.02);
}

.guerreros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.guerrero-card {
    position: relative;
    text-align: center;
}

.guerrero-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
    filter: contrast(1.1) saturate(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .pan-hero__title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .pan-story__img {
        height: 320px;
    }
    /* Massive floating triangles clutter the narrow viewport */
    .pan-triangles {
        display: none;
    }
}

