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

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: rgba(51, 51, 51, 0.89);
    background-image: url('../img/fondo2.png');
    background-repeat: no-repeat;
    background-position: -190px -10px;
    background-size: 550px;
    color: #222;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
}

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

.header,
.main,
.footer {
    position: relative;
    z-index: 1;
    width: 100%;
}

.main {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    flex: 1;
}

.main--login {
    align-items: center;
    padding: 32px 20px;
}

.header__container,
.footer__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header__logo {
    width: 260px;
    height: auto;
}

.header__logout,
.button,
.button--submit,
.login-button {
    transition: all 0.25s ease;
}

.header__logout {
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 14px;
}

.header__logout:hover {
    background: #e60023;
    color: #fff;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-logo {
    width: 250px;
    margin-bottom: 30px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.5s ease-out;
}

.login-title {
    margin-bottom: 8px;
}

.login-subtitle {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.4;
}

.login-input,
.formulario__input,
.formulario__txtarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    background: #fff;
}

.login-input {
    margin: 10px 0;
}

.formulario__input:focus,
.formulario__txtarea:focus,
.login-input:focus {
    outline: none;
    border-color: #181818;
    box-shadow: 0 0 0 3px rgba(24, 24, 24, 0.12);
}

.login-button {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 999px;
    color: #d9d9d9;
    background-color: #181818;
    font-size: 16px;
    cursor: pointer;
}

.login-button:hover {
    color: #fff;
    background-color: #2b2b2b;
}
.dashboard {
    text-align: left;
    max-width: 1180px;
    width: 100%;
    padding: 22px 0 8px;
}

.dashboard__eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f3e3ba;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard__title {
    color: #fff;
    max-width: 720px;
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.dashboard__subtitle {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 44px;
    font-size: 18px;
    line-height: 1.65;
}

.dashboard__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 22px;
}

.dashboard .card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 239, 231, 0.96)),
        #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 22px;
    padding: 28px;
    text-decoration: none;
    color: #241f1a;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dashboard .card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #d7b05f, #9b6b31);
}

.dashboard .card:hover {
    transform: translateY(-8px);
    border-color: rgba(215, 176, 95, 0.55);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
}

.card__kicker {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 18px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(36, 31, 26, 0.08);
    color: #7a5d2f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard .card__title {
    margin-bottom: 14px;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.dashboard .card__text {
    flex: 1;
    margin-bottom: 24px;
    color: #5f564c;
    font-size: 15px;
    line-height: 1.65;
    max-width: 34ch;
}

.card__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1f1a14;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.card__cta::after {
    content: "→";
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.dashboard .card:hover .card__cta::after {
    transform: translateX(4px);
}

.footer {
    text-align: center;
    color: #ccc;
    padding: 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 999px;
    background: #181818;
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.button:hover {
    background: #005a9e;
}

.formulario {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
    width: min(1100px, 100%);
    margin: 0 auto;
}

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

.formulario__title_title {
    flex: 1;
}

.formulario__title_title h1 {
    color: #555;
    margin: 0;
}

.button--volver {
    background: #555;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
}

.button--volver:hover {
    background: #777;
}

.formulario__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.formulario__fila-titular {
    display: grid;
    grid-template-columns: 20% 40% 40%;
    gap: 20px;
    width: 96%;
    margin-bottom: 20px;
}

.formulario__grupo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.formulario__grupo--separado {
    margin-top: 20px;
}

.formulario__txtarea {
    min-height: 90px;
    resize: vertical;
}

.formulario__select {
    appearance: none;
}

.formulario__separator {
    margin: 28px 0;
    border: none;
    border-top: 1px solid #ddd;
}

.formulario__acciones {
    margin-top: 25px;
    text-align: center;
}

.formulario__mensaje {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 8px;
    text-align: left;
    line-height: 1.45;
}

.formulario__mensaje--error {
    background: #fff1f1;
    color: #8f1d1d;
    border: 1px solid #f0b6b6;
}

.formulario__mensaje--success {
    background: #eef9f0;
    color: #1f6b33;
    border: 1px solid #b8dfc1;
}

.button--submit {
    background: linear-gradient(135deg, #181818, #333333);
    color: #d9d9d9;
    font-weight: 600;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.button--submit:hover {
    background: linear-gradient(135deg, #333333, #181818);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.button--submit:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.button--submit:disabled,
.login-button:disabled,
.is-loading {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

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

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

@media (max-width: 768px) {
    .formulario {
        padding: 24px;
    }

    .formulario__grid,
    .dashboard__cards {
        grid-template-columns: 1fr;
    }

    .formulario__fila-titular {
        grid-template-columns: 1fr;
    }

    .formulario__title,
    .header__container {
        flex-direction: column;
        align-items: stretch;
    }

    .formulario__volver {
        align-self: flex-start;
    }
}

@media (max-width: 600px) {
    .header__logo,
    .login-logo {
        width: 200px;
    }

    .login-box,
    .formulario {
        padding: 24px;
    }

    .dashboard {
        text-align: center;
    }

    .dashboard__eyebrow {
        margin-left: auto;
        margin-right: auto;
    }

    .dashboard__title,
    .dashboard__subtitle {
        max-width: none;
    }

    .dashboard .card {
        min-height: auto;
    }
}
