/**
 * Estilos de Hero Section
 */

.hero {
    background: transparent;
    color: white;
    padding: 110px 24px 80px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-30px) scale(1.08); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.disponible-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(58, 123, 213, 0.07);
    border: 1px solid rgba(58, 123, 213, 0.2);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.3px;
    animation: fadeInDown 0.8s ease 0.1s both;
}

.disponible-dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    animation: dotPulse 1.8s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50%       { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 0.85em;
    background: var(--primary-color);
    margin-left: 2px;
    vertical-align: middle;
    animation: cursorBlink 0.7s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-tag {
    display: inline-block;
    background: rgba(58, 123, 213, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(58, 123, 213, 0.3);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease;
}

.hero-content h1 {
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #0f1729;
    letter-spacing: -2.5px;
    line-height: 1.05;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInDown 0.8s ease;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    color: #5a6478;
    font-weight: 400;
    animation: fadeInUp 0.8s ease 0.2s both;
    max-width: 640px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-outline {
    text-decoration: none;
    display: inline-block;
}

.btn-outline {
    background: rgba(15, 23, 41, 0.04);
    color: #0f1729;
    border: 1px solid rgba(15, 23, 41, 0.14);
    padding: 13px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    font-family: inherit;
    font-size: 0.98rem;
    letter-spacing: 0.2px;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(58, 123, 213, 0.06);
}

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Hero services desplegable */
.hero-services {
    margin-top: 1.6rem;
    display: inline-block;
    text-align: left;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-services-toggle {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
    white-space: nowrap;
}

.hero-services-toggle:hover {
    background: rgba(225,29,72,0.1);
    border-color: rgba(225,29,72,0.35);
    color: var(--text-bright);
}

.hero-services-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.hero-services-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    margin-top: 0.5rem;
    background: rgba(10,1,2,0.88);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    min-width: 280px;
}

.hero-services-panel.open {
    max-height: 280px;
    opacity: 1;
}

.hero-service-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s;
}

.hero-service-item:last-child {
    border-bottom: none;
}

.hero-service-item:hover {
    background: rgba(225,29,72,0.07);
}

.hero-service-item i {
    font-size: 1rem;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.hero-service-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-bright);
    font-weight: 600;
}

.hero-service-item span {
    font-size: 0.75rem;
    color: var(--text-color);
}

.hero-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    color: #5a6478;
    font-weight: 400;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.3s ease;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-whatsapp:hover {
    color: var(--primary-color);
}

.hero-whatsapp i {
    font-size: 1.1rem;
    color: #4ade80;
}

.hero-whatsapp:hover {
    color: var(--text-bright);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8993a8;
    font-size: 1rem;
    text-decoration: none;
    animation: scrollBounce 1.8s ease-in-out infinite;
    transition: color 0.3s;
}

.scroll-indicator a:hover {
    color: var(--primary-color);
}

.scroll-indicator a:hover {
    color: var(--primary-color);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50%       { transform: translateY(8px); opacity: 1; }
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 80px;
        min-height: 420px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    .hero-whatsapp {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 16px 70px;
        min-height: 380px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        letter-spacing: -0.3px;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

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

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .hero-tag {
        font-size: 0.7rem;
    }

    .scroll-indicator {
        display: none;
    }
}
