/* ==========================================================
   FOOTER — DR. PEDRO HURTADO
   Componente visual independiente. Ajustar variables al tema
   global del proyecto antes de integrarlo en producción.
   ========================================================== */
:root {
    --footer-bg: #082b4e;
    --footer-bg-deep: #061e36;
    --footer-text: #f5f9ff;
    --footer-muted: #c4d7e9;
    --footer-accent: #28c7e5;
    --footer-button: #ed4b50;
    --footer-line: rgb(205 225 243 / 34%);
    --footer-font: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}
.site-footer, .site-footer * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.site-footer {
    width: 100%;
    color: var(--footer-text);
    font-family: var(--footer-font);
    background: radial-gradient(ellipse at 50% 0%, #104d80 0%, transparent 48%), linear-gradient(112deg, #082846 0%, #073b6c 52%, #082a4b 100%);
    font-size: 16px;
    line-height: 1.40;
    overflow: hidden;
}
.site-footer a {
    color: inherit;
    text-decoration: none;
}
.site-footer a:hover {
    color: #72e4f4;
}
.site-footer svg {
    display: block;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}
.site-footer .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
/* Newsletter: two horizontal content containers */
.footer-newsletter {
    max-width: 1650px;
    margin: 0 auto;
    padding: 30px 40px 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(490px, .95fr);
    align-items: center;
    gap: 48px;
    border-bottom: 1px solid var(--footer-line);
}
.footer-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #8eddf0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
}
.footer-newsletter__copy h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(22px, 2.3vw, 34px);
    line-height: 1.1;
    font-weight: 700;
}
.footer-newsletter__copy p {
    max-width: 100%;
    margin: 0;
    color: var(--footer-muted);
    font-size: 16px;
}
.footer-newsletter__controls {
    display: flex;
    align-items: stretch;
    gap: 15px;
}
.footer-input-wrap {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 17px;
    min-height: 52px;
    border: 1px solid rgb(218 237 255 / 65%);
    border-radius: 30px;
    background: rgb(3 24 44 / 24%);
}
.footer-input-wrap svg {
    width: 24px;
    height: 24px;
    color: #d9eafa;
}
.footer-input-wrap input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font: inherit;
    font-size: 14px;
}
.footer-input-wrap input::placeholder {
    color: #c3d4e4;
    opacity: 1;
}
.footer-input-wrap:focus-within {
    border-color: var(--footer-accent);
    box-shadow: 0 0 0 3px rgb(40 199 229 / 15%);
}
.footer-subscribe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 176px;
    padding: 0 23px;
    border: 0;
    border-radius: 30px;
    color: #fff;
    background: var(--footer-button);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.footer-subscribe:hover {
    background: #d93e45;
    transform: translateY(-1px);
}
.footer-subscribe svg {
    width: 24px;
    height: 24px;
}
.footer-newsletter__notice {
    margin: 8px 0 0 16px;
    color: var(--footer-muted);
    font-size: 12px;
}
.footer-newsletter__notice a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
/* Main three columns */
.footer-main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 36px 42px 32px;
    display: grid;
    grid-template-columns: 1fr 1.25fr .82fr;
}
.footer-column {
    min-width: 0;
}
.footer-contact {
    padding: 0 34px 0 0;
}
.footer-brand {
    padding: 0 42px;
    border-left: 1px solid var(--footer-line);
    border-right: 1px solid var(--footer-line);
    text-align: center;
}
.footer-navigation {
    padding: 0 0 0 48px;
}
.footer-column__title {
    margin: 0;
    color: #fff;
    font-size: 27px;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 700;
}
.footer-title-mark {
    display: block;
    width: 76px;
    height: 5px;
    margin: 11px 0 20px;
    background: var(--footer-accent);
}
.footer-contact__list, .footer-navigation ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
.footer-contact__list {
    display: grid;
    gap: 13px;
}
.footer-contact__list li {
    display: flex;
    align-items: center;
    gap: 17px;
    min-width: 0;
}
.footer-contact__list li > svg {
    width: 27px;
    height: 27px;
    color: #eaf5ff;
}
.footer-contact__list li > span {
    display: grid;
    min-width: 0;
    color: var(--footer-muted);
    font-size: 15px;
    line-height: 1.35;
}
.footer-contact__list strong {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}
.footer-contact__list a {
    overflow-wrap: anywhere;
}
.footer-appointment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    margin-top: 17px;
    padding: 10px 16px;
    border: 1px solid rgb(201 233 246 / 48%);
    border-radius: 6px;
    background: rgb(255 255 255 / 7%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.footer-appointment:hover {
    border-color: var(--footer-accent);
    background: rgb(40 199 229 / 16%);
    color: #ffffff;
    transform: translateY(-1px);
}
.footer-appointment:focus-visible {
    outline: 3px solid var(--footer-accent);
    outline-offset: 3px;
}
.footer-appointment svg {
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    color: #c9e9f6;
}
/* Logotipo institucional real */
.footer-brand__logo {
    position: relative;
    display: grid;
    place-items: center;
    width: 120px;
    height: 120px;
    margin: -3px auto 10px;
    border: 2px solid #f1f7ff;
    border-radius: 28px;
    color: #fff;
    font-family: Georgia, serif;
    font-size: 52px;
    line-height: 1;
    background: #ffffff;
}
.footer-brand__logo {
    padding: 8px;
    text-decoration: none;
    box-sizing: border-box;
}
/* Imagen del logotipo */
.footer-brand__logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}
/* Interacción del logotipo */
.footer-brand__logo:hover {
    opacity: 0.9;
}
/* Accesibilidad: navegación mediante teclado */
.footer-brand__logo:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}
.footer-brand > h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.15;
    text-transform: uppercase;
}
.footer-brand__specialties {
    margin: 7px 0 18px;
    color: #8bdcf0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.footer-brand__specialties i {
    padding: 0 3px;
    font-style: normal;
}
.footer-brand__about {
    max-width: 560px;
    margin: 30px auto;
    text-align: center;
}
.footer-brand__about h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 18px;
}
.footer-brand__about p {
    margin: 0;
    color: var(--footer-muted);
    font-size: 16px;
}
.footer-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 25px;
}
.footer-social a {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1.5px solid rgb(240 248 255 / 85%);
    border-radius: 50%;
    color: #fff;
    transition: color .2s, border-color .2s, background .2s;
}
.footer-social a:hover {
    color: #062747;
    border-color: var(--footer-accent);
    background: var(--footer-accent);
}
.footer-social svg {
    width: 28px;
    height: 28px;
}
.footer-social a:nth-child(2) svg {
    fill: currentColor;
    stroke: none;
}
.footer-social a:nth-child(4) svg {
    fill: none;
}
.footer-social .social-dot {
    fill: currentColor;
    stroke: none;
}
.footer-navigation ul {
    display: grid;
    gap: 20px;
}
.footer-navigation a {
    display: flex;
    align-items: center;
    gap: 17px;
    color: #f1f6fc;
    font-size: 17px;
    transition: color .2s, transform .2s;
}
.footer-navigation a:hover {
    color: #8ee9f5;
    transform: translateX(3px);
}
.footer-navigation a svg {
    width: 28px;
    height: 28px;
}
/* Legal links and copyright share one row */
.footer-legal-row {
    max-width: 1700px;
    margin: 0 auto;
    padding: 15px 40px;
    border-top: 1px solid var(--footer-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}
.footer-legal a {
    padding: 2px 13px;
    color: #e0ebf6;
    font-size: 12px;
    line-height: 1.5;
    border-right: 1px solid rgb(220 237 250 / 55%);
    white-space: nowrap;
}
.footer-legal a:first-child {
    padding-left: 0;
}
.footer-legal a:last-child {
    border-right: 0;
}
.footer-legal a:hover {
    color: #83e5f2;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.footer-copyright {
    flex: 0 0 auto;
    margin: 0;
    color: #e0ebf6;
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
}
/* Compact design credit strip */
.footer-credit-row {
    min-height: 90px;
    padding: 12px max(42px, calc((100% - 1400px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: rgb(2 19 35 / 48%);
    border-top: 1px solid rgb(205 225 243 / 25%);
}
.footer-credit {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}
/* Logotipo CA Creativo: tamaño compacto */
.footer-credit__monogram {
    width: 64px;
    height: 64px;
    min-width: 64px;
    flex: 0 0 64px;
    overflow: hidden;
    padding: 5px;
    background: rgb(255 255 255 / 96%);
    border: 1px solid rgb(255 255 255 / 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    font-size: 39px;
    justify-content: center;
}
.footer-credit__monogram img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Ajuste compacto de la franja de desarrollo */
.footer-credit__divider {
    width: 2px;
    height: 43px;
    background: #d8e7f5;
}
.footer-credit__text {
    display: grid;
    color: #eaf2fa;
    font-size: 14px;
    line-height: 1.2;
}
.footer-credit__text strong {
    font-weight: 700;
}
.footer-credit__text small {
    margin-top: 4px;
    color: #a9c5dc;
    font-size: 9px;
    letter-spacing: .2em;
}
.footer-status {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 215px;
    padding-left: 28px;
    border-left: 1px solid var(--footer-line);
}
.footer-status__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #19e66c;
    box-shadow: 0 0 13px rgb(25 230 108 / 65%);
}
.footer-status strong, .footer-status small {
    display: block;
}
.footer-status strong {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.footer-status small {
    margin-top: 2px;
    color: #c4d7e9;
    font-size: 12px;
}

/* ==========================================================
   ESTADOS DEL MONITOR DEL FOOTER
   Agregar al final de assets/css/index/footer.css
========================================================== */

.footer-status[data-status="checking"] .footer-status__dot {
    background: #60a5fa;
    box-shadow: 0 0 13px rgb(96 165 250 / 65%);
    animation: footerStatusPulse 1.2s ease-in-out infinite;
}

.footer-status[data-status="online"] .footer-status__dot {
    background: #19e66c;
    box-shadow: 0 0 13px rgb(25 230 108 / 65%);
}

.footer-status[data-status="warning"] .footer-status__dot {
    background: #facc15;
    box-shadow: 0 0 13px rgb(250 204 21 / 65%);
}

.footer-status[data-status="partial"] .footer-status__dot {
    background: #fb923c;
    box-shadow: 0 0 13px rgb(251 146 60 / 65%);
}

.footer-status[data-status="critical"] .footer-status__dot {
    background: #ef4444;
    box-shadow: 0 0 13px rgb(239 68 68 / 65%);
}

@keyframes footerStatusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.footer-newsletter__honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1050px) {
    .footer-newsletter {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-main {
        grid-template-columns: 1fr 1.1fr;
        row-gap: 34px;
    }
    .footer-brand {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
    .footer-navigation {
        grid-column: 1;
        padding: 0 34px 0 0;
    }
    .footer-contact {
        padding-right: 34px;
    }
    .footer-brand {
        padding-right: 25px;
        padding-left: 25px;
    }
    .footer-legal-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
    .footer-copyright {
        text-align: left;
    }
}

@media (max-width: 680px) {
    .footer-newsletter {
        padding: 30px 22px 25px;
        gap: 18px;
    }
    .footer-newsletter__copy h2 {
        font-size: 27px;
    }
    .footer-newsletter__copy p {
        font-size: 14px;
    }
    .footer-newsletter__controls {
        flex-direction: column;
    }
    .footer-input-wrap {
        min-height: 49px;
    }
    .footer-subscribe {
        min-height: 48px;
        width: 100%;
    }
    .footer-newsletter__notice {
        margin-left: 4px;
    }
    .footer-main {
        display: flex;
        flex-direction: column;
        padding: 30px 22px;
        gap: 28px;
    }
    .footer-contact, .footer-brand, .footer-navigation {
        padding: 0;
        border: 0;
    }
    .footer-brand {
        order: -1;
        padding-bottom: 26px;
        border-bottom: 1px solid var(--footer-line);
    }
    .footer-credit__monogram {
        width: 48px;
        height: 48px;
        min-width: 48px;
        flex-basis: 48px;
        padding: 4px;
    }
    .footer-brand__logo {
        width: 76px;
        height: 74px;
        font-size: 44px;
        border-radius: 23px;
    }
    .footer-brand__logo span {
        bottom: 12px;
        left: 16px;
        width: 43px;
    }
    .footer-brand > h2 {
        font-size: 25px;
    }
    .footer-brand__specialties {
        font-size: 11px;
        letter-spacing: .08em;
    }
    .footer-brand__about {
        text-align: center;
    }
    .footer-brand__about p {
        font-size: 14px;
    }
    .footer-social {
        gap: 10px;
        margin-top: 16px;
    }
    .footer-social a {
        width: 41px;
        height: 41px;
    }
    .footer-column__title {
        font-size: 23px;
    }
    .footer-navigation ul {
        grid-template-columns: 1fr 1fr;
        gap: 13px 10px;
    }
    .footer-navigation a {
        gap: 9px;
        font-size: 14px;
    }
    .footer-navigation a svg {
        width: 21px;
        height: 21px;
    }
    .footer-legal-row {
        padding: 17px 22px;
        gap: 12px;
    }
    .footer-legal {
        gap: 8px 0;
    }
    .footer-legal a {
        padding: 2px 9px;
        font-size: 11px;
        white-space: normal;
    }
    .footer-legal a:nth-child(odd) {
        padding-left: 0;
    }
    .footer-copyright {
        white-space: normal;
        font-size: 11px;
    }
    .footer-credit-row {
        min-height: 0;
        padding: 15px 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .footer-credit {
        gap: 14px;
    }
    .footer-credit__monogram {
        font-size: 39px;
    }
    .footer-credit__divider {
        height: 38px;
    }
    .footer-credit__text {
        font-size: 13px;
    }
    .footer-credit__text small {
        font-size: 8px;
        letter-spacing: .14em;
    }
    .footer-status {
        min-width: 0;
        padding: 12px 0 0;
        border-left: 0;
        border-top: 1px solid var(--footer-line);
        width: 100%;
    }
}
