/* ================= GLOBAL ================= */
.add_categoria_container * {
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
}

/* contenedor principal */
.add_categoria_container {
    max-width: 600px;
    margin: 2rem auto;
    background: #f9fbfd;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
    padding: 2rem;
}

/* header */
.add_categoria_header {
    border-bottom: 2px solid #e6edf2;
    padding-bottom: 1.2rem;
    margin-bottom: 2rem;
}

.add_categoria_header h1 {
    font-size: 1.9rem;
    font-weight: 600;
    color: #0a2c3d;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.01em;
}

.add_categoria_sub {
    color: #5e7a8c;
    font-size: 0.95rem;
    margin: 0;
}

/* tarjeta del formulario */
.add_categoria_card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,20,30,0.02);
    border: 1px solid #e9f0f4;
}

/* campos del formulario */
.add_categoria_form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.add_categoria_field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.add_categoria_field label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #3d6372;
    font-weight: 700;
}

.add_categoria_input {
    background: #f3f7fa;
    border: 1.5px solid #e2ecf0;
    border-radius: 12px;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    transition: all 0.15s;
    color: #153243;
    font-family: inherit;
    width: 100%;
}

.add_categoria_input:focus {
    border-color: #3fa3b6;
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(63,163,182,0.06);
}

/* botones */
.add_categoria_actions {
    display: flex;
    justify-content: flex-end;
    gap: 1.2rem;
    margin-top: 2rem;
}

.add_categoria_btn {
    border: none;
    border-radius: 40px;
    padding: 0.7rem 2.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.15s;
}

.add_categoria_btn_cancel {
    text-decoration: none;
    background: var(--red-background-light);
    color: #3d5f6e;
    border: 1.5px solid var(--red-background-default);
}

.add_categoria_btn_cancel:hover {
    background: var(--red-background-default);
    color: #1f404e;
}

.add_categoria_btn_save {
    background: #1f7f8c;
    color: white;
    box-shadow: 0 8px 16px rgba(31,127,140,0.15);
}

.add_categoria_btn_save:hover {
    background: #146b77;
    transform: translateY(-2px);
}

/* ================= RESPONSIVE ================= */

/* 1366px para abajo */
@media (max-width: 1366px) {

    .add_categoria_container {
        max-width: 90%;
        padding: 1.8rem;
        margin: 1.5rem auto;
    }

    .add_categoria_header h1 {
        font-size: 1.7rem;
    }

    .add_categoria_sub {
        font-size: 0.9rem;
    }

    .add_categoria_card {
        padding: 1.8rem;
    }

    .add_categoria_form {
        gap: 1.2rem;
    }

    .add_categoria_input {
        font-size: 0.88rem;
        padding: 0.6rem 0.9rem;
    }

    .add_categoria_actions {
        gap: 1rem;
    }

    .add_categoria_btn {
        padding: 0.65rem 2rem;
        font-size: 0.9rem;
    }
}

/* 1024px para abajo */
@media (max-width: 1024px) {

    .add_categoria_container {
        max-width: 95%;
        padding: 1.5rem;
    }

    .add_categoria_card {
        padding: 1.5rem;
    }

    .add_categoria_actions {
        flex-direction: column;
        align-items: stretch;
    }

    .add_categoria_btn {
        width: 100%;
        text-align: center;
    }
}

/* 768px para abajo */
@media (max-width: 768px) {

    .add_categoria_container {
        border-radius: 18px;
        padding: 1.2rem;
    }

    .add_categoria_header h1 {
        font-size: 1.5rem;
    }

    .add_categoria_card {
        padding: 1.2rem;
        border-radius: 16px;
    }

    .add_categoria_input {
        font-size: 0.85rem;
    }
}

/* 480px para abajo */
@media (max-width: 480px) {

    .add_categoria_container {
        padding: 1rem;
        margin: 1rem;
    }

    .add_categoria_header {
        margin-bottom: 1.2rem;
    }

    .add_categoria_header h1 {
        font-size: 1.3rem;
    }

    .add_categoria_btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}
