
/* =========================================
   LUIS OVALLE PSICOLOGÍA
   STYLE.CSS COMPLETO Y REPARADO
   Colores definidos en css/config.css
   ========================================= */

/* CONFIGURACIÓN GENERAL */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --letra-ordenador: 18px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo {
    font-family: 'Lora', serif;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

/* =========================================
   MENÚ DE NAVEGACIÓN
   ========================================= */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    background-color: rgba(249, 248, 246, 0.96);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.logo {
    font-size: 1.25rem;
    text-decoration: none;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

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

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: #FFFFFF !important;
    padding: 10px 22px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main) !important;
    border: 1.5px solid var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: #FFFFFF !important;
}

/* =========================================
   PORTADA / INICIO
   ========================================= */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 8% 70px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1.1;
    max-width: 580px;
}

.hero-tag {
    display: inline-block;
    background-color: var(--bg-alt);
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--secondary);
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.18;
    margin-bottom: 20px;
}

.hero h1 i {
    font-style: italic;
    color: var(--accent);
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================================
   FOTOGRAFÍA DE LUIS
   ========================================= */

.hero-image-wrapper {
    flex: 0.9;
    display: flex;
    justify-content: flex-end;
}

.hero-image {
    width: 100%;
    max-width: 420px;
    height: 520px;
    background-color: #E2DDD5;
    background-image: url('../img/luis-ovalle.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

/* =========================================
   FRASE DESTACADA
   ========================================= */

.quote-section {
    background-color: var(--secondary);
    color: #FFFFFF;
    text-align: center;
    padding: 50px 8%;
}

.quote-section h2 {
    font-size: 1.7rem;
    color: #FFFFFF;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.4;
}

/* =========================================
   MARCO CLÍNICO
   ========================================= */

.framework-section {
    padding: 70px 8%;
    background-color: var(--bg-alt);
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.framework-item {
    background: #FFFFFF;
    padding: 35px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
}

.framework-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    display: inline-block;
    letter-spacing: 0.05em;
}

.framework-item h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.framework-item p {
    color: var(--text-light);
    font-size: 0.94rem;
}

/* =========================================
   SERVICIOS DE INICIO
   ========================================= */

.services {
    padding: 80px 8%;
    background-color: var(--bg-base);
}

.services-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary);
    margin-bottom: 8px;
}

.services-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.services-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-card {
    background: #FFFFFF;
    padding: 35px 28px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.service-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    display: block;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.service-link:hover {
    text-decoration: underline;
}

/* =========================================
   PROCESO EN PASOS
   ========================================= */

.process-section {
    padding: 80px 8%;
    background-color: #FFFFFF;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.step-card {
    padding: 30px 25px;
    border-left: 3px solid var(--accent);
    background-color: var(--bg-base);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.step-num {
    font-size: 1.8rem;
    font-family: 'Lora', serif;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =========================================
   TARIFAS
   ========================================= */

.pricing-section {
    padding: 80px 8%;
    background-color: var(--bg-base);
}

.pricing-card {
    background: #FFFFFF;
    border-radius: var(--border-radius);
    padding: 45px 35px;
    max-width: 850px;
    margin: 0 auto;
    border: 1px solid var(--border-light);
}

.pricing-header {
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pricing-amount {
    font-size: 3rem;
    font-family: 'Lora', serif;
    font-weight: 700;
    color: var(--accent);
}

.pricing-duration {
    font-size: 1rem;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.pricing-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 8px;
}

.modalities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.modality-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.modality-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.modality-condition {
    color: var(--secondary) !important;
    font-size: 0.85rem !important;
}

.pricing-cta {
    text-align: center;
}

/* =========================================
   PREGUNTAS FRECUENTES
   ========================================= */

.faq-section {
    padding: 80px 8%;
    background-color: var(--bg-alt);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.faq-question {
    padding: 18px 22px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 22px;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--accent);
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-item[open] .faq-question {
    border-bottom: 1px solid var(--border-light);
}

.faq-answer {
    padding: 18px 22px;
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.65;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-card {
    background: #FFFFFF;
    padding: 35px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--secondary);
    margin-bottom: 8px;
    display: block;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 22px;
}

/* =========================================
   FOOTER - CONSERVAR DISEÑO
   ========================================= */

footer {
    background-color: var(--bg-alt);
    padding: 50px 8% 25px;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.footer-content p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.footer-legal-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px auto 15px;
    padding: 15px 0;
    background-color: transparent !important;
    box-shadow: none;
    border: none;
}

.footer-legal-nav a {
    margin: 0 10px;
    background-color: transparent;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-legal-nav a:hover {
    color: var(--accent);
}

.copyright {
    font-size: 0.78rem !important;
    opacity: 0.6;
    margin-top: 12px;
}

/* =========================================
   SOBRE MÍ - DISEÑO EDITORIAL
   ========================================= */

.about-editorial {
    background-color: var(--bg-base);
    padding: 90px 8% 110px;
}

.about-editorial-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.about-editorial-heading {
    margin-bottom: 45px;
}

.about-editorial-heading .section-subtitle {
    display: block;
    margin-bottom: 12px;
}

.about-editorial-heading h2 {
    font-size: 2.4rem;
    line-height: 1.25;
    color: var(--accent);
    margin-bottom: 20px;
}

.about-editorial-line {
    width: 55px;
    height: 3px;
    border-radius: 3px;
    background-color: var(--accent);
}

.about-editorial-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 55px;
    align-items: start;
}

.about-editorial-text {
    min-width: 0;
}

.about-editorial-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-light);
    margin-bottom: 25px;
}

.about-editorial-text p:last-child {
    margin-bottom: 0;
}

.about-editorial-text strong {
    font-weight: 600;
}

.about-editorial-training {
    min-width: 0;
    background-color: #FFFFFF;
    padding: 38px 40px;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.025);
}

.about-editorial-training h3 {
    font-size: 1.55rem;
    margin-bottom: 14px;
}

.about-training-line {
    width: 40px;
    height: 2px;
    background-color: var(--accent);
    margin-bottom: 25px;
}

.about-editorial-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-editorial-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 22px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
}

.about-editorial-list li:last-child {
    margin-bottom: 0;
}

.about-editorial-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* =========================================
   ESPECIALIDADES - DISEÑO 2 X 2
   ========================================= */

.esp-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

/* CABECERA DE ESPECIALIDADES */

.esp-page-header {
    background-color: var(--bg-base);
    padding: 75px 8% 55px;
    text-align: center;
}

.esp-kicker {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary);
    margin-bottom: 12px;
}

.esp-title {
    font-family: 'Lora', serif;
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.esp-intro {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* CUADRÍCULA */

.esp-main {
    padding: 20px 8% 100px;
    background-color: var(--bg-base);
}

.esp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

/* TARJETAS DE ESPECIALIDADES */

.esp-card {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    padding: 38px 36px;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.esp-card-top {
    margin-bottom: 20px;
}

.esp-card-top::before {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 3px;
    margin-bottom: 20px;
}

.esp-card-tag {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--secondary);
    margin-bottom: 12px;
}

.esp-card-title {
    font-family: 'Lora', serif;
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-main);
    margin: 0;
}

.esp-card-text {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 25px;
}

/* LISTAS DE INTERVENCIÓN */

.esp-card-list {
    list-style: none;
    padding: 24px 0 0;
    margin: 0;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.esp-card-list li {
    position: relative;
    padding-left: 27px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-light);
}

.esp-card-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
    font-weight: 700;
    font-size: 1rem;
}

@media (hover: hover) {
    .esp-card:hover {
        transform: translateY(-4px);
        border-color: var(--accent);
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.055);
    }
}

