/* ========================================
   PVB - Estilos comunes para vistas
   Programa de Vivienda para el Bienestar
   ======================================== */

/* Contenedor del fondo */
.bg-main-pvb {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('../img/Edificio_Background_A.jpg');
    background-size: cover;
    background-position: center -90px;
    filter: grayscale(100%);
}

body {
    font-family: 'Montserrat', sans-serif;
}

/* Logo del gobierno */
.pvb-logo-container {
    text-align: center;
    margin-bottom: 1rem;
}

.pvb-logo-container img {
    max-height: 120px;
}

/* Estilos textos encabezado */
.pvb-header-text {
    text-align: center;
    margin-bottom: 2rem;
}

.pvb-header-text h1,
.pvb-header-text h2 {
    color: #1F5D50;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.pvb-header-text h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pvb-header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Stepper */
.stepper-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.stepper-container {
    display: flex;
    background-color: #264E43;
    border-radius: 50px;
    padding: 10px 30px;
    gap: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.step-item {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.step-item:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.step-item.active {
    color: #FFFFFF;
    font-weight: 700;
}

.step-item.completed {
    color: #8FBC8F;
}

.step-item.disabled {
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    pointer-events: none;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    max-width: 900px;
    margin: 0 auto 3rem auto;
}

.glass-card.text-center {
    text-align: center;
}

.card-heading {
    text-align: center;
    margin-bottom: 2rem;
    color: #13322B;
}

.card-heading h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #1F5D50;
}

.card-heading p {
    font-size: 0.9rem;
    color: #000;
    font-weight: 500;
}

/* Inputs */
.form-group label {
    font-weight: 700;
    color: #212529;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.form-control-custom {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control-custom:focus {
    background-color: #ffffff;
    border-color: #1F5D50;
    box-shadow: 0 0 0 0.2rem rgba(31, 93, 80, 0.25);
}

.form-control-custom.is-invalid {
    border-color: #dc3545;
}

/* Ajuste específico para el input group con el botón */
.input-group .form-control-custom {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Botón buscar CURP */
.btn-search-curp {
    background-color: #264E43;
    color: white;
    border: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 0 20px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-search-curp:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

.btn-search-curp:not(:disabled):hover {
    background-color: #13322B;
    color: white;
}

/* Botones de navegación */
.btn-next {
    background-color: #264E43;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 50px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 1rem;
}

.btn-next:hover {
    background-color: #13322B;
    color: #fff;
}

.btn-next:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

.btn-back {
    background-color: transparent;
    color: #264E43;
    border: 2px solid #264E43;
    border-radius: 50px;
    padding: 10px 50px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 1rem;
}

.btn-back:hover {
    background-color: #264E43;
    color: #fff;
}

/* Botón link PVB */
.btn-link-pvb {
    background-color: #264E43;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}

.btn-link-pvb:hover {
    background-color: #13322B;
    color: #fff;
    text-decoration: none;
}

/* Botón home */
.btn-home {
    background-color: #264E43;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 40px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.btn-home:hover {
    background-color: #13322B;
    color: #fff;
    text-decoration: none;
}

/* Contenido informativo */
.info-content {
    color: #212529;
    font-size: 1rem;
    line-height: 1.8;
}

.info-content p {
    margin-bottom: 1rem;
}

.info-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-content ol li {
    margin-bottom: 1rem;
    text-align: justify;
}

.info-text {
    color: #333;
    font-size: 1rem;
    line-height: 1.8;
    margin: 1.5rem 0;
}

/* Caja importante */
.important-box {
    background-color: rgba(157, 36, 73, 0.1);
    border-left: 4px solid #9d2449;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.important-box h5 {
    color: #9d2449;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.important-box p {
    margin-bottom: 0;
    text-align: justify;
}

/* Checkbox de confirmación */
.confirm-checkbox {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(38, 78, 67, 0.05);
    border-radius: 8px;
}

.confirm-checkbox .form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
    cursor: pointer;
}

.confirm-checkbox .form-check-input:checked {
    background-color: #264E43;
    border-color: #264E43;
}

.confirm-checkbox .form-check-label {
    font-weight: 600;
    color: #13322B;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* Icono de éxito */
.success-icon {
    font-size: 5rem;
    color: #264E43;
    margin-bottom: 1.5rem;
}

/* ========================================
   Datepicker - Estilos PVB
   ======================================== */

/* Contenedor principal del datepicker */
.ui-datepicker {
    background-color: #fff;
    width: auto;
    padding: 0;
    box-sizing: initial;
    display: none;
    font-family: 'Montserrat', sans-serif;
}

.ui-datepicker.ui-widget-content {
    border: none;
    background: #fff;
    color: #333;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(31, 93, 80, 0.3);
    overflow: hidden;
}

/* Header del calendario */
.ui-datepicker .ui-datepicker-header {
    background-color: #264E43;
    color: #fff;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 0;
    border: none;
}

/* Título (mes y año) */
.ui-datepicker .ui-datepicker-title {
    margin: 0 2.5em;
    line-height: 1.2em;
    text-align: center;
    font-weight: 600;
}

.ui-datepicker .ui-datepicker-month {
    font-size: 16px;
}

/* Selectores de mes y año */
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    width: 45%;
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-weight: 500;
}

.ui-datepicker select.ui-datepicker-month option,
.ui-datepicker select.ui-datepicker-year option {
    color: #333;
    background: #fff;
}

/* Flechas de navegación */
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: absolute;
    top: 8px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.ui-datepicker .ui-datepicker-prev {
    left: 10px;
}

.ui-datepicker .ui-datepicker-next {
    right: 10px;
}

.ui-datepicker .ui-datepicker-prev:before {
    content: "<";
    font-size: 18px;
    color: #fff;
    position: absolute;
    top: 5px;
    left: 10px;
}

.ui-datepicker .ui-datepicker-next:before {
    content: ">";
    font-size: 18px;
    color: #fff;
    position: absolute;
    top: 5px;
    right: 10px;
}

.ui-datepicker .ui-datepicker-prev:hover:before,
.ui-datepicker .ui-datepicker-next:hover:before {
    color: #8FBC8F;
}

.ui-datepicker .ui-datepicker-prev .ui-icon,
.ui-datepicker .ui-datepicker-next .ui-icon {
    visibility: hidden;
}

/* Días de la semana */
.ui-datepicker .ui-datepicker-calendar th {
    text-transform: uppercase;
    font-weight: 600;
    color: #264E43;
    font-size: 11px;
    padding: 8px 5px;
}

/* Celdas de días */
.ui-datepicker td {
    border: 0;
    padding: 2px;
}

.ui-datepicker td a,
.ui-datepicker td span {
    display: block !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
    color: #333 !important;
    border-radius: 50% !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Hover en días */
.ui-datepicker td a:hover {
    background: #264E43 !important;
    color: #fff !important;
}

/* Día seleccionado/activo */
.ui-datepicker .ui-state-active,
.ui-datepicker .ui-widget-content .ui-state-active,
.ui-datepicker .ui-widget-header .ui-state-active {
    background: #1F5D50 !important;
    color: #fff !important;
    border-radius: 50%;
    font-weight: 600;
}

/* Día actual (hoy) */
.ui-datepicker .ui-datepicker-today .ui-state-default {
    border: 2px solid #264E43 !important;
    border-radius: 50%;
    color: #264E43 !important;
    font-weight: 600;
}

/* Días deshabilitados */
.ui-datepicker td.ui-state-disabled span {
    color: #ccc !important;
}

/* Botón del calendario en input group */
.datepicker-group .input-group-text {
    background-color: #264E43;
    border: 1px solid #264E43;
    color: #fff;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.datepicker-group .input-group-text:hover {
    background-color: #13322B;
    border-color: #13322B;
}
