/* Hero Section */
.hero {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Hero Background Image - YUNTO STUDIO Watermark */
.hero-background-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    user-select: none;
    pointer-events: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px 2rem 0 2rem;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 2rem;
    height: 100vh;
    min-height: 100vh;
    box-sizing: border-box;
    width: 100%;
}

.hero-content {
    opacity: 0;
    transform: translateY(50px);
    animation: heroContentReveal 1.2s ease-out 0.3s forwards;
    text-align: left;
    max-width: 100%;
    width: 100%;
    z-index: 2;
}

/* Desktop: Two-column grid layout */
@media screen and (min-width: 1024px) {
    section#inicio.hero .hero-container {
        display: grid !important;
        grid-template-columns: 0.8fr 1.2fr !important;
        align-items: center !important;
        gap: 2rem !important;
    }

    section#inicio.hero .hero-content {
        max-width: 100% !important;
        width: 100% !important;
        text-align: left !important;
    }

    section#inicio.hero .hero-tags,
    section#inicio.hero .hero-title,
    section#inicio.hero .hero-description,
    section#inicio.hero .cta-button {
        text-align: left !important;
        margin-left: 0 !important;
    }

    section#inicio.hero .tag-row {
        justify-content: flex-start !important;
    }
}

.hero-tags {
    opacity: 0;
    transform: translateY(30px);
    animation: tagsReveal 0.8s ease-out 0.6s forwards;
}

.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: titleReveal 1s ease-out 0.9s forwards;
}

.hero-description {
    opacity: 0;
    transform: translateY(30px);
    animation: descriptionReveal 0.8s ease-out 1.2s forwards;
}

.cta-button {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: buttonReveal 0.8s ease-out 1.5s forwards;
}

@keyframes heroContentReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tagsReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes descriptionReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-tags {
    margin-bottom: 3rem;
    width: 100%;
}

.tag-row {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(0.3rem, 1vw, 0.5rem);
    margin-bottom: 0;
    justify-content: flex-start;
    width: 100%;
}

.tag {
    background: transparent;
    padding: 0.4rem 0.75rem;
    border-radius: 15px;
    font-size: clamp(0.5rem, 1.2vw, 0.85rem);
    font-weight: 500;
    color: #666;
    border: 1px solid #999;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.tag:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.hero-title {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 2rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: -3px;
    text-align: center;
}

.highlight {
    color: #333;
    font-style: italic;
    font-weight: 400;
    font-size: 1.1em;
    letter-spacing: -1px;
    display: inline;
}

.hero-description {
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 400;
    text-align: left;
    max-width: 700px;
}

.cta-button {
    background: linear-gradient(135deg, #F04037, #E53935);
    color: white;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    display: inline-block;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(240, 64, 55, 0.3);
    margin-top: 1rem;
}

.cta-button:hover {
    background: linear-gradient(135deg, #E53935, #D32F2F);
    color: white;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 20px 40px rgba(240, 64, 55, 0.4);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.cta-button:active::after {
    width: 300px;
    height: 300px;
}

.cta-button:focus,
.cta-button:active,
.cta-button:visited {
    text-decoration: none !important;
    color: white !important;
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

/* Hero Robot Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    animation: imageSlideIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
    will-change: transform, opacity;
    z-index: 2;
}

.hero-image img,
.hero-robot {
    width: 100%;
    height: auto;
    max-width: 1600px;
    object-fit: contain;
    transform-origin: center center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, filter;
    animation: gentleFloat 8s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

@keyframes imageSlideIn {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Elegant hover effects */
.hero-image:hover img {
    transform: translateY(-8px) scale(1.02);
    filter: drop-shadow(0 25px 50px rgba(240, 64, 55, 0.15));
}

.hero-image:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Elegant entrance animation */
@keyframes elegantEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Gentle floating animation */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-8px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-0.5deg);
    }
}

/* Elegant background glow */
.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(
        circle at center,
        rgba(240, 64, 55, 0.08) 0%,
        rgba(240, 64, 55, 0.04) 40%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    animation: subtleGlow 12s ease-in-out infinite;
    z-index: -1;
    border-radius: 50%;
    opacity: 0.7;
}


@keyframes subtleGlow {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.9);
    }
    33% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.05);
    }
    66% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

/* Hero active state - simplified elegant animations */
.hero-image.hero-active {
    animation: elegantEntrance 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-image.hero-active img {
    animation: gentleFloat 8s ease-in-out infinite;
}

.hero-image.hero-active::before {
    animation: subtleGlow 12s ease-in-out infinite;
}

/* Smooth transitions for JavaScript interactions are now in main rules above */