/* BLOQUE FINAL DE CONTACTO */

.esp-cta {
    max-width: 850px;
    margin: 75px auto 0;
    padding: 55px 45px;
    background-color: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    text-align: center;
}

.esp-cta-title {
    font-family: 'Lora', serif;
    font-size: 1.9rem;
    line-height: 1.35;
    max-width: 650px;
    margin: 0 auto 18px;
}

.esp-cta-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto 28px;
}

/* =========================================
   RESPONSIVE - TABLET Y MÓVIL
   ========================================= */

@media screen and (max-width: 900px) {

    .nav-links {
        display: none;
    }

    .hero {
    flex-direction: column;
    padding-top: 35px;
    text-align: center;
}

    .hero-buttons {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero-image-wrapper {
        justify-content: center;
        width: 100%;
    }

    .hero-image {
        height: 380px;
    }

    .pricing-amount {
        font-size: 2.4rem;
    }

    /* SOBRE MÍ */

    .about-editorial {
        padding: 60px 8% 80px;
    }

    .about-editorial-heading {
        margin-bottom: 30px;
    }

    .about-editorial-heading h2 {
        font-size: 2rem;
    }

    .about-editorial-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-editorial-text p {
        line-height: 1.8;
    }

    .about-editorial-training {
        padding: 30px 25px;
    }

    .about-editorial-training h3 {
        font-size: 1.4rem;
    }

    /* ESPECIALIDADES */

    .esp-page-header {
        padding: 55px 8% 45px;
    }

    .esp-title {
        font-size: 2.3rem;
    }

    .esp-main {
        padding: 15px 8% 75px;
    }

    .esp-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .esp-card {
        padding: 32px 28px;
    }

    .esp-cta {
        margin-top: 55px;
        padding: 40px 30px;
    }

    .esp-cta-title {
        font-size: 1.6rem;
    }
}

/* =========================================
   MÓVILES PEQUEÑOS
   ========================================= */

@media screen and (max-width: 480px) {

    .esp-title {
        font-size: 2rem;
    }

    .esp-card {
        padding: 28px 24px;
    }

    .esp-card-title {
        font-size: 1.4rem;
    }

    .esp-card-text {
        font-size: 0.95rem;
    }

    .esp-card-list li {
        font-size: 0.9rem;
    }

    .esp-cta {
        padding: 35px 22px;
    }
}

/* FOOTER EN MÓVIL */

@media (max-width: 768px) {
    .footer-legal-nav {
        justify-content: center;
        gap: 12px 20px;
    }
}

/* =========================================
   TIPOGRAFÍA GLOBAL - SOLO ORDENADOR

   16px = original
   18px = +12,5%
   19px = +18,75%
   20px = +25%
   ========================================= */

@media screen and (min-width: 1024px) {
    html {
        font-size: var(--letra-ordenador);
    }
}

/* =========================================
   MENÚ HAMBURGUESA PARA MÓVIL

   Ordenador: menú horizontal original
   Móvil: botón con tres líneas
   ========================================= */


/* CONTENEDOR PRINCIPAL */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* OCULTAR BOTÓN EN ORDENADOR */

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

/* OCULTAR DESPLEGABLE EN ORDENADOR */

.mobile-nav {
    display: none;
}

/* IMPORTANTE:
   Mantener cerrado cuando tenga hidden */

.mobile-nav[hidden] {
    display: none !important;
}


/* =========================================
   VERSIÓN MÓVIL Y TABLET
   ========================================= */

@media screen and (max-width: 900px) {

    /* CABECERA */

    .site-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;

        padding: 17px 6%;
        background-color: var(--bg-base);
    }

    /* NOMBRE DE LUIS */

    .site-nav .logo {
        font-size: 1.15rem;
        white-space: normal;
        line-height: 1.3;
    }

    /* OCULTAR MENÚ DEL ORDENADOR */

    .site-nav .nav-links {
        display: none;
    }

    /* BOTÓN HAMBURGUESA */

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 5px;

        width: 44px;
        height: 44px;
        flex-shrink: 0;

        margin-left: 16px;
        padding: 10px;

        border: none;
        border-radius: 8px;

        background: transparent;
        cursor: pointer;

        position: relative;
        z-index: 1002;
    }

    /* LAS TRES LÍNEAS */

    .mobile-menu-toggle span {
        display: block;

        width: 24px;
        height: 2px;

        background-color: var(--text-main);
        border-radius: 3px;

        transition:
            transform 0.25s ease,
            opacity 0.25s ease;
    }

    /* ANIMACIÓN: TRES LÍNEAS A X */

    .mobile-menu-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* MENÚ DESPLEGABLE */

    .mobile-nav {
        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;

        padding: 16px 6% 25px;

        background-color: var(--bg-base);

        border-top: 1px solid var(--border-light);
        border-bottom: 1px solid var(--border-light);

        box-shadow: 0 14px 24px rgba(0, 0, 0, 0.07);

        z-index: 1001;
    }

    /* ENLACES DEL MENÚ */

    .mobile-nav a {
        display: block;

        padding: 15px 10px;

        color: var(--text-main);

        text-decoration: none;

        font-family: 'Inter', sans-serif;
        font-size: 1rem;
        font-weight: 500;

        border-bottom: 1px solid var(--border-light);

        transition: color 0.2s ease;
    }

    /* PÁGINA ACTIVA */

    .mobile-nav a.active,
    .mobile-nav a:hover {
        color: var(--accent);
    }

    /* BOTÓN PEDIR CITA */

    .mobile-nav a.btn {
        display: block;

        margin-top: 18px;
        padding: 14px 20px;

        border: none;
        border-radius: 30px;

        background-color: var(--accent);
        color: #FFFFFF !important;

        text-align: center;
        font-size: 1rem;
        font-weight: 600;
    }

    /* ACCESIBILIDAD */

    .mobile-menu-toggle:focus-visible,
    .mobile-nav a:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 3px;
    }
}


