/* --- Rediseño total: colores, botones, tablas, campos, experiencia moderna --- */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #e3f0fc 0%, #b3d8f7 100%);
    margin: 0;
    padding: 0;
    color: #1a2330;
    min-height: 100vh;
    letter-spacing: 0.01em;
}
header {
    background: linear-gradient(90deg, #0d47a1 0%, #00bcd4 100%);
    color: #fff;
    padding: 2.2rem 0 1.2rem 0;
    text-align: center;
    box-shadow: 0 4px 24px rgba(25, 118, 210, 0.10);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    overflow: hidden;
}
header h1 {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0;
    text-shadow: 0 2px 12px rgba(25, 118, 210, 0.10);
}
footer {
    background: linear-gradient(90deg, #0d47a1 0%, #00bcd4 100%);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 2;
    font-size: 1.08rem;
    letter-spacing: 0.02em;
    box-shadow: 0 -2px 12px rgba(25, 118, 210, 0.10);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}
main {
    margin: 2.5rem auto 5.5rem auto;
    max-width: 900px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(33, 150, 243, 0.13);
    padding: 2.5rem 2rem 2rem 2rem;
    border: 1.5px solid #b3d8f7;
    position: relative;
    z-index: 1;
}
.form-section, .tabla-section {
    margin-bottom: 2rem;
    background: #f7fbff;
    border-radius: 16px;
    padding: 1.3rem 1.1rem 1.5rem 1.1rem;
    box-shadow: 0 2px 12px rgba(33, 150, 243, 0.07);
    border: 1.5px solid #b3d8f7;
}
.form-section form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    align-items: stretch;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.form-section .form-group:last-child {
    margin-bottom: 0;
}
.form-section button[type="submit"],
.form-section .btn-volver,
.btn-editar, .btn-eliminar, .paginacion a {
    width: 100%;
    max-width: 420px;
    margin: 0.3rem auto 0.5rem auto;
    display: block;
    font-size: 1.13rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.85rem 0;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, #00bcd4 0%, #1565c0 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.10);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-align: center;
    text-decoration: none;
}
.form-section button[type="submit"]:hover,
.form-section .btn-volver:hover,
.btn-editar:hover, .btn-eliminar:hover, .paginacion a:hover {
    background: linear-gradient(90deg, #1976d2 0%, #00bcd4 100%);
    color: #fffde7;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.18);
}
.btn-editar {
    background: linear-gradient(90deg, #fffde7 0%, #ffe082 100%);
    color: #1976d2;
    border: 1.5px solid #ffe082;
    font-size: 1.08rem;
    margin-bottom: 0.2rem;
}
.btn-editar:hover {
    background: linear-gradient(90deg, #fff9c4 0%, #ffe082 100%);
    color: #0d47a1;
}
.btn-eliminar {
    background: linear-gradient(90deg, #ffebee 0%, #ffcdd2 100%);
    color: #d32f2f;
    border: 1.5px solid #ffcdd2;
    font-size: 1.08rem;
    margin-bottom: 0.2rem;
}
.btn-eliminar:hover {
    background: linear-gradient(90deg, #ffcdd2 0%, #ffebee 100%);
    color: #b71c1c;
}
.paginacion {
    margin-top: 1.5rem;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.paginacion a {
    width: auto;
    min-width: 44px;
    padding: 0.5rem 1.1rem;
    font-size: 1.08rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1.5px solid #b3d8f7;
    background: #e3f0fc;
    color: #1976d2;
    margin: 0;
    box-shadow: none;
    display: inline-block;
}
.paginacion a.activa, .paginacion a:hover {
    background: linear-gradient(90deg, #1976d2 0%, #00bcd4 100%);
    color: #fff;
    border: 1.5px solid #1976d2;
}
.tabla-equipos {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(33, 150, 243, 0.07);
}
.tabla-equipos th, .tabla-equipos td {
    padding: 1rem 0.7rem;
    text-align: left;
    border-bottom: 1.5px solid #e3f0fc;
    font-size: 1.08rem;
}
.tabla-equipos th {
    background: linear-gradient(90deg, #0d47a1 0%, #00bcd4 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.13rem;
    border: none;
}
.tabla-equipos tr:last-child td {
    border-bottom: none;
}
.tabla-equipos tr:hover {
    background: #f1f8fe;
    transition: background 0.2s;
}
.form-section .form-group label {
    font-size: 1.13rem;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 0.2rem;
}
.form-section input[type="text"],
.form-section textarea,
.form-section select {
    border: 2px solid #00bcd4;
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    font-size: 1.13rem;
    background: #f7fbff;
    color: #1a2330;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(33, 150, 243, 0.07);
}
.form-section input[type="text"]:focus,
.form-section textarea:focus,
.form-section select:focus {
    border: 2.5px solid #1565c0;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.13);
}
.form-section .checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.2rem;
    margin-top: 0.2rem;
}
.form-section .checklist label {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1976d2;
    background: #e3f0fc;
    border-radius: 8px;
    padding: 0.3rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 1px 4px rgba(33, 150, 243, 0.04);
}
.mensaje {
    background: linear-gradient(90deg, #00bcd4 0%, #1976d2 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    font-size: 1.13rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.10);
}
@media (max-width: 600px) {
    main {
        padding: 1rem 0.3rem 1.5rem 0.3rem;
        max-width: 100vw;
        border-radius: 0;
        box-shadow: none;
    }
    .form-section, .tabla-section {
        padding: 0.7rem 0.2rem 1rem 0.2rem;
        border-radius: 0;
        box-shadow: none;
    }
    .tabla-equipos th, .tabla-equipos td {
        padding: 0.5rem 0.3rem;
        font-size: 0.97rem;
    }
    .paginacion a {
        font-size: 0.97rem;
        padding: 0.4rem 0.7rem;
    }
    .form-section .form-group label {
        font-size: 1.01rem;
    }
    .form-section input[type="text"],
    .form-section textarea,
    .form-section select {
        font-size: 1rem;
        padding: 0.6rem 0.7rem;
    }
    .form-section .checklist label {
        font-size: 0.97rem;
        padding: 0.15rem 0.5rem;
    }
    .form-section button[type="submit"],
    .form-section .btn-volver,
    .btn-editar, .btn-eliminar {
        font-size: 1.01rem;
        padding: 0.7rem 0;
    }
}
.form-section form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    align-items: stretch;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.form-section .form-group:last-child {
    margin-bottom: 0;
}
.form-section button[type="submit"],
.form-section .btn-volver {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 0.5rem auto;
    display: block;
    font-size: 1.13rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.85rem 0;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, #00bcd4 0%, #1565c0 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.10);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.form-section button[type="submit"]:hover,
.form-section .btn-volver:hover {
    background: linear-gradient(90deg, #1976d2 0%, #00bcd4 100%);
    color: #fffde7;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.18);
}
.form-section .btn-volver {
    margin-bottom: 1.2rem;
    margin-top: 0.2rem;
    font-size: 1.08rem;
    font-weight: 600;
    background: linear-gradient(90deg, #00bcd4 0%, #1565c0 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.10);
    text-align: center;
    text-decoration: none;
}
.form-section .btn-volver:active {
    background: #1976d2;
}
.form-section .form-group label {
    font-size: 1.08rem;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 0.2rem;
}
.form-section input[type="text"],
.form-section textarea,
.form-section select {
    border: 1.5px solid #00bcd4;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 1.08rem;
    background: #f7fbff;
    color: #1a2330;
    outline: none;
    transition: border 0.2s;
}
.form-section input[type="text"]:focus,
.form-section textarea:focus,
.form-section select:focus {
    border: 2px solid #1565c0;
}
.form-section .checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.2rem;
    margin-top: 0.2rem;
}
.form-section .checklist label {
    font-size: 1.01rem;
    font-weight: 500;
    color: #1976d2;
    background: #e3f0fc;
    border-radius: 6px;
    padding: 0.2rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
@media (max-width: 600px) {
    .form-section form {
        gap: 0.7rem;
    }
    .form-section button[type="submit"],
    .form-section .btn-volver {
        font-size: 1.01rem;
        padding: 0.7rem 0;
    }
    .form-section .form-group label {
        font-size: 1rem;
    }
    .form-section input[type="text"],
    .form-section textarea,
    .form-section select {
        font-size: 1rem;
        padding: 0.6rem 0.7rem;
    }
    .form-section .checklist label {
        font-size: 0.97rem;
        padding: 0.15rem 0.5rem;
    }
}
/* --- Mejoras para móviles y botones --- */
@media (max-width: 600px) {
    main {
        padding: 1rem 0.3rem 1.5rem 0.3rem;
        max-width: 100vw;
        border-radius: 0;
        box-shadow: none;
    }
    .form-section, .tabla-section {
        padding: 0.7rem 0.2rem 1rem 0.2rem;
        border-radius: 0;
        box-shadow: none;
    }
    .tabla-equipos th, .tabla-equipos td {
        padding: 0.5rem 0.3rem;
        font-size: 0.97rem;
    }
    .paginacion a {
        padding: 0.4rem 0.7rem;
        font-size: 0.97rem;
    }
    .form-group label {
        font-size: 1rem;
    }
    input[type="text"], textarea, select {
        font-size: 1rem;
        padding: 0.6rem 0.7rem;
    }
    .btn-volver {
        width: 100%;
        margin-bottom: 1rem;
    }
}

body {
    background: linear-gradient(135deg, #e3f0fc 0%, #b3d8f7 100%);
}

header, footer {
    background: linear-gradient(90deg, #1565c0 0%, #00bcd4 100%);
}

.form-section, .tabla-section {
    background: #f7fbff;
    border: 1.5px solid #b3d8f7;
}

.tabla-equipos th {
    background: linear-gradient(90deg, #1565c0 0%, #00bcd4 100%);
}

.btn-volver {
    display: inline-block;
    background: linear-gradient(90deg, #00bcd4 0%, #1565c0 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    margin-top: 0.2rem;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.10);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    text-align: center;
}
.btn-volver:hover {
    background: linear-gradient(90deg, #1976d2 0%, #00bcd4 100%);
    color: #fffde7;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #e3f0fc 0%, #b3d8f7 100%);
    margin: 0;
    padding: 0;
    color: #1a2330;
    min-height: 100vh;
    overflow-x: hidden;
    letter-spacing: 0.01em;
}

header {
    background: linear-gradient(90deg, #1976d2 0%, #4fc3f7 100%);
    color: #fff;
    padding: 2.2rem 0 1.2rem 0;
    text-align: center;
    box-shadow: 0 4px 24px rgba(25, 118, 210, 0.10);
    position: relative;
    z-index: 1;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    overflow: hidden;
}
header h1 {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin: 0;
    text-shadow: 0 2px 12px rgba(25, 118, 210, 0.10);
}
footer {
    background: linear-gradient(90deg, #1976d2 0%, #4fc3f7 100%);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 2;
    font-size: 1rem;
    letter-spacing: 0.02em;
    box-shadow: 0 -2px 12px rgba(25, 118, 210, 0.10);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}
main {
    margin: 2.5rem auto 5.5rem auto;
    max-width: 900px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(33, 150, 243, 0.10);
    padding: 2.5rem 2rem 2rem 2rem;
    position: relative;
    z-index: 1;
    border: 1px solid #b3d8f7;
}
.form-section, .tabla-section {
    margin-bottom: 2rem;
    background: #e3f0fc;
    border-radius: 12px;
    padding: 1.1rem 1.1rem 1.3rem 1.1rem;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.04);
}

.tabla-equipos {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(33, 150, 243, 0.07);
}
.tabla-equipos th, .tabla-equipos td {
    padding: 0.85rem 0.7rem;
    text-align: left;
    border-bottom: 1px solid #e3f0fc;
}
.tabla-equipos th {
    background: linear-gradient(90deg, #1976d2 0%, #4fc3f7 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
}
.tabla-equipos tr:last-child td {
    border-bottom: none;
}
.tabla-equipos tr:hover {
    background: #f1f8fe;
    transition: background 0.2s;
}
.btn-editar, .btn-eliminar {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 1.1rem;
    margin: 0 2px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.btn-editar {
    background: #fffde7;
    color: #1976d2;
    border: 1px solid #ffe082;
}
.btn-editar:hover {
    background: #fff9c4;
    color: #0d47a1;
}
.btn-eliminar {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}
.btn-eliminar:hover {
    background: #ffcdd2;
    color: #b71c1c;
}
.paginacion {
    margin-top: 1.5rem;
    text-align: center;
}
.paginacion a {
    display: inline-block;
    margin: 0 4px;
    padding: 0.5rem 1rem;
    background: #e3f0fc;
    color: #1976d2;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #b3d8f7;
    transition: background 0.2s, color 0.2s;
}
.paginacion a.activa, .paginacion a:hover {
    background: linear-gradient(90deg, #1976d2 0%, #4fc3f7 100%);
    color: #fff;
    border: 1px solid #1976d2;
}
.form-group {
    margin-bottom: 1.2rem;
}
label {
    font-weight: 600;
    color: #1976d2;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}
input[type="text"], textarea, select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid #4fc3f7;
    border-radius: 8px;
    margin-top: 0.3rem;
    font-size: 1.05rem;
    background: #f7fbff;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 6px rgba(33, 150, 243, 0.04);
}
input[type="text"]:focus, textarea:focus, select:focus {
    border: 1.5px solid #1976d2;
    outline: none;
    box-shadow: 0 2px 12px rgba(33, 150, 243, 0.10);
}
button {
    background: linear-gradient(90deg, #1976d2 0%, #4fc3f7 100%);
    color: #fff;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 8px;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.10);
    letter-spacing: 0.02em;
}
button:hover {
    background: linear-gradient(90deg, #1565c0 60%, #4fc3f7 100%);
    box-shadow: 0 6px 18px rgba(33, 150, 243, 0.13);
    transform: translateY(-2px) scale(1.03);
}
.checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.3rem;
}
.checklist label {
    background: #b3d8f7;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    color: #1976d2;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(33, 150, 243, 0.04);
    margin-bottom: 0.3rem;
    font-size: 1.01rem;
    transition: background 0.2s, box-shadow 0.2s;
}
.checklist label:hover {
    background: #1976d2;
    color: #fff;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.10);
}
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1.2rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(33, 150, 243, 0.07);
}
th, td {
    border: none;
    padding: 1rem 0.7rem;
    text-align: left;
    font-size: 1.03rem;
}
th {
    background: linear-gradient(90deg, #1976d2 0%, #4fc3f7 100%);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-top: 1px solid #b3d8f7;
    border-bottom: 1px solid #b3d8f7;
}
tr:nth-child(even) td {
    background: #e3f0fc;
}
tr:hover td {
    background: #b3d8f7;
    color: #fff;
    transition: background 0.2s, color 0.2s;
}
@media (max-width: 700px) {
    main {
        padding: 0.5rem;
    }
    .form-section, .tabla-section {
        margin-bottom: 1rem;
        padding: 0.7rem 0.3rem 1rem 0.3rem;
    }
    th, td {
        padding: 0.4rem;
        font-size: 0.97rem;
    }
    .checklist {
        gap: 0.5rem;
    }
    header {
        padding: 1.1rem 0 0.8rem 0;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }
    footer {
        padding: 0.6rem 0 0.6rem 0;
        font-size: 0.97rem;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }
}

/* Google Fonts Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');
