
/* =====================================================
   NUTRICIÓN & BIENESTAR
   Diseño principal de la web pública
===================================================== */


/* =====================================================
   1. VARIABLES GENERALES
===================================================== */

:root {
    --color-primary: #315D4C;
    --color-primary-dark: #234536;
    --color-primary-light: #E7EEE5;

    --color-background: #F8F7F2;
    --color-white: #FFFFFF;
    --color-cream: #F0EDE3;

    --color-text: #263A32;
    --color-text-light: #727D75;

    --color-border: #E5E5DD;

    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: Arial, Helvetica, sans-serif;

    --container-width: 1240px;

    /* =============================================
       CABECERA PERSONALIZABLE
       Estas variables las sobrescribe el editor de
       apariencia (WordPress o respaldo local).
    ============================================== */

    --header-height: 90px;
    --header-bg: var(--color-background);
    --header-padding-x: 35px;
    --header-gap: 35px;
    --header-border-width: 1px;
    --header-border-color: #E5E5DD;
    --header-radius: 0px;

    --brand-gap: 11px;
    --brand-name-size: 23px;
    --brand-tagline-size: 9px;
    --brand-color: var(--color-primary);
    --brand-heading-font: var(--font-heading);
    --header-body-font: var(--font-body);

    --logo-size: 42px;
    --logo-radius: 50%;
    --logo-bg: var(--color-primary);
    --logo-color: #FFFFFF;
    --logo-font-size: 25px;

    --nav-gap: 29px;
    --nav-font-size: 13px;
    --nav-color: var(--color-text);
    --nav-active-color: var(--color-primary);

    --header-button-bg: var(--color-primary);
    --header-button-color: #FFFFFF;
    --header-button-font-size: 13px;
    --header-button-font: var(--font-body);
    --header-button-radius: 30px;
    --header-button-padding-x: 23px;
    --header-button-padding-y: 13px;

    --access-button-bg: var(--color-primary);
    --access-button-color: #FFFFFF;
    --access-button-font-size: 13px;
    --access-button-font: var(--font-body);
    --access-button-radius: 30px;
    --access-button-padding-x: 23px;
    --access-button-padding-y: 13px;
}


/* =====================================================
   2. RESETEO GENERAL
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    background: var(--color-background);
    color: var(--color-text);
    font-size: var(--page-text-size, 15px);
    line-height: 1.6;
}

main {
    display: flex;
    flex-direction: column;
}

main > section {
    width: 100%;
}

img {
    display: block;
    max-width: 100%;
    width: 100%;
}

.imagen-pendiente {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #DCE9D9 100%);
}

.about-image.imagen-pendiente {
    height: 490px;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.section-spacing {
    padding: var(--section-spacing, 110px) 30px;
}

.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
}


/* =====================================================
   3. CABECERA
===================================================== */

.site-header {
    width: 100%;
    height: var(--header-height);

    background: var(--header-bg);

    position: sticky;
    top: 0;
    z-index: 1000;

    border-bottom: var(--header-border-width) solid var(--header-border-color);
    border-radius: var(--header-radius);
}

.header-container {
    max-width: 1420px;
    height: 100%;
    margin: 0 auto;
    padding: var(--hl-pad-top, 0px) var(--hl-pad-right, var(--header-padding-x)) var(--hl-pad-bottom, 0px) var(--hl-pad-left, var(--header-padding-x));

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--header-gap);
}

/* DISTRIBUCIÓN EN TRES BLOQUES */

.header-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--hl-sep-bloques, 24px);
    flex: 1 1 auto;
    min-width: 0;
}

.header-layout--listo {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--hl-sep-bloques, 24px);
}

.header-zona {
    display: flex;
    align-items: center;
    gap: var(--hl-sep-bloques, 24px);
    min-width: 0;
}

.header-zona[data-zona="izquierda"] {
    grid-column: 1;
    justify-content: flex-start;
    justify-self: start;
}

.header-zona[data-zona="centro"] {
    grid-column: 2;
    justify-content: center;
    justify-self: center;
}

.header-zona[data-zona="derecha"] {
    grid-column: 3;
    justify-content: flex-end;
    justify-self: end;
}

.header-zona:empty {
    display: none;
}

/* LOGOTIPO */

