:root {
    --verde: #44D62C;
    --verde-2: #63ff47;
    --negro: #0b0b0b;
    --negro-2: #121212;
    --gris: #1b1b1b;
    --gris-2: #252525;
    --gris-3: #a9a9a9;
    --blanco: #ffffff;
    --borde: rgba(255,255,255,0.08);
    --sombra: 0 20px 60px rgba(0,0,0,0.45);
    --sombra-verde: 0 0 25px rgba(68,214,44,0.22);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Inter', sans-serif;
    color: var(--blanco);
    background-color: var(--negro);
}

body {
    background-image: url('../img/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.75), rgba(0,0,0,0.88)),
        radial-gradient(circle at top center, rgba(68,214,44,0.08), transparent 35%);
    z-index: 1;
}

.main-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 18px;
}

.hero-card {
    width: 100%;
    max-width: 1180px;

    background:
        linear-gradient(rgba(0,0,0,0.78), rgba(0,0,0,0.92)),
        url('../img/fondo.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 26px;
    padding: 40px;
    position: relative;
    border: 1px solid var(--borde);
    box-shadow: var(--sombra);

    /* mejora rendimiento */
    will-change: transform;
}
.hero-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--verde), transparent);
    opacity: 0.95;
}

.brand-box {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.logo {
    width: 260px;
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.hero-text {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 34px auto;
}

.tag {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid rgba(68,214,44,0.28);
    border-radius: 999px;
    color: var(--verde-2);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    background: rgba(68,214,44,0.08);
    margin-bottom: 16px;
}

.hero-text h1 {
    margin: 0 0 12px 0;
    font-size: 42px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-text p {
    margin: 0;
    color: #d2d2d2;
    font-size: 16px;
    line-height: 1.7;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.module-card {
    display: flex;
    gap: 16px;
    text-decoration: none;
    color: var(--blanco);
    background: linear-gradient(180deg, rgba(33,33,33,0.9), rgba(20,20,20,0.92));
    border: 1px solid var(--borde);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.28s ease;
    position: relative;
    overflow: hidden;
    min-height: 230px;
}

.module-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(68,214,44,0.07), transparent 45%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.module-card:hover {
    transform: translateY(-6px);
    border-color: rgba(68,214,44,0.35);
    box-shadow: var(--sombra-verde);
}

.module-card:hover::before {
    opacity: 1;
}

.module-alerta {
    border-color: rgba(68,214,44,0.22);
}

.icon-box {
    min-width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: rgba(68,214,44,0.12);
    border: 1px solid rgba(68,214,44,0.2);
    position: relative;
    z-index: 2;
}

.module-content {
    position: relative;
    z-index: 2;
}

.module-content h2 {
    margin: 0 0 10px 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}

.module-content p {
    margin: 0 0 18px 0;
    color: var(--gris-3);
    font-size: 14px;
    line-height: 1.65;
}

.module-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--verde-2);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.footer-note {
    margin-top: 28px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 18px;
}

.footer-note p {
    margin: 0;
    color: #9d9d9d;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .modules-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 34px;
    }

    .hero-card {
        padding: 28px 20px;
    }

    .logo {
        width: 210px;
    }
}

@media (max-width: 640px) {
    .main-wrapper {
        padding: 20px 12px;
    }

    .hero-card {
        border-radius: 20px;
        padding: 22px 16px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .module-card {
        padding: 18px;
        min-height: auto;
    }

    .module-content h2 {
        font-size: 19px;
    }

    .icon-box {
        min-width: 50px;
        height: 50px;
        font-size: 22px;
    }
}


.page-form .main-wrapper {
    padding: 30px 16px;
}

.form-card {
    width: 100%;
    max-width: 920px;
    background: rgba(14,14,14,0.86);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    padding: 30px;
    position: relative;
    z-index: 2;
}

.form-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--verde), transparent);
}

.topbar-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.btn-volver {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-volver:hover {
    border-color: rgba(68,214,44,0.35);
    color: var(--verde-2);
    box-shadow: 0 0 18px rgba(68,214,44,0.12);
}

.logo-form {
    width: 150px;
    max-width: 100%;
    border-radius: 10px;
}

.form-header {
    margin-bottom: 24px;
}

.form-header h1 {
    margin: 0 0 10px 0;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.form-header p {
    margin: 0;
    color: #d0d0d0;
    font-size: 15px;
    line-height: 1.7;
    max-width: 760px;
}

.tag-alert {
    margin-bottom: 14px;
}

.info-box {
    background: linear-gradient(180deg, rgba(68,214,44,0.08), rgba(68,214,44,0.03));
    border: 1px solid rgba(68,214,44,0.18);
    border-radius: 18px;
    padding: 18px 18px 14px 18px;
    margin-bottom: 24px;
}

.info-box h3 {
    margin: 0 0 10px 0;
    color: var(--verde-2);
    font-size: 17px;
}

.info-box ul {
    margin: 0;
    padding-left: 18px;
    color: #d6d6d6;
}

.info-box li {
    margin-bottom: 8px;
    line-height: 1.55;
    font-size: 14px;
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: #f0f0f0;
    font-size: 14px;
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.04);
    color: white;
    border-radius: 14px;
    padding: 14px 14px;
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9b9b9b;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(68,214,44,0.45);
    box-shadow: 0 0 0 4px rgba(68,214,44,0.10);
    background: rgba(255,255,255,0.06);
}

.section-title {
    margin-top: 4px;
    padding-top: 4px;
}

.section-title h2 {
    margin: 0;
    font-size: 20px;
    color: var(--verde-2);
    letter-spacing: -0.3px;
}

.legal-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px;
}

.check-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.check-line input[type="checkbox"] {
    margin-top: 3px;
    transform: scale(1.15);
    accent-color: var(--verde);
}

.check-line span {
    color: #dadada;
    font-size: 14px;
    line-height: 1.55;
}

.btn-primary {
    border: none;
    background: linear-gradient(90deg, var(--verde), var(--verde-2));
    color: #0b0b0b;
    font-weight: 800;
    font-size: 15px;
    padding: 15px 18px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 4px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(68,214,44,0.22);
}

.hidden-block {
    display: none;
}

@media (max-width: 768px) {
    .form-card {
        padding: 22px 16px;
        border-radius: 20px;
    }

    .topbar-form {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-form {
        width: 130px;
    }

    .form-header h1 {
        font-size: 27px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}