/*
Theme Name: Clinica Axis
Template: generatepress
Version: 1.0.0
*/

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ==================================================
   VARIABLES GENERALES
================================================== */

:root {
    --axis-blue: #0d2a49;
    --axis-blue-dark: #08213a;
    --axis-blue-main: #173e77;
    --axis-blue-hover: #174b91;
    --axis-blue-light: #5ba8d4;
    --axis-blue-light-hover: #4a97c3;
    --axis-sky: #5db4e5;
    --axis-light: #eef6fd;
    --axis-white: #ffffff;
    --axis-text: #0f1d33;
    --axis-muted: #9eb1c3;
    --axis-border: #d6e4f1;
    --axis-shadow: 0 12px 28px rgba(13, 42, 73, 0.16);
    --axis-font: 'Poppins', Arial, sans-serif;
}

/* ==================================================
   BASE
================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--axis-font);
    overflow-x: hidden !important;
}

body {
    color: var(--axis-text);
    background: #ffffff;
    padding-top: 154px !important;
}

body.axis-body--scrolled {
    padding-top: 102px !important;
}

a {
    text-decoration: none;
}

.axis-container {
    width: min(1750px, calc(100% - 56px));
    margin: 0 auto;
}

/* ==================================================
   BOTONES GLOBALES
================================================== */

.axis-btn {
    height: 60px;
    padding: 0 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    font-family: var(--axis-font);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
}

.axis-btn i,
.axis-btn span {
    transition: color 0.25s ease;
}

/* Botón blanco con borde azul */
.axis-btn-outline {
    background: #ffffff !important;
    color: var(--axis-blue-hover) !important;
    border-color: var(--axis-blue-hover) !important;
}

.axis-btn-outline i,
.axis-btn-outline span {
    color: var(--axis-blue-hover) !important;
}