.brand {
    display: flex;
    align-items: center;
    gap: var(--brand-gap);
    flex-shrink: 0;
}

.brand-symbol {
    width: var(--logo-size);
    height: var(--logo-size);
    flex-shrink: 0;

    border-radius: var(--logo-radius);

    background-color: var(--logo-bg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--logo-color);

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: var(--brand-heading-font);
    font-size: var(--logo-font-size);
}

.brand-name {
    display: flex;
    flex-direction: column;

    color: var(--brand-color);
    font-family: var(--brand-heading-font);
    font-size: var(--brand-name-size);
    line-height: 1;
}

.brand-name small {
    font-family: var(--header-body-font);
    font-size: var(--brand-tagline-size);
    letter-spacing: 2.5px;
    margin-top: 5px;
    font-weight: bold;
}

/* NAVEGACIÓN */

.main-navigation {
    display: flex;
    align-items: center;
    gap: var(--hl-menu-gap, 29px);
}

.nav-link {
    color: var(--nav-color);
    font-family: var(--header-body-font);
    font-size: var(--nav-font-size);
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--nav-active-color);
}

/* BOTÓN CABECERA */

.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--header-button-bg);
    color: var(--header-button-color);

    padding: var(--header-button-padding-y) var(--header-button-padding-x);
    border-radius: var(--header-button-radius);

    font-family: var(--header-button-font);
    font-size: var(--header-button-font-size);
    font-weight: bold;

    transition: 0.25s;
}

.header-button:hover {
    filter: brightness(0.92);
    transform: translateY(-2px);
}

.header-access-button {
    background: var(--access-button-bg);
    color: var(--access-button-color);
    padding: var(--access-button-padding-y) var(--access-button-padding-x);
    border-radius: var(--access-button-radius);
    font-family: var(--access-button-font);
    font-size: var(--access-button-font-size);
}

.header-access-button:hover {
    filter: brightness(0.92);
    transform: translateY(-2px);
}

/* La vista previa del editor desactiva las transiciones para que los
   cambios de color, tamaño y relleno se vean al instante. */
.nutricionista-vista-previa .header-button,
.nutricionista-vista-previa .header-access-button {
    transition: none !important;
}

/* MENÚ MÓVIL */

.mobile-menu-button {
    display: none;
    border: none;
    background: none;
    padding: 8px;
}

.mobile-menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    margin: 5px 0;
}


/* =====================================================
   4. HERO / PORTADA PRINCIPAL
===================================================== */

.hero-section {
    min-height: 620px;
    height: min(690px, 75vw);

    position: relative;
    display: flex;
    align-items: center;

    overflow: hidden;
    background: #D9D6C9;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

.hero-background::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(20, 37, 29, 0.20) 0%,
        rgba(20, 37, 29, 0.04) 70%
    );
}

.hero-container {
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
    padding: 55px 35px;

    position: relative;
    z-index: 2;
}

.hero-content {
    width: 460px;
    max-width: 100%;

    padding: 35px 34px;

    background: rgba(255, 255, 255, 0.92);

    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 7px;

    backdrop-filter: blur(7px);
}

.section-eyebrow {
    display: block;

    color: var(--color-primary);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;

    margin-bottom: 17px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(34px, 3.2vw, var(--hero-title-size, 45px));
    font-weight: normal;
    line-height: 1.17;

    color: var(--color-primary-dark);
}

.hero-content h1 span {
    display: block;
}

.hero-description {
    font-size: 16px;
    line-height: 1.55;

    color: var(--color-text);
    margin-top: 23px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;

    margin-top: 25px;
}

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    background: var(--color-primary);
    color: white;

    border: none;
    border-radius: 30px;

    padding: 14px 22px;

    font-size: 13px;
    font-weight: bold;

    transition: 0.25s;
}

.button-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.button-secondary {
    color: var(--color-primary);
    font-size: 13px;
    font-weight: bold;

    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 4px;
}

.hero-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 30px;
    padding-top: 20px;

    border-top: 1px solid var(--color-border);
}

.hero-note-line {
    width: 3px;
    min-width: 3px;
    height: 38px;

    background: #A6BBA6;
}

