/* Profile Card Component Styles */
@import url('profile-card.css');

/* Gradual Blur Effect Styles */
@import url('gradual-blur.css');

/* GSAP Entrance Animations */
.animate-on-load {
    visibility: hidden;
    position: relative;
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus Indicators for Keyboard Navigation */
*:focus-visible {
    outline: 3px solid #F2478A;
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid #00B2C2;
    outline-offset: 2px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #7DC528;
    outline-offset: 2px;
}

/* Prefers Reduced Motion - Accessibility for Animation Sensitivity */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* Custom Styles for Stacking & Mojo Vibes */
body {
    font-family: 'Work Sans', sans-serif;
    background-color: #F9FAFB;
    color: #202124;
    overflow-x: hidden;
}

h1,
h2,
h3,
.font-heading {
    font-family: 'Unbounded', sans-serif;
}

/* Text Pressure Variable Font */
@font-face {
    font-family: 'Compressa';
    src: url('https://res.cloudinary.com/dr6lvwubh/raw/upload/v1529908256/CompressaPRO-GX.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
}

/* Professional Block Layout Styles (Consolidated at the bottom) */

#hero-title {
    font-weight: 900 !important;
    -webkit-text-stroke: 1px currentColor;
    letter-spacing: -0.12em;
    /* Letras muy juntas, casi tocándose */
    transform: scaleY(0.85);
    /* Comprimir verticalmente para efecto más bold/gordo */
    transform-origin: center;
}

.font-caveat {
    font-family: 'Caveat', cursive;
}

/* Sticky Cards - Now Static (former sticky scroll effect disabled) */
.sticky-card-container {
    position: relative;
}

.sticky-card {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.5s ease-out;
}

/* Italic highlight block */
em {
    font-style: italic;
    font-weight: 700;
    background-color: white;
    padding: 0.1rem 0.3rem;
    border-radius: 0.3rem;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    display: inline;
    line-height: normal;
}

/* Brand Colors */
.brand-1 {
    color: #FFDB5F !important;
}

.brand-2 {
    color: #7DC528 !important;
}

.brand-3 {
    color: #00B2C2 !important;
}

.brand-4 {
    color: #F2478A !important;
}

/* Specific overrides for sections if needed */
.sticky-card em {
    background-color: transparent;
    padding: 0;
}

/* Company Section - Improved Vertical Rhythm */
#compania {
    padding: 8rem 0;
    /* Increased for better section separation */
}

#compania .max-w-4xl {
    max-width: 56rem;
    /* Slightly wider for better text balance */
}

#compania p {
    max-width: 48rem;
    /* Constrain text width for optimal reading (65-75 chars) */
    margin-left: auto;
    margin-right: auto;
}

#compania em {
    /* Ensures readability if parent color is inherited */
    color: #1a1a1a;
}

