/* ==========================================================================
   STIA Pcia. Buenos Aires - Piel visual "Turismo" aplicada a Plan Escolar
   Reskin 100% CSS: reutiliza las MISMAS clases y estructura que ya usa el
   HTML/JS de Plan Escolar. No requiere modificar el .asp ni el .js.
   ========================================================================== */

:root {
    --brand-green-dark: #006655;
    --brand-green-header: #008b7d;
    --brand-green-light: #e8f5e9;
    --brand-form-bg: #d8ebd9;
    --brand-form-border: #a3d9a5;
}

body {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
                url('../images/FondoUtiles.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333333;
}

/* Contenedor general que unifica el ancho de toda la página */
.wrapper-principal {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
}

/* Encabezado Superior (Logo) -> estilo navbar translúcida de Turismo */
.header-container, td[bgcolor="#A9F5A9"] {
    background-color: rgba(232, 245, 233, 0.95) !important;
    backdrop-filter: blur(5px);
    border: none;
    border-bottom: 3px solid var(--brand-green-dark);
    border-radius: 10px 10px 0 0;
    padding: 0.6rem 0.25rem;
    text-align: center;
}

/* Contenedor tipo "Hoja" -> panel de vidrio grande que agrupa todo */
.container.pt-4, .container-Logo {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    max-width: 100% !important;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Título principal (PLAN ESCOLAR 2027) */
#lbl_Titulo {
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 1px;
	font-size: 1.6rem;
}

/* Tarjetas de sección (Titular, Hijos, Histórico) -> tarjeta tipo vidrio */
.BgVerdeAuto {
    background-color: rgba(232, 245, 233, 0.94);
    backdrop-filter: blur(6px);
    border: none;
    border-radius: 12px;
    padding: 0.85rem;
    margin-bottom: 1.25rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Franjas de título (Titular, Hijos, Histórico) -> header sólido tipo Turismo */
.teal.S3.Bo {
    background-color: var(--brand-green-header) !important;
    color: #ffffff !important;
    margin: -0.85rem -0.85rem 0.85rem -0.85rem;
    padding: 0.75rem 1.1rem;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.Texto-Titulo {
    color: #ffffff !important;
}

/* Ajuste de filas de formularios (sin cambios de estructura) */
.form-row {
    margin-right: 0px;
    margin-left: 0px;
}

.form-row > [class*="col-"] {
    padding-right: 6px;
    padding-left: 6px;
    margin-bottom: 0.5rem !important;
}

/* Inputs y Selects -> estilo Turismo */
.form-control-sm, .form-control {
    border-radius: 0.5rem;
    border: 1px solid var(--brand-form-border);
    background-color: #ffffff;
    padding: 0.25rem 0.5rem;
    height: calc(1.5em + 0.5rem + 2px);
    transition: all 0.2s ease-in-out;
}

.form-control-sm:focus, .form-control:focus {
    border-color: var(--brand-green-header);
    background-color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(0, 139, 125, 0.15);
}

small.form-text {
    margin-bottom: 0.1rem;
    font-size: 80%;
}

/* Tarjetas internas (Convenios) -> estilo card-familiar-item de Turismo */
.card.border-success {
    background-color: #ffffff;
    border: 1px solid #c8e6c9 !important;
    border-left: 4px solid var(--brand-green-header) !important;
    border-radius: 8px;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.card-header.bg-light {
    background-color: var(--brand-green-light) !important;
    color: var(--brand-green-dark) !important;
    padding: 0.5rem;
    font-weight: bold;
}

/* Botones -> paleta de Turismo */
.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-success {
    background-color: var(--brand-green-header);
    border-color: var(--brand-green-header);
}

.btn-success:hover {
    background-color: var(--brand-green-dark);
    border-color: var(--brand-green-dark);
}

.btn-secondary {
    background-color: #5a6268;
    border-color: #5a6268;
}

.btn-secondary:hover {
    background-color: #343a40;
    border-color: #343a40;
}

.btn-outline-info {
    color: var(--brand-green-header);
    border-color: var(--brand-green-header);
}

.btn-outline-info:hover {
    background-color: var(--brand-green-header);
    color: #ffffff;
    border-color: var(--brand-green-header);
}

/* Spinner de carga (Valida / búsqueda hijo) */
.spinner-border {
    color: var(--brand-green-header);
}

.spinner-border-white {
    color: #ffffff;
}

/* Modal Visor de Documentos */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: var(--brand-green-header);
    border-radius: 12px 12px 0 0;
}

#modalVisorTitulo {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
    color: #ffffff !important;
}

.modal-header .close {
    color: #ffffff;
    opacity: 0.9;
    text-shadow: none;
}

/* Footer (incluido vía FooterLaVerde.htm).
   Regla genérica de respaldo por si el include usa <footer> o .footer;
   si no aplica visualmente, compartime ese archivo y la ajusto puntual. */
footer, .footer {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 1rem 0;
}


.input-group-text {
        background-color: #ffffff !important;
    }