/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-background);
    color: var(--color-eerie-black);
    text-align: center;
    overflow: visible;
}


/* Remove background image and overlay for clean background */
.hero-background {
    display: none;
}


@keyframes modernFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.15;
    }
    50% { 
        transform: translateY(-30px) rotate(3deg) scale(1.05);
        opacity: 0.25;
    }
}

.hero .container {
    position: relative;
    z-index: 1;
    padding: 0 5%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    max-width: 100%;
    margin: 0;
    text-align: center;
    width: 100%;
    animation: heroContentFadeIn 1.5s ease-out;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    text-align: center;
    width: fit-content;
    align-self: center;
    margin: 0;
}

.tagline {
    display: inline-block;
    color: var(--color-neutral-700);
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);
    margin-top: 3rem;
    animation: taglineSlideIn 1.5s ease-out 0.9s both;
    position: relative;
    font-weight: 500;
    padding-left: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--color-neutral-700), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, 
        var(--color-primary) 0%,
        var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
    position: relative;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(16, 37, 66, 0.08);
    animation: heroTitleGlow 12s ease-in-out infinite;
}

@keyframes heroTitleGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 4px rgba(16, 37, 66, 0.06));
    }
    50% { 
        filter: drop-shadow(0 0 8px rgba(16, 37, 66, 0.10));
    }
}

/* Estilos para las palabras individuales */
.hero-title .word {
    display: inline-block;
    margin-right: 0.15em; /* Reduce from 0.3em to 0.15em */
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.3s ease;
}

/* Efecto hover para todas las palabras */
.hero-title .word:hover {
    transform: scale(1.01);
    filter: drop-shadow(0 2px 4px rgba(16, 37, 66, 0.2));
}

/* Generic highlight class for words */
.hero-highlight {
    background: linear-gradient(135deg, 
        var(--color-primary) 0%,
        var(--color-primary-dark) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: 0 0 8px rgba(16, 37, 66, 0.15); /* Sutil sombra Prussian Blue */
    color: transparent !important;
}

.hero-highlight:hover {
    transform: scale(1.01);
    filter: drop-shadow(0 2px 4px rgba(16, 37, 66, 0.2));
}

/* Legacy word classes kept for animation targeting if needed */
.word-3:hover, .word-4:hover {
    transform: scale(1.01);
    filter: drop-shadow(0 2px 4px rgba(16, 37, 66, 0.2));
}

.word-3, .word-4 {
    /* Use the generic class instead, but keep selectors valid */
}


/* Animaciones independientes para cada palabra - efecto líquido */
.word-1 {
    animation: liquidFloat1 16s ease-in-out infinite;
}

.word-2 {
    animation: liquidFloat2 18s ease-in-out infinite;
}

.word-3 {
    animation: liquidFloat3 20s ease-in-out infinite;
}

.word-4 {
    animation: liquidFloat4 17s ease-in-out infinite;
}

.word-5 {
    animation: liquidFloat5 19s ease-in-out infinite;
}

.word-6 {
    animation: liquidFloat6 18s ease-in-out infinite;
}

.word-7 {
    animation: liquidFloat7 20s ease-in-out infinite;
}

/* Animaciones de flotación líquida - cada una con timing diferente */
@keyframes liquidFloat1 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    25% { 
        transform: translateY(-1px) rotate(0.05deg);
    }
    50% { 
        transform: translateY(-2px) rotate(-0.05deg);
    }
    75% { 
        transform: translateY(-1px) rotate(0.05deg);
    }
}

@keyframes liquidFloat2 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    30% { 
        transform: translateY(-1px) rotate(-0.05deg);
    }
    60% { 
        transform: translateY(-2px) rotate(0.05deg);
    }
    80% { 
        transform: translateY(-1px) rotate(-0.05deg);
    }
}

@keyframes liquidFloat3 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    20% { 
        transform: translateY(-2px) rotate(0.05deg);
    }
    40% { 
        transform: translateY(-2px) rotate(-0.05deg);
    }
    70% { 
        transform: translateY(-1px) rotate(0.05deg);
    }
}

@keyframes liquidFloat4 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    35% { 
        transform: translateY(-1px) rotate(-0.05deg);
    }
    65% { 
        transform: translateY(-2px) rotate(0.05deg);
    }
    85% { 
        transform: translateY(-1px) rotate(-0.05deg);
    }
}

@keyframes liquidFloat5 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    25% { 
        transform: translateY(-1px) rotate(0.05deg);
    }
    50% { 
        transform: translateY(-2px) rotate(-0.05deg);
    }
    75% { 
        transform: translateY(-1px) rotate(0.05deg);
    }
}

@keyframes liquidFloat6 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    40% { 
        transform: translateY(-1px) rotate(-0.05deg);
    }
    60% { 
        transform: translateY(-2px) rotate(0.05deg);
    }
    80% { 
        transform: translateY(-1px) rotate(-0.05deg);
    }
}

@keyframes liquidFloat7 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    30% { 
        transform: translateY(-2px) rotate(0.05deg);
    }
    55% { 
        transform: translateY(-2px) rotate(-0.05deg);
    }
    75% { 
        transform: translateY(-1px) rotate(0.05deg);
    }
}

.hero-content h1 span {
    background: none;
    -webkit-text-fill-color: initial;
    display: inline-block;
    font-weight: 700;
    color: var(--color-eerie-black);
    position: relative;
}

