:root {
    --primary: #003D33;
    --secondary: #006151;
    --accent: #02C2A8;
    --bg-light: #F8FAF9;
    --text-dark: #1A2E2A;
    --text-muted: #5A756F;
    --card-bg: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

.font-roboto {
    font-family: 'Roboto', sans-serif;
}

.font-bold {
    font-weight: 700;
}

a {
    text-decoration: none;
}

/* NAVEGACIÓN */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--card-bg);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 61, 51, 0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.05);
}

.icon-logo {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-item {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(2, 194, 168, 0.1);
    color: var(--secondary);
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.nav-item.active .nav-icon {
    color: var(--accent);
}

.nav-icon {
    width: 18px;
    height: 18px;
}

/* IDIOMAS */
.lang-switch {
    display: flex;
    background-color: var(--bg-light);
    border-radius: 30px;
    padding: 4px;
    border: 1px solid rgba(2, 194, 168, 0.2);
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(2, 194, 168, 0.4);
}

/* HERO Y CONTENEDOR */
.hero {
    text-align: center;
    padding: 4rem 1rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

.container {
    max-width: 1000px;
    margin: -30px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* TARJETAS INICIO */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(2, 194, 168, 0.1);
    transition: all 0.4s ease;
    display: block;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 61, 51, 0.12);
    border-color: var(--accent);
}

.card-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(2, 194, 168, 0.2) 0%, rgba(0, 97, 81, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.feature-card:hover .card-icon-wrapper {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}

.card-icon-wrapper i {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.btn-outline {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    border: 2px solid var(--accent);
    color: var(--secondary);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.feature-card:hover .btn-outline {
    background: var(--accent);
    color: white;
}

/* DOCUMENTACIÓN (PASOS) */
.step-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-top: 4px solid var(--accent);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.step-number {
    background: var(--secondary);
    color: white;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: 700;
}

.step-header h2 {
    color: var(--primary);
    font-size: 1.6rem;
}

.desc-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* VIDEOS */
.video-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.section-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 61, 51, 0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ANIMACIONES */
.animate-fade-down {
    animation: fadeDown 0.8s ease forwards;
}

.animate-fade-up {
    animation: fadeUp 0.8s ease forwards;
}

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

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

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

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        padding: 10px;
        justify-content: space-around;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-item {
        flex-direction: column;
        gap: 4px;
        font-size: 0.8rem;
        padding: 5px;
    }

    .lang-switch {
        margin-left: auto;
    }
}