* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.hero-container {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 24px;
    margin: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1556761175-b413da4baf72?q=80&w=1374&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(0, 77, 64, 0.95) 0%,
        rgba(0, 77, 64, 0.95) 40%,
        rgba(0, 77, 64, 0.85) 60%,
        rgba(0, 77, 64, 0.5) 80%,
        rgba(0, 77, 64, 0) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 max(5vw, 60px);
    max-width: min(800px, 90%);
    color: white;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.hero-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4F46E5;
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 140px;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.hero-button:hover {
    background-color: #4338CA;
    transform: translateY(-2px);
}

.hero-testimonial {
    margin-top: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

.avatar-group {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    overflow: hidden;
    margin-left: -8px;
    opacity: 0;
    transform: scale(0.5);
    animation: avatarPop 0.4s ease-out forwards;
}

.avatar:nth-child(1) {
    animation-delay: 0.6s;
}

.avatar:nth-child(2) {
    animation-delay: 0.8s;
}

.avatar:nth-child(3) {
    animation-delay: 1s;
}

@keyframes avatarPop {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.avatar:first-child {
    margin-left: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-size: 14px;
    opacity: 0;
    margin: 0;
    animation: fadeIn 0.4s ease-out forwards;
    animation-delay: 1.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.9;
    }
}

/* Estilos para la animación de texto */
.fancy-text-container {
    display: inline-block;
    position: relative;
    text-align: left;
    height: auto;
    top: 5px;
    min-width: 120px;
    visibility: visible;
}

.fancy-text-lists {
    position: relative;
    display: inline-block;
    padding: 0;
    margin: 0;
    width: 100%;
}

.fancy-text {
    display: inline-block;
    position: absolute;
    white-space: nowrap;
    left: 10px;
    top: -52px;
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.34, 2.2, 0.64, 1);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.fancy-text.is-visible {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.fancy-text.is-hidden {
    transform: translateX(-50px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in;
}

.fancy-text.is-exiting {
    transform: translateX(50px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in;
}

.title-main {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.title-secondary {
    font-size: 0.9em;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .hero-container {
        height: calc(100vh - 20px);
        width: calc(100% - 20px);
        border-radius: 16px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 36px;
        gap: 4px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-button {
        padding: 10px 20px;
        font-size: 15px;
    }

    .title-main {
        gap: 6px;
    }

    .fancy-text {
        top: -40px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .hero-container {
        height: 80vh;
        width: calc(100% - 10px);
        border-radius: 12px;
    }


    .hero-title {
        font-size: 32px;
    }

    .hero-testimonial {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .title-main {
        gap: 4px;
    }

    .fancy-text {
       top: -35px;
    }

    .hero-button {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 120px;
    }
}
