/* ==================================== */
/* entregar_documentos.css - Estilo consistente con registro_equipos */
/* ==================================== */

/* --- Hero Section (consistente con registro_equipos) --- */
.entrega-hero {
    background-color: var(--color-light-gray);
    padding: 60px 20px;
    text-align: center;
}

.entrega-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-secondary);
    display: inline-block;
    padding-bottom: 10px;
}

.entrega-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-dark);
}

/* =======================================================
    SECCIÓN DE CONTENIDO CON FONDO RESPONSIVO
    ======================================================= */
.entrega-content-section {
    padding: 80px 20px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
}

@media (min-width: 1920px) {
    .entrega-content-section {
        background-image: url('../img/background/background-xxlarge-v2.png');
    }
}

@media (min-width: 1200px) and (max-width: 1919px) {
    .entrega-content-section {
        background-image: url('../img/background/background-large-v2.png');
        min-height: 65vh;
        padding: 80px 20px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .entrega-content-section {
        background-image: url('../img/background/background-medium-v2.png');
        min-height: 60vh;
        padding: 60px 20px;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .entrega-content-section {
        background-image: url('../img/background/background-small-v2.png');
        min-height: 50vh;
        padding: 40px 20px;
    }
}

@media (max-width: 479px) {
    .entrega-content-section {
        background-image: url('../img/background/background-mobile-v2.png');
        min-height: 40vh;
        padding: 40px 15px;
    }
}

.entrega-content-section .container1 {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =======================================================
    EFECTO VIDRIO (Glassmorphism) para el contenedor
    ======================================================= */
.glass-effect {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.entrega-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ===== ESTILOS PARA BÚSQUEDA DE EQUIPO ===== */
.busqueda-equipo {
    text-align: center;
}

.busqueda-equipo h2 {
    color: var(--color-accent);
    font-size: 1.8rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 10px;
}

.busqueda-descripcion {
    margin-bottom: 30px;
    opacity: 0.9;
    color: white;
    font-size: 1rem;
}

.buscar-equipo-form {
    max-width: 500px;
    margin: 0 auto;
}

.buscar-equipo-form .form-group {
    text-align: left;
    margin-bottom: 20px;
}

.buscar-equipo-form input,
.buscar-equipo-form select {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    width: 100%;
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}

.buscar-equipo-form input:focus,
.buscar-equipo-form select:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.3);
}

.buscar-equipo-form option {
    background: var(--color-dark);
    color: white;
}

/* Equipo info header */
.equipo-info-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.equipo-info-header h2 {
    color: var(--color-accent);
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.equipo-numero {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
    color: white;
}

/* Fase info */
.fase-info {
    text-align: center;
    margin-bottom: 30px;
}

.fase-info h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.fase-info p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.info-fechas {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.fecha-limite,
.notificacion-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(88, 136, 166, 0.3);
    border-radius: 30px;
    font-size: 0.85rem;
}

.notificacion-info {
    background: rgba(242, 92, 5, 0.2);
}

/* Formulario */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: white;
}

.form-group label i {
    color: var(--color-accent);
    margin-right: 8px;
}

.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input[type="file"] {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

.file-input-wrapper input[type="file"]::-webkit-file-upload-button {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 15px;
}

.file-name {
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

input[type="url"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}

input[type="url"]:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.3);
}

input[type="url"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 92, 5, 0.3);
}

/* Botones secundarios */
.volver-link {
    text-align: center;
    margin-top: 30px;
}

.volver-buscar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Alertas */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.alert-success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

.alert-warning {
    background: rgba(241, 196, 15, 0.2);
    border: 1px solid #f1c40f;
    color: #f1c40f;
}

/* Entrega exitosa */
.entrega-exitosa {
    margin: 30px 0;
}

.entrega-detalles {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.entrega-detalles h4 {
    margin: 0 0 15px 0;
    color: var(--color-accent);
    font-size: 1.1rem;
}

.detalle-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detalle-item:last-child {
    border-bottom: none;
}

.detalle-icon {
    width: 32px;
    font-size: 1.2rem;
    text-align: center;
    color: var(--color-accent);
}

.detalle-texto {
    flex: 1;
    color: white;
}

.detalle-texto a {
    color: var(--color-accent);
    text-decoration: none;
}

.detalle-texto a:hover {
    text-decoration: underline;
}

.info-adicional {
    background: rgba(46, 204, 113, 0.1);
    border-left: 3px solid #2ecc71;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    color: white;
}

.info-adicional i {
    color: #2ecc71;
    margin-right: 10px;
}

.info-adicional p {
    margin: 8px 0;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Fase cerrada */
.fase-cerrada {
    margin: 30px 0;
}

.info-cerrada {
    background: rgba(241, 196, 15, 0.1);
    border-left: 3px solid #f1c40f;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    color: white;
}

/* Checkbox de aceptación */
.checkbox-aceptacion {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.checkbox-aceptacion input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-aceptacion label {
    margin: 0;
    font-size: 0.9rem;
    cursor: pointer;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-effect {
        padding: 25px;
    }
    
    .info-fechas {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .fecha-limite,
    .notificacion-info {
        width: 100%;
        justify-content: center;
    }
    
    .fase-info h3 {
        font-size: 1.3rem;
    }
    
    .btn-submit {
        padding: 12px;
        font-size: 1rem;
    }
    
    .detalle-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .detalle-icon {
        width: auto;
    }
    
    .checkbox-aceptacion {
        align-items: flex-start;
    }
    
    .checkbox-aceptacion input {
        margin-top: 3px;
    }
    
    .volver-buscar {
        flex-direction: column;
        align-items: center;
    }
    
    .volver-buscar .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .busqueda-equipo h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .entrega-hero h1 {
        font-size: 1.8rem;
    }
    
    .entrega-hero p {
        font-size: 1rem;
    }
    
    .entrega-content-section {
        padding: 40px 15px;
    }
    
    .glass-effect {
        padding: 20px;
    }
    
    .equipo-info-header h2 {
        font-size: 1.2rem;
    }
}

/* Soporte para navegadores sin backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
    .glass-effect {
        background: rgba(255, 255, 255, 0.95);
        color: var(--color-dark);
        text-shadow: none;
    }
    
    .glass-effect h2,
    .glass-effect h3,
    .glass-effect label,
    .glass-effect p,
    .glass-effect .equipo-numero,
    .glass-effect .detalle-texto,
    .glass-effect .info-adicional,
    .glass-effect .info-cerrada {
        color: var(--color-dark);
    }
    
    .glass-effect .fecha-limite,
    .glass-effect .notificacion-info {
        background: rgba(88, 136, 166, 0.2);
        color: var(--color-dark);
    }
    
    .glass-effect .btn-secondary {
        background: rgba(0, 0, 0, 0.1);
        color: var(--color-dark);
    }
    
    .glass-effect input,
    .glass-effect select {
        background: white;
        color: var(--color-dark);
    }
}

/* =======================================================
    ESTILOS ADICIONALES PARA PRÓRROGA Y NUEVAS ALERTAS
    ======================================================= */

/* Badge de prórroga */
.prorroga-badge {
    display: inline-block;
    background: #f39c12;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 10px;
    text-shadow: none;
    font-weight: normal;
}

.fecha-limite.prorroga-activa {
    color: #f39c12;
    border-color: #f39c12;
}

.fecha-limite.prorroga-activa i {
    color: #f39c12;
}

/* Alerta de error (rojo) */
.alert-error {
    background: rgba(220, 38, 38, 0.2);
    border-left: 4px solid #dc2626;
    color: #fecaca;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-error i {
    color: #ef4444;
    font-size: 1.2rem;
}

/* Fase cerrada - texto mejorado */
.fase-cerrada .alert-warning {
    background: rgba(241, 196, 15, 0.2);
    border: 1px solid #f1c40f;
    color: #f1c40f;
}

/* Estilos específicos para el glass effect cuando la prórroga está activa */
@supports not (backdrop-filter: blur(12px)) {
    .fecha-limite.prorroga-activa {
        color: #e67e22;
    }
    
    .fecha-limite.prorroga-activa i {
        color: #e67e22;
    }
    
    .prorroga-badge {
        background: #e67e22;
        color: white;
    }
    
    .alert-error {
        background: #fee2e2;
        color: #991b1b;
        border-left-color: #dc2626;
    }
    
    .alert-error i {
        color: #dc2626;
    }
}

/* Texto pequeño en fase selector */
small.text-muted {
    display: block;
    margin-top: 5px;
    font-size: 0.7rem;
    opacity: 0.8;
}