@media (max-width: 1024px) {
    .sticky-card {
        position: relative !important;
        top: auto !important;
        height: auto !important;
        min-height: auto !important;
        display: block !important;
        padding: 4rem 1.5rem;
        overflow: visible !important;
        margin-bottom: 0px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .sticky-card-container {
        height: auto !important;
        overflow: visible !important;
        display: flex;
        flex-direction: column;
    }

    /* Typography Adjustments for Mobile - Refined Scale */
    .heading-60 {
        font-size: 2.8rem !important;
        line-height: 1.1;
    }

    .heading-55 {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }

    .heading-50 {
        font-size: 2.2rem !important;
        line-height: 1.1;
    }

    .heading-45 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    /* Global Mobile font size reduction for specific classes */
    .md\:text-3xl {
        font-size: 1.25rem !important;
    }

    /* text-xl equivalence */
    .md\:text-2xl {
        font-size: 1.125rem !important;
    }

    /* text-lg equivalence */

    /* Ensure no text overlap */
    .hero-line {
        transform: none !important;
        /* Disable hover effects or shifts on mobile */
    }

    /* Reduce Animation Load on Mobile */
    .sticker,
    .animate-border-cycle,
    .animate-float-color {
        animation: none !important;
        transform: none !important;
    }
}

/* Main Hero Title - Solid Block Styles are at the top */

/* Stickers & Decorations */
.sticker {
    position: absolute;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes border-color-cycle {
    0% {
        border-color: #FFD700;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }

    25% {
        border-color: #4ADE80;
        box-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
    }

    50% {
        border-color: #60A5FA;
        box-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
    }

    75% {
        border-color: #F472B6;
        box-shadow: 0 0 20px rgba(244, 114, 182, 0.5);
    }

    100% {
        border-color: #FFD700;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
}

.animate-border-cycle {
    animation: border-color-cycle 8s infinite linear;
}

.animate-float-color {
    animation: float 6s ease-in-out infinite, border-color-cycle 8s linear infinite;
    /* Reusing border-color-cycle keyframes for color property since values are same */
    animation-name: float, color-cycle-text;
}

@keyframes color-cycle-text {
    0% {
        color: #FFDB5F;
    }

    /* Yellow */
    25% {
        color: #7DC528;
    }

    /* Green */
    50% {
        color: #00B2C2;
    }

    /* Blue */
    75% {
        color: #F2478A;
    }

    /* Pink */
    100% {
        color: #FFDB5F;
    }

    /* Back to Yellow */
}

/* Background Patterns */
.bg-grid-pattern {
    background-image: linear-gradient(#E5E7EB 1px, transparent 1px),
        linear-gradient(90deg, #E5E7EB 1px, transparent 1px);
    background-size: 40px 40px;
}

.dot-grid-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Mojo 3D Text Effect for "MALIR" */
.text-mojo-3d {
    color: #00B2C2;
    /* Blue Face */
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        4px 4px 0px #F2478A,
        /* Pink Layer */
        8px 8px 0px #7DC528,
        /* Green Layer */
        12px 12px 0px #FFDB5F;
    /* Yellow Layer */
    transform: skew(-5deg) rotate(-2deg);
    display: inline-block;
}

.text-pressure-word {
    font-family: 'Compressa', 'Unbounded', sans-serif;
    display: flex;
    justify-content: center;
    /* Balanced central alignment */
    width: auto;
    gap: 0.01em;
    /* Letras casi tocándose */
}

.text-pressure-word span {
    display: inline-block;
    transition: font-variation-settings 0.15s ease-out;
    /* Smooth interaction */
}

.hero-line {
    display: block;
    line-height: 0.78;
    /* Tightened leading */
    margin-bottom: 0.02em;
    /* Minimal spacing for cohesion */
}

/* Electric Border Mockup Effect */
.electric-border-wrapper {
    position: relative;
    z-index: 10;
    overflow: visible !important;
}

#electric-border-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.eb-glow {
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    pointer-events: none;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.5;
    background: #FFDB5F;
    /* User's Yellow */
}

.eb-glow-1 {
    filter: blur(40px);
    opacity: 0.3;
}

.eb-glow-2 {
    filter: blur(15px);
    opacity: 0.6;
}

/* Stabilize Phone Mockup Container */
.hero-mockup-container {
    overflow: visible !important;
    position: relative;
    z-index: 10;
}

/* Ensure Phone Image is not clipped */
.hero-mockup-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Details Animation */
details>summary {
    list-style: none;
}

details>summary::-webkit-details-marker {
    display: none;
}

details[open] summary~* {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    inset: 0;
    background-color: #F9FAFB;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.loader-logo {
    width: 150px;
    animation: spin-slow 3s linear infinite;
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hidden-loader {
    opacity: 0;
    visibility: hidden;
}

/* Mobile Menu Redesign - Staggered Overlay */
/* Mobile Menu Redesign - Staggered Overlay */
.mobile-menu-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: #F9FAFB;
    z-index: 9999;
    /* High z-index to cover everything */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Centering items horizontally */
    padding: 2rem;
    /* More padding */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Menu Items (Cards) */
.menu-card {
    display: block;
    width: 100%;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: 1rem;
    font-size: 1.25rem;
    font-weight: 800;
    /* Extra Bold */
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transform: translateY(-30px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease-out;
    /* Springy easing */
}

/* Staggered Animation Delays */
.mobile-menu-overlay.open .menu-card {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-overlay.open .menu-card:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.open .menu-card:nth-child(2) {
    transition-delay: 0.2s;
}

/* The shows container counts as child 2, but its internal links need delay? 
   Actually, let's just animate the main blocks. */
.mobile-menu-overlay.open .menu-card:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu-overlay.open .menu-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* Sub-items for "Espectáculos" */
.sub-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #202124;
    text-align: left;
    transition: background-color 0.2s;
}

.sub-card:active {
    background-color: #E5E7EB;
}

/* Colors for main cards */
.bg-brand-yellow {
    background-color: #FFDB5F;
    color: #202124;
}

.bg-brand-light {
    background-color: white;
    border: 2px solid #E5E7EB;
    color: #202124;
}

.bg-brand-cta {
    background-color: #F2478A;
    color: white;
}

/* PDF Modal Fixes */
#pdf-modal .max-w-6xl {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    #pdf-modal {
        padding: 0 !important;
    }

    #pdf-modal>div {
        max-width: none !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        border-radius: 0 !important;
    }

    #modal-header {
        padding: 1rem !important;
    }

    #modal-title {
        font-size: 1.25rem !important;
    }

    /* Fix for iframe height inconsistencies on some mobile browsers */
    #pdf-frame {
        height: 100% !important;
        min-height: -webkit-fill-available;
    }
}

/* Profile Cards */
.profile-card {
    position: relative;
    width: 100%;
    max-width: 350px;
    aspect-ratio: 3/4;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.profile-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.profile-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-card:hover .profile-card-image {
    transform: scale(1.05);
}

.profile-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: background 0.3s ease;
}

.profile-card:hover .profile-card-overlay {
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.98) 100%);
}

.profile-card-name {
    font-size: 1.75rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.profile-card-icon {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid;
    transition: all 0.3s ease;
}

.profile-card-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(5deg);
}

/* Brand Color Borders */
.profile-card-blue .profile-card-icon {
    border-color: #00B2C2;
    color: #00B2C2;
}

.profile-card-pink .profile-card-icon {
    border-color: #F2478A;
    color: #F2478A;
}

.profile-card-green .profile-card-icon {
    border-color: #7DC528;
    color: #7DC528;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .profile-card {
        max-width: 100%;
    }

    .team-grid {
        gap: 1.5rem;
    }
}