/* Fuentes de Google: Jost (como alternativa a Avenir) e Inter para legibilidad extra */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Jost:wght@400;700;800&display=swap');

:root {
    --bg-color: #333333;
    --text-color: #ffffff;
    --accent-color: #ffffff;
    --glass-bg: rgba(65, 65, 65, 0.2);
    --border-color: rgba(255, 255, 255, 0.2);
    --font-main: 'Jost', 'Inter', sans-serif;
    --font-heading: 'Jost', 'Inter', sans-serif;
    --color-hope: #32ffead5;
    /* Esmeralda/Teal sutil para esperanza */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Fondo con la imagen WebP optimizada */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7)),
        url('../img/background.webp') no-repeat center center;
    background-size: cover;
    z-index: -1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    justify-content: center;
}

/* Glassmorphism card for content */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

header h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.status-badge {
    font-family: var(--font-heading);
    display: inline-block;
    padding: 0.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 0;
    border-top: 2px solid var(--color-hope);
    border-bottom: 2px solid var(--color-hope);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.status-badge:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5em;
}

.description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.secondary-text {
    font-size: 1.1rem;
    opacity: 1;
    margin-bottom: 2rem;
    border-left: 4px solid #fff;
    padding-left: 1.5rem;
    text-align: left;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    width: 100%;
}

.service-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
}

.service-item h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.service-item h3 span {
    position: relative;
}

.service-item h3 span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-hope);
}

/* Keywords cloud for SEO/Accessibility */
.keywords-cloud {
    margin-top: 4rem;
    text-align: center;
    opacity: 1;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 800px;
}

.keyword {
    background: rgba(0, 0, 0, 0.7);
    /* Más contraste */
    color: #fff;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: default;
    opacity: 0;
}

.keyword.show {
    animation: impactIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.keyword:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.05);
    opacity: 1;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes impactIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(20px);
    }

    100% {
        opacity: 0.7;
        transform: scale(1) translateY(0);
    }
}

footer {
    margin-top: 3rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.corr-lnk {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--color-hope);
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    opacity: 1;
    transition: all 0.3s ease;
}

.corr-lnk:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    header h1 {
        font-size: 2.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .description {
        font-size: 1.1rem;
    }
}