﻿.custom-dropdown {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    appearance: none; /* Elimina estilos por defecto en algunos navegadores */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    cursor: pointer;
}

    .custom-dropdown:focus {
        border-color: #007bff;
        outline: none;
    }

.login-container {
    text-align: center;
    margin: 30px auto;
}

    .login-container h2 {
        font-size: 2rem;
        margin-bottom: 20px;
        color: #1f1f1f;
        font-weight: bold;
    }

.form-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 220px;
}

    .form-group label {
        font-weight: bold;
        margin-bottom: 5px;
        color: #1c1c1c;
    }

.form-control {
    padding: 8px 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.icon-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.icon-button {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.icon-buttonImg {
    width: 24px;
    height: 24px;
    cursor: pointer;
    background-color: #fb8a35;
}

/* Responsive en móviles */
@media (max-width: 768px) {
    .form-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .icon-group {
        justify-content: center;
    }
}
/* Reset general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f9fd;
    color: #333;
}

/* Banner estándar (solo para escritorio) */
.banner-desktop {
    display: block;
    width: 100%;
    overflow: hidden;
}

.teinco-logo-mobile {
    display: none;
}
/* Banner alternativo (solo para móviles) */
.banner-mobile {
    display: none;
    width: 100%;
    overflow: hidden;
}

    /* Imagen dentro del banner */
    .banner-desktop img,
    .banner-mobile img {
        width: 100%;
        height: auto;
        display: block;
    }

/* Contenedor principal */
.main-container {
    max-width: 960px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Información del estudiante */
.student-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.student-info2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto; /* Dos filas */
    gap: 1rem;
}

    .student-info2 .col-span-2 {
        grid-column: span 2; /* Para un campo que ocupe las dos primeras columnas */
    }

    .student-info2 .rowspan-2 {
        grid-row: span 2; /* Ocupa ambas filas */
    }

.student-info h3 {
    font-size: 1rem;
    color: #0075c9;
    margin-bottom: 0.25rem;
}

.student-info2 h3 {
    font-size: 1rem;
    color: #0075c9;
    margin-bottom: 0.25rem;
}

.student-info p {
    margin-bottom: 1rem;
    font-weight: bold;
}

.student-info2 p {
    margin-bottom: 1rem;
    font-weight: bold;
    /*display: flex;*/ /* Hacer que el contenedor sea flexible */
    /*justify-content: center;*/ /* Centrar el contenido horizontalmente */
    /*align-items: center;*/ /* Centrar el contenido verticalmente */
}

/* Botón de carnet virtual */
.download-card {
    text-align: center;
    margin-top: 30px;
}

    .download-card a {
        background-color: #0075c9;
        color: white;
        text-decoration: none;
        padding: 10px 20px;
        border-radius: 6px;
        display: inline-block;
        transition: background 0.3s ease;
    }

        .download-card a:hover {
            background-color: #005a9e;
        }

/* Media Query para dispositivos móviles */
@media (max-width: 768px) {
    .student-info2 {
        grid-template-columns: 1fr; /* Solo una columna */
        grid-template-rows: auto;
    }

        .student-info2 .col-span-2,
        .student-info2 .rowspan-2 {
            grid-column: auto;
            grid-row: auto;
        }
    /* Oculta banner grande y muestra solo el logo Teinco */
    .banner-desktop {
        display: none;
    }

    .banner-mobile {
        display: block;
    }

    .student-info {
        grid-template-columns: 1fr;
    }

    .main-container {
        margin: 10px;
        padding: 15px;
    }
}

.alert {
    position: relative;
    padding: 15px 20px;
    margin: 15px auto;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 16px;
    max-width: 800px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Colores para cada tipo de alerta */
.alert-info {
    background-color: #e7f3fe;
    border-color: #b3d7ff;
    color: #31708f;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

/* Cierre (X) de las alertas */
.alert .close {
    position: absolute;
    right: 12px;
    top: 10px;
    color: #000;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    opacity: 0.5;
}

    .alert .close:hover {
        opacity: 1;
    }

/* Mensajes de validación */
.validation-summary-errors {
    color: #842029;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .alert {
        font-size: 15px;
        padding: 12px 15px;
    }

    .custom-dropdown {
        font-size: 15px;
        padding: 8px;
        max-width: 100%;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fade-in 0.2s ease-out;
}

.foto-carnet {
    width: 120px;
    height: 160px;
    object-fit: cover; /* Para asegurar que la imagen se recorte si es necesario */
    border-radius: 6px;
    border: 1px solid #ccc;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    /* Centrar la imagen dentro del contenedor */
    display: flex;
    justify-content: center;
    align-items: center;
}

    .foto-carnet img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Asegura que la imagen se ajuste adecuadamente */
        border-radius: 6px;
    }

.upload-illustration {
    margin: 20px auto;
    text-align: center;
}

.upload-icon {
    width: 80px;
    opacity: 0.7;
}

.upload-instructions {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.upload-input {
    display: block;
    width: 100%;
    padding: 8px;
    font-size: 16px;
    margin-bottom: 10px;
}

.upload-button {
    background-color: #266886;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 16px;
    border: none;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
}


    .upload-button:hover {
        background-color: #33A7C1;
    }


.error-message {
    color: #cc0000;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}
