/* ===========================================
   MEXICANO - Ultra Hero Styles
   Hero sections with particles, floating icons, and animated lines
   =========================================== */

/* ===========================================
   ULTRA HERO - Full-screen Homepage Hero
   =========================================== */

.hero-ultra {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero-ultra-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-ultra-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-ultra-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 18, 0.85) 0%,
        rgba(211, 47, 47, 0.4) 50%,
        rgba(255, 179, 0, 0.3) 100%
    );
    z-index: 2;
}

/* ===========================================
   FLOATING ICONS - Decorative Background Elements
   =========================================== */

.hero-floating-icons {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    color: var(--gold-primary);
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    font-size: 2.5rem;
}

.floating-icon:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 1s;
    font-size: 1.8rem;
}

.floating-icon:nth-child(3) {
    top: 60%;
    left: 8%;
    animation-delay: 2s;
    font-size: 2.2rem;
}

.floating-icon:nth-child(4) {
    top: 70%;
    right: 5%;
    animation-delay: 3s;
    font-size: 2rem;
}

.floating-icon:nth-child(5) {
    top: 40%;
    left: 3%;
    animation-delay: 4s;
    font-size: 1.5rem;
}

.floating-icon:nth-child(6) {
    top: 85%;
    right: 15%;
    animation-delay: 5s;
    font-size: 1.8rem;
}

.floating-icon:nth-child(7) {
    top: 15%;
    left: 15%;
    animation-delay: 1.5s;
    font-size: 1.6rem;
}

.floating-icon:nth-child(8) {
    top: 50%;
    right: 3%;
    animation-delay: 2.5s;
    font-size: 2.3rem;
}

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

/* ===========================================
   ANIMATED LINES - Geometric Decorations
   =========================================== */

.hero-animated-lines {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.animated-line {
    position: absolute;
    background: linear-gradient(
        90deg,
        transparent,
        var(--gold-primary),
        transparent
    );
    opacity: 0.2;
}

.animated-line-1 {
    width: 200px;
    height: 2px;
    top: 20%;
    left: -200px;
    animation: lineSlide 8s linear infinite;
}

.animated-line-2 {
    width: 150px;
    height: 2px;
    top: 50%;
    right: -150px;
    animation: lineSlideReverse 10s linear infinite;
    animation-delay: 2s;
}

.animated-line-3 {
    width: 180px;
    height: 2px;
    top: 80%;
    left: -180px;
    animation: lineSlide 12s linear infinite;
    animation-delay: 4s;
}

.animated-line-vertical {
    width: 2px;
    height: 100px;
    background: linear-gradient(
        180deg,
        transparent,
        var(--red-primary),
        transparent
    );
}

.animated-line-4 {
    top: -100px;
    left: 20%;
    animation: lineSlideDown 9s linear infinite;
}

.animated-line-5 {
    bottom: -100px;
    right: 25%;
    animation: lineSlideUp 11s linear infinite;
    animation-delay: 3s;
}

@keyframes lineSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(100vw + 400px));
    }
}

@keyframes lineSlideReverse {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100vw - 300px));
    }
}

@keyframes lineSlideDown {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(calc(100vh + 200px));
    }
}

@keyframes lineSlideUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(calc(-100vh - 200px));
    }
}

/* ===========================================
   HERO CONTENT
   =========================================== */

.hero-ultra-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--space-lg);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 179, 0, 0.2);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-xl);
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: var(--line-height-relaxed);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* ===========================================
   SCROLL INDICATOR
   =========================================== */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    animation: fadeInUp 0.8s ease 1s both;
}

.scroll-indicator span {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator-icon {
    width: 30px;
    height: 50px;
    border: 2px solid var(--gold-primary);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: var(--gold-primary);
    border-radius: 3px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0.3;
    }
}

/* ===========================================
   PAGE HERO - Shorter Hero for Inner Pages
   =========================================== */

.page-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-dark);
    padding-top: 80px; /* Account for fixed navbar */
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 18, 0.7) 0%,
        rgba(10, 10, 18, 0.9) 100%
    );
    z-index: 2;
}

.page-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.page-hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumb in page hero */
.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.page-hero-breadcrumb a {
    color: var(--gold-primary);
    transition: var(--transition-fast);
}

.page-hero-breadcrumb a:hover {
    color: var(--gold-light);
}

.page-hero-breadcrumb span {
    color: var(--text-muted);
}

/* ===========================================
   PARALLAX CTA SECTION
   =========================================== */

.parallax-cta {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-cta-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.parallax-cta-bg img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform: translateY(-10%);
}

.parallax-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(211, 47, 47, 0.85) 0%,
        rgba(255, 179, 0, 0.75) 100%
    );
    z-index: 2;
}

.parallax-cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    max-width: 800px;
}

.parallax-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.parallax-cta-text {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

.parallax-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
}

.parallax-cta .btn-secondary:hover {
    background: var(--text-primary);
    color: var(--red-primary);
}

/* ===========================================
   HERO PARTICLES EFFECT (Optional)
   =========================================== */

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 10s linear infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: 4s; }
.particle:nth-child(4) { left: 50%; top: 60%; animation-delay: 1s; }
.particle:nth-child(5) { left: 70%; top: 30%; animation-delay: 3s; }
.particle:nth-child(6) { left: 80%; top: 70%; animation-delay: 5s; }
.particle:nth-child(7) { left: 90%; top: 50%; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 15%; top: 50%; animation-delay: 4.5s; }
.particle:nth-child(9) { left: 60%; top: 15%; animation-delay: 1.5s; }
.particle:nth-child(10) { left: 40%; top: 85%; animation-delay: 3.5s; }

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

/* ===========================================
   HERO STATS BAR
   =========================================== */

.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(10, 10, 18, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats-inner {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    padding: var(--space-xl) var(--space-lg);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: var(--space-xs);
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===========================================
   ANIMATION HELPERS
   =========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================================
   RESPONSIVE HERO
   =========================================== */

@media (max-width: 991px) {
    .hero-ultra {
        min-height: 90vh;
    }

    .hero-stats-inner {
        gap: var(--space-xl);
        flex-wrap: wrap;
    }

    .floating-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .hero-ultra {
        min-height: 100svh;
    }

    .page-hero {
        min-height: 40vh;
        padding-top: 70px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-stats-inner {
        gap: var(--space-lg);
        padding: var(--space-md);
    }

    .hero-stat-number {
        font-size: var(--text-2xl);
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .floating-icon:nth-child(n+5) {
        display: none;
    }

    .animated-line {
        display: none;
    }
}