.hero-note p {
    font-size: 12px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.hero-bottom-label {
    position: absolute;
    right: 35px;
    bottom: 25px;

    color: white;
    font-size: 10px;
    letter-spacing: 2px;

    z-index: 2;
    text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}


/* =====================================================
   5. PRESENTACIÓN
===================================================== */

.about-section {
    background: var(--color-background);
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 85px;
}

.about-image-wrapper {
    position: relative;
    padding: 0 0 25px 25px;
}

.about-image-wrapper::before {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 75%;
    height: 75%;

    background: var(--color-primary-light);
    z-index: 0;
}

.about-image {
    position: relative;
    z-index: 1;

    height: 490px;
    object-fit: cover;
    object-position: center;
}

.about-image-caption {
    position: absolute;
    z-index: 2;

    right: -20px;
    bottom: 45px;

    background: var(--color-primary);
    color: white;

    padding: 14px 20px;

    font-size: 9px;
    letter-spacing: 1.5px;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: var(--section-title-size, 43px);
    line-height: 1.2;
    font-weight: normal;

    margin-bottom: 27px;
}

.about-content h2 span {
    display: block;
    color: var(--color-primary);
}

.about-content p {
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 17px;
}

.text-link {
    display: inline-block;

    color: var(--color-primary);
    font-weight: bold;
    font-size: 13px;

    margin-top: 15px;
    padding-bottom: 4px;

    border-bottom: 1px solid var(--color-primary);
    transition: 0.2s;
}

.text-link:hover {
    color: var(--color-primary-dark);
    padding-right: 5px;
}


/* =====================================================
   6. ENCABEZADOS DE SECCIÓN
===================================================== */

.section-header {
    margin-bottom: 55px;
}

.section-header.centered {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: var(--section-title-size, 42px);
    font-weight: normal;
    line-height: 1.2;

    margin-bottom: 17px;
}

.section-header h2 span {
    color: var(--color-primary);
}

.section-header p {
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.7;
}


/* =====================================================
   7. SERVICIOS
===================================================== */

.services-section {
    background: #F0F1E9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 27px;
}

.service-card {
    background: white;
    overflow: hidden;

    border: 1px solid rgba(35,69,54,0.06);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(35,69,54,0.09);
}

.service-image {
    height: 240px;
    overflow: hidden;
}

.service-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 27px;
}

.service-number {
    display: block;

    color: #91A58F;
    font-family: var(--font-heading);
    font-size: 16px;

    margin-bottom: 13px;
}

.service-content h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: normal;

    margin-bottom: 13px;
}

.service-content p {
    color: var(--color-text-light);
    font-size: 13px;
    line-height: 1.8;
}

.services-footer {
    text-align: center;
    margin-top: 45px;
}

.button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--color-primary);
    color: var(--color-primary);

    border-radius: 30px;
    padding: 13px 23px;

    font-size: 12px;
    font-weight: bold;

    transition: 0.25s;
}

.button-outline:hover {
    background: var(--color-primary);
    color: white;
}


/* =====================================================
   8. METODOLOGÍA
===================================================== */

.method-section {
    background: var(--color-primary-dark);
    color: white;
}

.method-container {
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.method-section .section-eyebrow {
    color: #B9CFB9;
}

.method-intro h2 {
    font-family: var(--font-heading);
    font-size: var(--section-title-size, 43px);
    font-weight: normal;
    line-height: 1.2;

    margin-bottom: 25px;
}

.method-intro h2 span {
    display: block;
    color: #C4D5BF;
}

.method-intro p {
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    line-height: 1.9;
}

.method-steps {
    display: flex;
    flex-direction: column;
}

.method-step {
    display: flex;
    align-items: flex-start;
    gap: 25px;

    padding: 25px 0;

    border-bottom: 1px solid rgba(255,255,255,0.17);
}

.method-step:first-child {
    padding-top: 0;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 25px;
    color: #B9CFB9;
}

.method-step h3 {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: normal;
    margin-bottom: 7px;
}

.method-step p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}


/* =====================================================
   9. FRASE DESTACADA
===================================================== */

.quote-section {
    background: var(--color-cream);
    padding: 95px 30px;
    text-align: center;
}

.quote-container {
    max-width: 850px;
    margin: 0 auto;
}

.quote-mark {
    display: block;

    font-family: var(--font-heading);
    font-size: 80px;
    color: #8DA58C;
    line-height: 0.8;
}

