
/* Ajustes finales responsive de páginas públicas */
html { min-height: 100%; height: auto !important; }
body {
    min-height: 100vh !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
.contenido-pie {
    margin-top: auto !important;
    width: 100%;
    background: #0b1220 !important;
    color: #d0d5dd !important;
    padding: 22px 14px !important;
    text-align: center !important;
}
.contenido-pie a { color: #dbe7ff !important; }
/* Restaurar el botón Login original */
.usuario a.boton.mini-boton {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    border: 2px solid #000 !important;
    padding: 8px 12px !important;
    color: #fff !important;
    font-size: .85rem !important;
    font-weight: 700 !important;
    background: transparent !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
    min-height: 0 !important;
}
.usuario a.boton.mini-boton span,
.usuario a.boton.mini-boton ion-icon { position: relative; z-index: 2; }
.usuario a.boton.mini-boton::before,
.usuario a.boton.mini-boton::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #000;
    transition: all .45s ease-in-out;
    z-index: 1;
}
.usuario a.boton.mini-boton::before { transform: scaleY(1); }
.usuario a.boton.mini-boton::after { transform: scaleX(1); }
.usuario a.boton.mini-boton:hover { color: #000 !important; }
.usuario a.boton.mini-boton:hover::before { transform: scaleY(0); }
.usuario a.boton.mini-boton:hover::after { transform: scaleX(0); }
/* Contactanos / páginas con contenido simple */
body > .contenido:not(:has(.video-container)) {
    width: min(1120px, calc(100% - 32px)) !important;
    margin: 104px auto 32px !important;
    padding: 30px !important;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(16,24,40,.08);
}
body > .contenido:not(:has(.video-container)) h1 {
    color: #101828;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -.04em;
    margin-bottom: 20px;
}
body > .contenido .formulario-contacto {
    max-width: 860px !important;
    margin: 0 auto !important;
    background: #fff !important;
    border-radius: 22px !important;
}
body > .contenido .formulario-contacto h3 {
    color: #0f172a !important;
    margin-bottom: 16px;
}
body > .contenido .formulario-contacto label { color: #344054 !important; }
body > .contenido .formulario-contacto input,
body > .contenido .formulario-contacto textarea {
    min-height: 48px !important;
    border-radius: 14px !important;
    border: 1px solid #d0d5dd !important;
    padding: 12px 14px !important;
}
body > .contenido .formulario-contacto button[type="submit"] {
    width: auto !important;
    min-width: 150px;
    border-radius: 14px !important;
    background: #0f2f6f !important;
    box-shadow: 0 12px 25px rgba(15,47,111,.22) !important;
}
/* Sedes */
.sedes-container, .sucursal-card, .sedes-grid {
    max-width: 1180px;
}
/* Detalle: descripción profesional */
.descripcion-card {
    width: 100%;
    border: 1px solid #e4e7ec;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff, #f8fafc);
    padding: clamp(18px, 3vw, 30px);
    margin-top: 22px;
    box-shadow: 0 12px 28px rgba(16,24,40,.06);
}
.descripcion-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 1.35rem;
    color: #0f172a !important;
}
.descripcion-card h3::before {
    content: "";
    width: 12px;
    height: 28px;
    border-radius: 999px;
    background: #0f2f6f;
}
.descripcion-card .descripcion-texto {
    color: #344054 !important;
    font-size: 1rem;
    line-height: 1.75;
    white-space: normal !important;
    display: block !important;
    text-align: left;
}
.detalle-container > h3:not(.keep-plain) {
    margin-top: 24px;
    color: #0f172a !important;
}
@media (max-width: 768px) {
    .barra-superior {
        position: sticky !important;
        top: 0;
        min-height: 70px !important;
        height: auto !important;
        padding: 8px 10px !important;
        gap: 8px;
    }
    .logo { position: static !important; }
    .navegacion { order: 3; width: 100%; height: auto !important; }
    .navegacion ul { width: 100%; gap: 4px !important; justify-content: center; flex-wrap: wrap; }
    .navegacion ul li a { line-height: 1.2 !important; padding: 8px !important; font-size: .86rem; }
    .usuario { position: static !important; margin-left: auto; }
    .usuario a.boton.mini-boton { padding: 7px 10px !important; }
    body > .contenido:not(:has(.video-container)) {
        width: min(100% - 24px, 680px) !important;
        margin: 20px auto 24px !important;
        padding: 18px !important;
        border-radius: 20px;
    }
    .contenido-pie p { line-height: 1.55; }
}
@media (max-width: 480px) {
    .barra-superior { justify-content: center !important; }
    .logo img { height: 48px !important; }
    .usuario { width: auto !important; }
    .usuario a.boton.mini-boton { width: auto !important; }
    body > .contenido .formulario-contacto button[type="submit"] { width: 100% !important; }
}