.axis-btn-outline:hover {
    background: var(--axis-blue-hover) !important;
    color: #ffffff !important;
    border-color: var(--axis-blue-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(23, 75, 145, 0.22);
}

.axis-btn-outline:hover i,
.axis-btn-outline:hover span {
    color: #ffffff !important;
}

/* Botón azul oscuro */
.axis-btn-primary {
    background: var(--axis-blue-main) !important;
    color: #ffffff !important;
    border-color: var(--axis-blue-main) !important;
    box-shadow: 0 12px 28px rgba(23, 62, 119, 0.22);
}

.axis-btn-primary i,
.axis-btn-primary span {
    color: #ffffff !important;
}

.axis-btn-primary:hover {
    background: var(--axis-blue-hover) !important;
    color: #ffffff !important;
    border-color: var(--axis-blue-hover) !important;
    transform: translateY(-2px);
}

.axis-btn-primary:hover i,
.axis-btn-primary:hover span {
    color: #ffffff !important;
}

/* Botón azul claro */
.axis-btn-light {
    background: var(--axis-blue-light) !important;
    color: #ffffff !important;
    border-color: var(--axis-blue-light) !important;
    box-shadow: 0 12px 28px rgba(91, 168, 212, 0.25);
}

.axis-btn-light i,
.axis-btn-light span {
    color: #ffffff !important;
}

.axis-btn-light:hover {
    background: var(--axis-blue-light-hover) !important;
    color: #ffffff !important;
    border-color: var(--axis-blue-light-hover) !important;
    transform: translateY(-2px);
}

.axis-btn-light:hover i,
.axis-btn-light:hover span {
    color: #ffffff !important;
}

/* Botón pequeño tipo "Saber más" */
.axis-btn-more {
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: transparent;
    border: 2px solid var(--axis-blue-light);
    color: var(--axis-blue-light) !important;
    font-family: var(--axis-font);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.25s ease;
    cursor: pointer;
}

.axis-btn-more i,
.axis-btn-more span {
    color: var(--axis-blue-light) !important;
    transition: color 0.25s ease;
}

.axis-btn-more:hover {
    background: var(--axis-blue-light);
    border-color: var(--axis-blue-light);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.axis-btn-more:hover i,
.axis-btn-more:hover span {
    color: #ffffff !important;
}

/* ==================================================
   HEADER AXIS
   Barra azul visible al inicio
   Al hacer scroll se oculta
   Queda fijo solo el menú blanco
================================================== */

.axis-header {
    width: 100%;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
    overflow: visible !important;
    background: transparent !important;
}

/* ===============================
   TOP BAR AZUL
=============================== */

.axis-topbar {
    width: 100%;
    min-height: 52px;
    background: var(--axis-blue) !important;
    color: var(--axis-muted);
    position: relative !important;
    z-index: 2 !important;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
}

.axis-topbar__inner {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.axis-topbar__left,
.axis-topbar__right {
    display: flex;
    align-items: center;
}

.axis-topbar__right {
    gap: 28px;
}

.axis-topbar a {
    color: var(--axis-muted) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.axis-topbar a:hover {
    color: var(--axis-white) !important;
}

.axis-topbar i {
    color: var(--axis-sky);
    font-size: 15px;
}

/* ===============================
   MENÚ BLANCO
=============================== */

.axis-mainbar {
    width: 100%;
    background: var(--axis-white) !important;
    position: relative !important;
    z-index: 3 !important;
    transform: translateY(0);
    transition: transform 0.28s ease;
    box-shadow: 0 2px 0 rgba(13, 42, 73, 0.06);
}

/* Scroll activo */
.axis-header.axis-header--scrolled .axis-topbar {
    transform: translateY(-52px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.axis-header.axis-header--scrolled .axis-mainbar {
    transform: translateY(-52px) !important;
}

/* Admin bar WordPress */
.admin-bar .axis-header {
    top: 32px !important;
}

/* ===============================
   HEADER INNER
=============================== */

.axis-header__inner {
    min-height: 102px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* ===============================
   LOGO
=============================== */

.axis-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none !important;
}

.axis-logo img {
    width: 225px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===============================
   NAV
=============================== */

.axis-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.axis-nav a,
.axis-nav__link {
    color: var(--axis-text) !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    padding: 21px 22px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.axis-nav a:hover,
.axis-nav a.active,
.axis-nav__item:hover > .axis-nav__link {
    background: var(--axis-light);
    color: var(--axis-blue-main) !important;
}

.axis-nav a i {
    font-size: 12px;
    color: inherit;
}

.axis-nav__item {
    position: relative;
}

.axis-submenu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: 260px;
    background: var(--axis-white);
    border: 1px solid var(--axis-border);
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 22px 45px rgba(13, 42, 73, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 99999;
}

.axis-nav__item:hover .axis-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.axis-submenu a {
    width: 100%;
    padding: 14px 15px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    justify-content: flex-start;
}

.axis-header__cta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.axis-mobile-actions {
    display: none;
}

/* ===============================
   HAMBURGUESA
=============================== */

.axis-menu-toggle {
    display: none;
}

.axis-menu-btn {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--axis-blue-main);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    flex: 0 0 auto;
}

.axis-menu-btn span {
    width: 23px;
    height: 2px;
    border-radius: 20px;
    background: var(--axis-white);
    display: block;
    transition: all 0.25s ease;
}

/* ==================================================
   HEADER RESPONSIVE
================================================== */

@media (max-width: 1300px) {
    .axis-container {
        width: min(100% - 36px, 1180px);
    }

    .axis-header__inner {
        gap: 18px;
    }

    .axis-logo img {
        width: 190px;
    }

    .axis-nav {
        gap: 8px;
    }

    .axis-nav a,
    .axis-nav__link {
        font-size: 15px;
        padding: 17px 14px;
    }

    .axis-btn {
        height: 54px;
        padding: 0 20px;
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    body,
    body.axis-body--scrolled {
        padding-top: 82px !important;
    }

    .axis-container {
        width: calc(100% - 32px);
    }

    .axis-header {
        top: 0 !important;
    }

    .admin-bar .axis-header {
        top: 46px !important;
    }

    .axis-topbar {
        display: none !important;
    }

    .axis-mainbar,
    .axis-header.axis-header--scrolled .axis-mainbar {
        transform: none !important;
    }

    .axis-header__inner {
        min-height: 82px;
        position: relative;
        gap: 14px;
    }

    .axis-logo img {
        width: 155px;
    }

    .axis-menu-btn {
        display: inline-flex;
        order: 3;
    }

    .axis-header__cta {
        display: none;
    }

    .axis-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        width: 100%;
        background: var(--axis-white);
        border-top: 1px solid var(--axis-border);
        box-shadow: 0 24px 45px rgba(13, 42, 73, 0.18);
        border-radius: 0 0 22px 22px;
        padding: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 6px;
        z-index: 99998;
    }

    .axis-nav a,
    .axis-nav__link {
        width: 100%;
        justify-content: space-between;
        font-size: 15px;
        padding: 16px 18px;
        border-radius: 12px;
    }

    .axis-nav__item {
        width: 100%;
    }

    .axis-submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 14px;
        margin-top: 6px;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f7fbff;
    }

    .axis-nav__item:hover .axis-submenu {
        display: block;
    }

    .axis-mobile-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 8px;
    }

    .axis-mobile-actions .axis-btn {
        width: 100%;
        height: 50px;
        font-size: 14px;
        padding: 0 14px;
    }

    .axis-mobile-actions .axis-btn,
    .axis-mobile-actions .axis-btn span,
    .axis-mobile-actions .axis-btn i {
        color: #ffffff !important;
    }

    .axis-menu-toggle:checked ~ .axis-nav {
        display: flex;
    }

    .axis-menu-toggle:checked + .axis-menu-btn span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .axis-menu-toggle:checked + .axis-menu-btn span:nth-child(2) {
        opacity: 0;
    }

    .axis-menu-toggle:checked + .axis-menu-btn span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 575px) {
    body,
    body.axis-body--scrolled {
        padding-top: 76px !important;
    }

    .axis-container {
        width: calc(100% - 24px);
    }

    .axis-header {
        top: 0 !important;
    }

    .admin-bar .axis-header {
        top: 0 !important;
    }

    .axis-topbar {
        display: none !important;
    }

    .axis-mainbar,
    .axis-header.axis-header--scrolled .axis-mainbar {
        transform: none !important;
    }

    .axis-header__inner {
        min-height: 76px;
    }

    .axis-logo img {
        width: 132px;
    }

    .axis-menu-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .axis-menu-btn span {
        width: 21px;
    }

    .axis-mobile-actions .axis-btn {
        height: 48px;
    }
}

/* ==================================================
   FOOTER AXIS
================================================== */

.axis-footer {
    width: 100%;
    background: var(--axis-blue);
    color: #ffffff;
    font-family: var(--axis-font);
    overflow: hidden;
}

.axis-footer,
.axis-footer * {
    box-sizing: border-box;
}

.axis-footer a {
    text-decoration: none !important;
}

/* ===============================
   FOOTER MAIN
=============================== */

.axis-footer__main {
    position: relative;
    padding: 82px 0 60px;
    background:
        radial-gradient(circle at top right, rgba(91, 168, 212, 0.18), transparent 34%),
        linear-gradient(135deg, #0d2a49 0%, #08213a 100%);
}

.axis-footer__main::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.45;
    pointer-events: none;
}

.axis-footer__main > .axis-container {
    position: relative;
    z-index: 2;
}

/* ===============================
   GRID 3 COLUMNAS
=============================== */

.axis-footer__grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.45fr 0.9fr 1.1fr;
    gap: 82px;
    align-items: flex-start;
    justify-content: center;
}

/* ===============================
   MARCA
=============================== */

.axis-footer__brand {
    max-width: 430px;
}

.axis-footer__logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 26px;
}

.axis-footer__logo img {
    width: 220px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.axis-footer__brand p {
    margin: 0;
    color: rgba(255,255,255,0.78);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
}

.axis-footer__buttons {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.axis-footer__buttons .axis-btn {
    height: 52px;
    padding: 0 22px;
    font-size: 14px;
}

/* ===============================
   COLUMNAS
=============================== */

.axis-footer__col h3 {
    margin: 0 0 24px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    position: relative;
    padding-bottom: 14px;
}

.axis-footer__col h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: var(--axis-blue-light);
}

.axis-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.axis-footer__col li {
    margin: 0 0 13px;
}

.axis-footer__col li:last-child {
    margin-bottom: 0;
}

.axis-footer__col a {
    color: rgba(255,255,255,0.76) !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    transition: all 0.25s ease;
}

.axis-footer__col a:hover {
    color: #ffffff !important;
    transform: translateX(4px);
}

/* Puntico azul en servicios */
.axis-footer__services ul li a::before {
    content: "";
    width: 7px;
    height: 7px;
    min-width: 7px;
    border-radius: 50%;
    background: var(--axis-blue-light);
    margin-top: 7px;
    display: inline-block;
    transition: all 0.25s ease;
}

.axis-footer__services ul li a:hover::before {
    background: #ffffff;
    transform: scale(1.25);
}

/* ===============================
   BOTÓN ENLACES DE INTERÉS
=============================== */

.axis-footer__interest-btn {
    margin-top: 26px;
    height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--axis-blue-light);
    color: #ffffff !important;
    border: 2px solid var(--axis-blue-light);
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    gap: 10px;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.axis-footer__interest-btn::before {
    display: none !important;
}

.axis-footer__interest-btn i,
.axis-footer__interest-btn span {
    color: #ffffff !important;
}

.axis-footer__interest-btn:hover {
    background: var(--axis-blue-light-hover);
    border-color: var(--axis-blue-light-hover);
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* ===============================
   CONTACTO
=============================== */

.axis-footer__contact li {
    margin-bottom: 17px;
}

.axis-footer__contact i {
    width: 18px;
    min-width: 18px;
    color: var(--axis-blue-light);
    font-size: 16px;
    line-height: 1.45;
    margin-top: 1px;
}

.axis-footer__contact span {
    display: inline-block;
}

/* ===============================
   REDES SOCIALES
=============================== */

.axis-footer__social {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.axis-footer__social a {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    transition: all 0.25s ease;
}

.axis-footer__social a i {
    color: #ffffff;
    font-size: 16px;
    margin: 0;
    width: auto;
    min-width: auto;
}

.axis-footer__social a:hover {
    background: var(--axis-blue-light);
    border-color: var(--axis-blue-light);
    transform: translateY(-3px);
}

/* ===============================
   FOOTER BOTTOM
=============================== */

.axis-footer__bottom {
    background: #071b30;
    border-top: 1px solid rgba(255,255,255,0.09);
    padding: 24px 0 34px;
}

.axis-footer__bottom-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.axis-footer__bottom p {
    margin: 0;
    color: rgba(255,255,255,0.68);
    font-size: 14px;
    font-weight: 500;
}

.axis-footer__bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.68);
}

.axis-footer__bottom-links a {
    color: rgba(255,255,255,0.68) !important;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.axis-footer__bottom-links a:hover {
    color: #ffffff !important;
}

/* ==================================================
   FOOTER RESPONSIVE
================================================== */

@media (max-width: 1200px) {
    .axis-footer__grid {
        max-width: 1040px;
        grid-template-columns: 1.2fr 0.85fr;
        gap: 52px;
    }

    .axis-footer__contact {
        grid-column: span 2;
    }

    .axis-footer__bottom-inner {
        max-width: 1040px;
    }
}

@media (max-width: 991px) {
    .axis-footer__main {
        padding: 64px 0 48px;
    }

    .axis-footer__grid {
        max-width: 720px;
        grid-template-columns: 1fr 1fr;
        gap: 42px 34px;
    }

    .axis-footer__brand {
        grid-column: span 2;
        max-width: none;
    }

    .axis-footer__contact {
        grid-column: span 2;
    }

    .axis-footer__bottom-inner {
        max-width: 720px;
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .axis-footer__bottom-links {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .axis-footer__main {
        padding: 54px 0 40px;
    }

    .axis-footer__grid {
        max-width: 100%;
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .axis-footer__brand,
    .axis-footer__contact {
        grid-column: auto;
    }

    .axis-footer__logo img {
        width: 180px;
    }

    .axis-footer__brand p {
        font-size: 15px;
    }

    .axis-footer__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .axis-footer__buttons .axis-btn {
        width: 100%;
        height: 50px;
    }

    .axis-footer__interest-btn {
        width: 100%;
    }

    .axis-footer__col h3 {
        font-size: 19px;
        margin-bottom: 20px;
    }

    .axis-footer__bottom {
        padding: 20px 0 28px !important;
    }

    .axis-footer__bottom-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 8px !important;
    }

    .axis-footer__bottom-links {
        order: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        line-height: 1.35 !important;
    }

    .axis-footer__bottom-links a {
        font-size: 12px !important;
        font-weight: 500 !important;
        line-height: 1.35 !important;
    }

    .axis-footer__bottom p {
        order: 2 !important;
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
}