.quote-container h2 {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 36px;
    line-height: 1.35;

    margin: 25px 0;
}

.quote-decoration {
    color: var(--color-primary);
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: bold;
}


/* =====================================================
   10. OPINIONES
===================================================== */

.testimonials-section {
    background: var(--color-background);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.testimonial-card {
    background: white;
    border: 1px solid var(--color-border);

    padding: 32px 27px;
}

.testimonial-stars {
    color: #B18B50;
    font-size: 17px;
    letter-spacing: 3px;

    margin-bottom: 22px;
}

.testimonial-card > p {
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.65;
    color: var(--color-text);

    min-height: 115px;
}

.testimonial-author {
    border-top: 1px solid var(--color-border);
    padding-top: 17px;
    margin-top: 22px;
}

.testimonial-author strong,
.testimonial-author span {
    display: block;
}

.testimonial-author strong {
    font-size: 12px;
}

.testimonial-author span {
    font-size: 11px;
    color: var(--color-text-light);
    margin-top: 4px;
}


/* =====================================================
   11. BLOG
===================================================== */

.blog-section {
    background: #F0F1E9;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 35px;

    margin-bottom: 45px;
}

.blog-header h2 {
    font-family: var(--font-heading);
    font-size: var(--section-title-size, 39px);
    line-height: 1.2;
    font-weight: normal;

    margin-bottom: 14px;
}

.blog-header h2 span {
    display: block;
    color: var(--color-primary);
}

.blog-header p {
    color: var(--color-text-light);
    font-size: 13px;
}

.blog-header .button-outline {
    flex-shrink: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.blog-card {
    background: white;
    overflow: hidden;
}

.blog-image {
    display: block;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-category {
    display: block;
    color: var(--color-primary);

    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1.7px;

    margin-bottom: 12px;
}

.blog-content h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    line-height: 1.35;
    font-weight: normal;

    margin-bottom: 13px;
}

.blog-content p {
    font-size: 12px;
    line-height: 1.8;
    color: var(--color-text-light);
}


/* =====================================================
   12. CONTACTO
===================================================== */

.contact-section {
    background: var(--color-background);
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 90px;
    align-items: center;
}

.contact-content h2 {
    font-family: var(--font-heading);
    font-size: var(--section-title-size, 48px);
    font-weight: normal;
    line-height: 1.2;

    margin-bottom: 25px;
}

.contact-content h2 span {
    display: block;
    color: var(--color-primary);
}

.contact-content > p {
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.9;
}

.contact-details {
    margin-top: 35px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-top: 17px;
}

.contact-detail > span {
    width: 38px;
    height: 38px;

    background: var(--color-primary-light);
    color: var(--color-primary);

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-detail p {
    font-size: 13px;
}

/* FORMULARIO */

.contact-form-wrapper {
    background: white;
    border: 1px solid var(--color-border);

    padding: 38px;
}

.contact-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: normal;
}

.contact-form-wrapper > p {
    color: var(--color-text-light);
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 27px;
}

.form-group {
    margin-bottom: 19px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;

    border: 1px solid var(--color-border);
    border-radius: 5px;

    background: #FCFCFA;

    padding: 13px 14px;

    color: var(--color-text);
    font-size: 13px;

    outline: none;
    transition: border 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    color: var(--color-text-light);
    font-size: 11px;

    margin-bottom: 23px;
}

.privacy-checkbox input {
    margin-top: 3px;
    accent-color: var(--color-primary);
}

.form-button {
    width: 100%;
}


/* =====================================================
   13. PIE DE PÁGINA
===================================================== */

.site-footer {
    background: var(--footer-bg, var(--color-primary-dark));
    color: white;

    padding: 65px 35px 0;
}

.footer-container {
    max-width: var(--container-width, 1240px);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 65px;

    padding-bottom: 55px;
}

.footer-logo .brand-name {
    color: white;
}

.footer-logo .brand-symbol {
    background: #DCE9D9;
    color: var(--color-primary-dark);
}

.footer-brand > p {
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    line-height: 1.8;

    max-width: 260px;
    margin-top: 22px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.footer-column h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 7px;
}

.footer-column a {
    color: rgba(255,255,255,0.68);
    font-size: 12px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    max-width: var(--container-width, 1240px);
    margin: 0 auto;

    border-top: 1px solid rgba(255,255,255,0.16);

    padding: 22px 0;

    display: flex;
    justify-content: space-between;
    gap: 20px;

    color: rgba(255,255,255,0.55);
    font-size: 10px;
}


/* =====================================================
   14. RESPONSIVE - TABLETS
===================================================== */

@media (max-width: 1050px) {

    .nav-link {
        font-size: 12px;
    }

    .about-container {
        gap: 45px;
    }

    .method-container,
    .contact-container {
        gap: 45px;
    }

    .footer-container {
        gap: 35px;
    }

}


/* =====================================================
   15. RESPONSIVE - MÓVILES
===================================================== */

@media (max-width: 760px) {

    .section-spacing {
        padding: 75px 22px;
    }

    /* CABECERA */

    .site-header {
        height: 75px;
    }

    .brand-name {
        font-size: 19px;
    }

    .brand-symbol {
        width: 36px;
        height: 36px;
    }

    /* HERO */

    .hero-section {
        height: auto;
        min-height: 650px;
        align-items: flex-end;
    }

    .hero-image {
        object-position: center;
    }

    .hero-container {
        padding: 35px 20px;
    }

    .hero-content {
        width: 100%;
        padding: 27px 23px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-actions {
        flex-wrap: wrap;
        gap: 18px;
    }

    .hero-bottom-label {
        display: none;
    }

    /* PRESENTACIÓN */

    .about-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-image {
        height: 400px;
    }

    .about-content h2 {
        font-size: 36px;
    }

    /* ENCABEZADOS */

    .section-header h2 {
        font-size: 34px;
    }

    /* SERVICIOS */

    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-image {
        height: 260px;
    }

    /* METODOLOGÍA */

    .method-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .method-intro h2 {
        font-size: 36px;
    }

    /* FRASE */

    .quote-section {
        padding: 75px 22px;
    }

    .quote-container h2 {
        font-size: 28px;
    }

    /* OPINIONES */

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card > p {
        min-height: auto;
    }

    /* BLOG */

    .blog-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-header h2 {
        font-size: 34px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* CONTACTO */

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content h2 {
        font-size: 38px;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
    }

    /* FOOTER */

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

}


/* =====================================================
   16. MÓVILES PEQUEÑOS
===================================================== */

@media (max-width: 400px) {

    .hero-content h1 {
        font-size: 29px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

}

/* =====================================================
   VARIANTES EDITABLES DE LAS SECCIONES
===================================================== */

.hero-content--centro {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.about-container--imagen-derecha .about-image-wrapper {
    order: 2;
}

.about-container--imagen-derecha .about-content {
    order: 1;
}

.services-grid.columnas-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.services-grid.columnas-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .services-grid.columnas-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .services-grid.columnas-2,
    .services-grid.columnas-4 {
        grid-template-columns: 1fr;
    }
}

/* La imagen de portada act�a tambi�n como fondo seleccionable. */
.hero-background {
    pointer-events: none;
}

.hero-background::after {
    pointer-events: none;
}

.hero-image {
    pointer-events: auto;
}

/* ACCESO DE CLIENTES EN LA CABECERA */

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--hl-botones-gap, 15px);
    /* El porcentaje se aplica sobre el espacio real hasta el borde visible. */
    transform: translateX(calc(var(--hl-margen-botones, 0) * var(--hl-botones-espacio-maximo, 0px) / 100));
}

.header-login-link {
    color: var(--nav-color);
    font-family: var(--header-body-font);
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: 0.2s;
}

.header-login-link:hover {
    color: var(--nav-active-color);
    border-bottom-color: currentColor;
}

.mobile-login-link {
    display: none;
    color: var(--header-button-color);
    background: var(--header-button-bg);
    font-family: var(--header-button-font);
    font-size: 10px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    padding: 8px 11px;
    border-radius: var(--header-button-radius);
}

@media (max-width: 900px) {

    .header-layout {
        flex: 1 1 auto;
        min-width: 0;
    }

    .header-actions {
        display: none;
    }

    .mobile-login-link {
        display: inline-flex;
        align-items: center;
        margin-left: auto;
        margin-right: 8px;
    }

    .mobile-menu-button {
        display: block;
    }

    .main-navigation {
        display: none;

        position: absolute;
        top: var(--header-height, 90px);
        left: 0;
        right: 0;

        background: var(--header-bg);

        margin: 0;
        padding: 20px;

        flex-direction: column;
        align-items: flex-start;
        gap: 18px;

        border-top: 1px solid var(--header-border-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    }

    .main-navigation.is-open {
        display: flex;
    }
}

/* =====================================================
   FORMULARIO PÚBLICO DE OPINIONES
====================================================== */

.opinion-form-wrapper {
    max-width: 620px;
    margin: 48px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.opinion-form-wrapper h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: normal;
}

.opinion-form-wrapper > p {
    margin: 5px 0 22px;
    color: var(--color-text-light);
    font-size: 12px;
}

.opinion-form-wrapper .form-group select {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    background: #FCFCFA;
    padding: 13px 14px;
    color: var(--color-text);
    font-family: inherit;
    font-size: 13px;
}

.opinion-form-wrapper .form-button {
    width: 100%;
}

.opinion-notice {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 6px;
    background: #E7EEE5;
    color: #234536;
    font-size: 12px;
    line-height: 1.5;
}

.opinion-notice--error {
    background: #FBEDEC;
    color: #A94442;
}

.opinion-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
/* Estados vacíos de blog y opiniones gestionados */

.testimonials-grid > .opinion-empty,
.blog-grid > .blog-empty {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--color-text-light);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}
/* =====================================================
   CARRUSEL DE OPINIONES
====================================================== */

.testimonials-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 6px 2px 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-carousel::-webkit-scrollbar {
    display: none;
}

.testimonials-carousel:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 10px;
}

.testimonials-track {
    display: flex;
    width: max-content;
    align-items: stretch;
}

.testimonials-set {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    gap: 22px;
    padding-right: 22px;
}

.testimonials-carousel .testimonial-card {
    flex: 0 0 min(400px, 85vw);
    width: min(400px, 85vw);
    max-width: 400px;
}

.testimonials-set--duplicado {
    pointer-events: none;
}

@media (max-width: 600px) {
    .testimonials-set {
        gap: 16px;
        padding-right: 16px;
    }

    .testimonials-carousel .testimonial-card {
        flex-basis: 86vw;
        width: 86vw;
    }
}

/* =====================================================
   SELECTOR DE ESTRELLAS DEL FORMULARIO DE OPINIONES
====================================================== */

.opinion-rating {
    margin: 0 0 19px;
    padding: 0;
    border: 0;
}

.opinion-rating legend {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    color: var(--color-text);
    font-size: 12px;
    font-weight: bold;
}

.opinion-rating-estrellas {
    display: flex;
    align-items: center;
    gap: 4px;
}

.opinion-rating-estrella {
    position: relative;
    display: inline-flex;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
}

.opinion-rating-estrella input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.opinion-estrella-icono {
    display: block;
    color: #D6D0C1;
    font-size: 32px;
    line-height: 1;
    transition: color 0.15s ease, transform 0.15s ease;
}

.opinion-rating-estrella:hover .opinion-estrella-icono,
.opinion-rating-estrella.activa .opinion-estrella-icono,
.opinion-rating-estrella input:checked + .opinion-estrella-icono {
    color: #C9A227;
}

.opinion-rating-estrella input:focus-visible + .opinion-estrella-icono {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 3px;
}

.opinion-rating-ayuda {
    margin: 6px 0 0;
    color: var(--color-text-light);
    font-size: 11px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Relleno progresivo sin JavaScript en navegadores modernos */
.opinion-rating-estrellas:has(input[value="5"]:checked) .opinion-rating-estrella:nth-child(-n+5) .opinion-estrella-icono,
.opinion-rating-estrellas:has(input[value="4"]:checked) .opinion-rating-estrella:nth-child(-n+4) .opinion-estrella-icono,
.opinion-rating-estrellas:has(input[value="3"]:checked) .opinion-rating-estrella:nth-child(-n+3) .opinion-estrella-icono,
.opinion-rating-estrellas:has(input[value="2"]:checked) .opinion-rating-estrella:nth-child(-n+2) .opinion-estrella-icono,
.opinion-rating-estrellas:has(input[value="1"]:checked) .opinion-rating-estrella:nth-child(-n+1) .opinion-estrella-icono {
    color: #C9A227;
}