
/*
Theme Name: JF Andreu
Theme URI: https://juanfranandreu.com
Author: JF Andreu
Description: Tema WordPress independiente para entrenamiento deportivo y biomecánica.
Version: 1.0.0
Text Domain: jf-andreu
*/

/* ==========================================
   CONFIGURACIÓN GLOBAL
========================================== */

html {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body p,
body a,
body li,
body span,
body button,
body input,
body textarea,
body select {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

.jfa-site-header,
.jfa-site-footer,
.jfa-site-header *,
.jfa-site-footer * {
    box-sizing: border-box;
}

/* ==========================================
   CABECERA ORDENADOR
========================================== */

body .jfa-site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #171c21;
    color: #ffffff;
}

body .jfa-site-header .jfa-header-inner {
    width: min(1280px, calc(100% - 48px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Ocultar nombre en ordenador */

body .jfa-site-header .jfa-header-brand {
    display: none !important;
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
}

body .jfa-site-header .jfa-header-brand span {
    color: #d7ff3f !important;
}

/* Menú alineado a la izquierda */

body .jfa-site-header .jfa-main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    margin: 0 auto 0 0;
    padding: 0;
}

body .jfa-site-header .jfa-main-nav a {
    display: inline-block;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .2s ease;
}

body .jfa-site-header .jfa-main-nav a:hover {
    color: #d7ff3f !important;
}

/* Acciones a la derecha */

body .jfa-site-header .jfa-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-left: auto;
}

/* Botón Contacto */

body .jfa-site-header a.jfa-header-contact {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 12px 22px;
    border: 0;
    border-radius: 8px;
    background: #d7ff3f !important;
    color: #111820 !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .2s ease;
}

body .jfa-site-header a.jfa-header-contact:hover {
    background: #ffffff !important;
    color: #111820 !important;
}

/* Ocultar hamburguesa en ordenador */

body .jfa-site-header .jfa-menu-toggle {
    display: none !important;
}

/* ==========================================
   PIE DE PÁGINA
========================================== */

.jfa-site-footer {
    width: 100%;
    padding: 70px 24px 0;
    background: #111820;
    color: #ffffff;
}

.jfa-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 65px;
    padding-bottom: 55px;
}

.jfa-site-footer h2 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 27px;
    font-weight: 800;
}

.jfa-site-footer h3 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
}

.jfa-site-footer p {
    max-width: 390px;
    margin: 0;
    color: #aeb7bf;
    font-size: 15px;
    line-height: 1.8;
}

.jfa-site-footer a {
    display: block;
    margin-bottom: 13px;
    color: #aeb7bf !important;
    font-size: 14px;
    text-decoration: none !important;
    transition: color .2s ease;
}

.jfa-site-footer a:hover {
    color: #d7ff3f !important;
}

.jfa-footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: #aeb7bf;
    font-size: 13px;
}

.jfa-footer-bottom a {
    display: inline;
    margin: 0;
    color: #d7ff3f !important;
    font-size: inherit;
}

/* ==========================================
   TABLET Y MÓVIL
========================================== */

@media (max-width: 900px) {

    body .jfa-site-header .jfa-header-inner {
        width: calc(100% - 32px);
        min-height: 70px;
        gap: 12px;
    }

    /* Mostrar JuanFran Andreu */

    body .jfa-site-header .jfa-header-brand {
        display: inline-block !important;
        flex-shrink: 0;
        font-size: 18px;
        line-height: 1.2;
    }

    /* Contacto y menú a la derecha */

    body .jfa-site-header .jfa-header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
    }

    body .jfa-site-header a.jfa-header-contact {
        min-height: 39px;
        padding: 10px 15px;
        font-size: 12px;
    }

    /* Botón hamburguesa */

    body .jfa-site-header .jfa-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 8px;
        border: 0;
        border-radius: 6px;
        background: transparent;
        cursor: pointer;
    }

    body .jfa-site-header .jfa-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: #ffffff;
        border-radius: 2px;
    }

    /* Menú desplegable */

    body .jfa-site-header .jfa-main-nav {
        display: none;
        margin: 0;
    }

    body .jfa-site-header .jfa-main-nav.is-open {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        padding: 15px 24px 25px;
        background: #171c21;
        box-shadow: 0 15px 25px rgba(0,0,0,.2);
    }

    body .jfa-site-header .jfa-main-nav.is-open a {
        display: block;
        padding: 13px 0;
        color: #ffffff !important;
        font-size: 14px;
    }

    /* Footer tablet */

    .jfa-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .jfa-footer-inner > div:first-child {
        grid-column: 1 / -1;
    }
}

/* ==========================================
   MÓVILES PEQUEÑOS
========================================== */

@media (max-width: 600px) {

    body .jfa-site-header .jfa-header-inner {
        width: calc(100% - 24px);
        gap: 6px;
    }

    body .jfa-site-header .jfa-header-brand {
        font-size: 15px;
        letter-spacing: -.4px;
    }

    body .jfa-site-header .jfa-header-actions {
        gap: 5px;
    }

    body .jfa-site-header a.jfa-header-contact {
        min-height: 36px;
        padding: 9px 11px;
        font-size: 11px;
    }

    body .jfa-site-header .jfa-menu-toggle {
        width: 36px;
        height: 38px;
        padding: 6px;
    }

    body .jfa-site-header .jfa-menu-toggle span {
        width: 22px;
    }

    /* Footer móvil */

    .jfa-site-footer {
        padding: 50px 20px 0;
    }

    .jfa-footer-inner {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-bottom: 40px;
    }

    .jfa-footer-inner > div:first-child {
        grid-column: auto;
    }

    .jfa-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        line-height: 1.6;
    }
}

