﻿/* Fondo general */
body {
    background: linear-gradient(to bottom right, #cfd9df, #e2ebf0);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Contenedor principal */
form {
    background-color: #ffffff;
    width: 95%;
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    border: 2px solid #0077ff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Título */
h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #003366;
    font-size: clamp(22px, 4vw, 30px);
}

/* Subtítulo */
h4 {
    margin-top: 20px;
    border-bottom: 2px solid #0077ff;
    padding-bottom: 5px;
    color: #004c99;
    font-size: clamp(16px, 3vw, 20px);
}

/* Etiquetas */
label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    font-size: clamp(14px, 3vw, 18px);
}

/* Campos de texto y fechas */
input[type="text"],
input[type="date"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #bbb;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: clamp(14px, 3.5vw, 18px);
}

/* Botones */
button {
    background-color: #0077ff;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: clamp(14px, 3.5vw, 18px);
    width: 100%;
    margin: 8px 0;
}

    button:hover {
        background-color: #005fd1;
    }

    /* Botón "Agregar activo" */
    button[type="button"]:first-of-type {
        background-color: #2e8b57;
    }

        button[type="button"]:first-of-type:hover {
            background-color: #246b44;
        }

    /* Botón "Enviar" */
    button[type="submit"] {
        background-color: #007c2e;
    }

        button[type="submit"]:hover {
            background-color: #006122;
        }

/* Bloque de activos */
#activos {
    margin-top: 10px;
}

.activo {
    background: #f0f0f0;
    border-radius: 5px;
    padding: 12px;
    margin-bottom: 10px;
}

/* Texto de confirmación */
#mensaje {
    text-align: center;
    margin-top: 15px;
    font-size: clamp(14px, 3vw, 18px);
    color: green;
}

/* Tabla estilo Excel */
#tablaActivos {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: white;
    font-size: clamp(14px, 3vw, 18px);
}

    #tablaActivos th {
        background-color: #e6f0ff;
        border: 1px solid #aaa;
        padding: 10px;
        text-align: left;
        font-weight: bold;
    }

    #tablaActivos td {
        border: 1px solid #ccc;
        padding: 8px;
    }

    /* Inputs dentro de la tabla */
    #tablaActivos input {
        width: 100%;
        padding: 6px;
        border: none;
        outline: none;
        background: transparent;
        font-size: inherit;
    }

/* Botón borrar */
.borrarBtn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
}

    .borrarBtn:hover {
        background-color: #d93636;
    }

@media (max-width: 600px) {
    body {
        zoom: 1.9;
    }
}

#mensaje {
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
    font-weight: normal;
}