.accent-letter {
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    position: relative;
    display: inline-block;
    animation: accentPulse 2.5s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(16, 37, 66, 0.2);
}

@keyframes accentPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 10px rgba(16, 37, 66, 0.2));
    }
    50% { 
        transform: scale(1.1) rotate(2deg);
        filter: drop-shadow(0 0 20px rgba(16, 37, 66, 0.4));
    }
}

/* Modern hero title lines */
.hero-title .line { 
    display: block; 
    width: fit-content;
    margin: 0 auto;
    animation: heroLineSlideIn 1.2s ease-out;
    position: relative;
    text-align: center;
}

.hero-title .line-1 { 
    font-weight: 300;
    animation-delay: 0.3s;
    animation-fill-mode: both;
    margin-bottom: -0.6rem;
    display: block;
}

.hero-title .line-2 { 
    font-weight: 800;
    animation-delay: 0.6s;
    animation-fill-mode: both;
    display: block;
    margin-bottom: -0.6rem;
}

.hero-title .line-3 { 
    font-weight: 300;
    animation-delay: 0.9s;
    animation-fill-mode: both;
    margin-top: 0;
    display: block;
}

@keyframes heroLineSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Ensure accent letters always display the blue regardless of parent styles */
.hero-title .accent-letter { 
    color: var(--color-primary); 
    font-weight: 800; 
}



.hero-content .subtitle {
    font-size: 1.25rem; /* Slightly smaller for better readability of long text */
    max-width: 700px; /* Limit width for reading line length */
    margin: 2rem auto var(--spacing-lg);
    color: var(--color-neutral-600);
    text-shadow: none;
    animation: taglineSlideIn 1.5s ease-out 0.9s both; /* Add animation */
    line-height: 1.6;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.hero-actions .btn {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, var(--color-orange), var(--color-accent));
    border: none;
    color: var(--color-eerie-black);
    font-weight: 600;
}

.hero-actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--color-accent), var(--color-orange));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 164, 0, 0.3);
}

.hero-actions .btn-secondary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.hero-actions .btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white-smoke);
}

/* Modern tagline */
.tagline {
    display: inline-block;
    color: var(--color-neutral-700);
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);
    margin-top: 3rem;
    animation: taglineSlideIn 1.5s ease-out 0.9s both;
    position: relative;
    font-weight: 500;
    padding-left: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--color-neutral-700), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.tagline .arrow {
    font-size: 1.5em;
    color: var(--color-primary);
    vertical-align: middle;
    filter: drop-shadow(0 2px 8px rgba(16, 37, 66, 0.3));
}

.tagline .arrow-icon {
    width: 1.5em;
    height: 1.5em;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    animation: none;
    opacity: 0.8;
    color: var(--color-primary);
    filter: drop-shadow(0 2px 8px rgba(16, 37, 66, 0.3));
}

@keyframes modernBounceArrow {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateX(0) scale(1); 
    }
    40% { 
        transform: translateX(8px) scale(1.1); 
    }
    60% { 
        transform: translateX(4px) scale(1.05); 
    }
}

/* Responsive adjustment for mac screens (~1440x900): keep size, avoid wrap via hero title width */
@media (max-width: 1500px) and (min-width: 1200px) {
    .hero-title { width: auto; max-width: none; }
    .hero-title .line-1 {
        display: inline-block;
        white-space: nowrap;
        word-break: keep-all;
        overflow-wrap: normal;
    }
    .hero-title .accent-letter { display: inline; }
    .hero { padding-top: 6rem; }
    .hero-content h1 { font-size: clamp(2.5rem, 6.5vw, 5.5rem); }
}

/* Desktop and larger: prevent wrapping regardless of zoom scaling */
@media (min-width: 1024px) {
    .hero-title { width: max-content; }
    .hero-title .line-1 {
        display: inline;
        white-space: nowrap;
        word-break: keep-all;
        overflow-wrap: normal;
    }
    .hero-title .accent-letter { display: inline; }
}

/* Enhanced hero floating particles */
.floating-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-highlight));
    border-radius: 50%;
    animation: heroFloatParticle 12s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(16, 37, 66, 0.4);
    filter: blur(0.5px);
}

.particle-1 {
    top: 25%;
    left: 8%;
    animation-delay: 0s;
    background: linear-gradient(45deg, var(--color-primary), var(--color-highlight));
}

.particle-2 {
    top: 70%;
    left: 92%;
    animation-delay: 2s;
    background: linear-gradient(45deg, var(--color-highlight), var(--color-accent));
}

.particle-3 {
    top: 90%;
    left: 12%;
    animation-delay: 4s;
    background: linear-gradient(45deg, var(--color-accent), var(--color-primary));
}

.particle-4 {
    top: 30%;
    left: 88%;
    animation-delay: 6s;
    background: linear-gradient(45deg, var(--color-primary), var(--color-highlight));
}

.particle-5 {
    top: 80%;
    left: 88%;
    animation-delay: 1s;
    background: linear-gradient(45deg, var(--color-highlight), var(--color-primary));
}

.particle-6 {
    top: 60%;
    left: 8%;
    animation-delay: 2.5s;
    background: linear-gradient(45deg, var(--color-primary), var(--color-highlight));
}

@keyframes heroFloatParticle {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-35px) translateX(20px) scale(1.3);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-20px) translateX(-15px) scale(0.9);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-45px) translateX(25px) scale(1.2);
        opacity: 1;
    }
}