/* =========================================
   MÓVILES MUY ESTRECHOS
   ========================================= */

@media screen and (max-width: 380px) {

    .site-nav .logo {
        font-size: 1rem;
    }

    .mobile-nav a {
        padding: 13px 8px;
    }

}


/* =========================================
   MENÚ SUPERIOR - AJUSTE SOLO ORDENADOR
   ========================================= */

@media screen and (min-width: 1024px) {

    /* Desplazar los enlaces hacia la derecha */
    .site-nav .nav-links {
        position: relative;
        left: 40px;
    }

}

/* =========================================
   UBICACIÓN - DISEÑO RESPONSIVE
   ========================================= */

/* PANEL GENERAL */

.location-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;

    background-color: #FFFFFF;

    border: 1px solid var(--border-light);
    border-radius: 16px;

    overflow: hidden;
}

/* INFORMACIÓN DE LA CONSULTA */

.location-info {
    min-width: 0;

    padding: 45px 35px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* TÍTULO */

.location-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

/* DIRECCIÓN */

.location-address {
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.7;
}

/* DESCRIPCIÓN */

.location-description {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 22px;
}

/* NOTA DE RESERVA */

.location-notice {
    margin-top: 8px;
    padding: 18px 18px 16px;

    background-color: #f3f5ef;
    border: 1px solid #dde5d8;
    border-left: 4px solid var(--secondary);
    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.location-notice strong {
    display: block;
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.location-notice p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.75;
}

.location-notice p strong {
    display: inline;
    margin: 0;
    color: var(--text-main);
    font-size: inherit;
}
/* CONTENEDOR DEL MAPA */

.location-map {
    position: relative;
    min-width: 0;
    min-height: 380px;

    background-color: var(--bg-alt);
}

/* MAPA INTERACTIVO */

.location-map iframe {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 380px;

    border: 0;
}

/* BOTÓN CÓMO LLEGAR */

.location-directions {
    position: absolute;
    bottom: 18px;
    left: 18px;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 22px;

    background-color: var(--accent);
    color: #FFFFFF;

    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;

    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);

    transition: background-color 0.2s ease;
}

.location-directions:hover {
    background-color: var(--accent-hover);
}

/* =========================================
   TABLET Y MÓVIL
   ========================================= */

@media screen and (max-width: 900px) {

    /* Una columna */
    .location-panel {
        grid-template-columns: 1fr;
    }

    /* Información arriba */
    .location-info {
        padding: 30px 25px;
    }

    /* Mapa debajo */
    .location-map {
        height: 280px;
        min-height: 280px;
    }

    .location-map iframe {
        height: 100%;
        min-height: 0;
    }

    /* Botón centrado */
    .location-directions {
        left: 50%;
        bottom: 15px;

        transform: translateX(-50%);
        white-space: nowrap;
    }
}

/* =========================================
   MÓVILES PEQUEÑOS
   ========================================= */

@media screen and (max-width: 480px) {

    .location-info {
        padding: 26px 20px;
    }

    .location-title {
        font-size: 1.6rem;
    }

    .location-map {
        height: 250px;
        min-height: 250px;
    }

}

/* =========================================
   INICIO - TEXTO PRIMERO EN MÓVIL
   ========================================= */

@media screen and (max-width: 900px) {

    .hero {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
    }

    /* PRIMERO: Terapia a tu medida */
    .hero-content {
        order: 1 !important;
        width: 100%;
    }

    /* SEGUNDO: Fotografía de Luis */
    .hero-image-wrapper {
        order: 2 !important;
        width: 100%;
        margin-top: 30px;
    }

}



/* =========================================
   PROFESIÓN Y NÚMERO DE COLEGIADO
   ========================================= */

/* ORDENADOR: UNA SOLA LÍNEA */

.hero-tag .hero-profesion,
.hero-tag .hero-col {
    display: inline;
}

.hero-tag .hero-col::before {
    content: " · ";
}

/* MÓVIL: DOS LÍNEAS */

@media screen and (max-width: 900px) {

    .hero .hero-tag {
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center;
        text-align: center;
        gap: 4px;
        max-width: 100%;
        padding: 8px 18px;
    }

    .hero-tag .hero-profesion,
    .hero-tag .hero-col {
        display: block !important;
        width: auto;
        white-space: nowrap;
    }

    .hero-tag .hero-col::before {
        content: none !important;
    }
}





