/* ==========================================================================
   G2R Mining Solutions — Theme layer
   Capa de diseño compartida. Se carga DESPUÉS de inicio.css, header.css,
   footer.css y el CSS específico de cada página, por lo que define la
   identidad visual final: tokens, tipografía, header, footer y componentes.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&display=swap");

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Marca */
    --g2r-green: #6caf2c;
    --g2r-green-strong: #5a9424;
    --g2r-green-deep: #47761c;
    --g2r-lime: #b9e37c;
    --g2r-forest: #0f2017;
    --g2r-forest-2: #162b1f;

    /* Neutros */
    --g2r-ink: #14201a;
    --g2r-body: #4b5850;
    --g2r-muted: #7d8a81;
    --g2r-cream: #f7f5ef;
    --g2r-cream-2: #efece2;
    --g2r-surface: #ffffff;
    --g2r-line: rgba(20, 32, 26, 0.12);
    --g2r-line-soft: rgba(20, 32, 26, 0.07);
    --g2r-line-light: rgba(255, 255, 255, 0.14);

    /* Forma */
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(15, 32, 23, 0.05), 0 10px 30px -18px rgba(15, 32, 23, 0.25);
    --shadow-md: 0 24px 60px -30px rgba(15, 32, 23, 0.45);
    --shadow-lg: 0 40px 100px -40px rgba(8, 20, 13, 0.55);

    /* Layout */
    --container: 1240px;
    --gutter: clamp(20px, 4vw, 40px);
    --section-space: clamp(72px, 9vw, 128px);
    --header-offset: 96px;

    /* Tipografía */
    --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Fraunces", "Iowan Old Style", "Times New Roman", serif;

    /* Compatibilidad con CSS heredado */
    --secondary-color: #6caf2c;
    --dark-color: #0f2017;
    --light-gray-color: #f7f5ef;
    --site-max-width: 1240px;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Base tipográfica
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* La 404 no carga el CSS de página que traía este reset */
html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--g2r-body);
    background: var(--g2r-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-spacing: normal;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--g2r-ink);
    margin: 0 0 0.5em;
    word-wrap: break-word;
}

p {
    line-height: 1.8;
    margin: 0 0 1.1em;
    text-align: left;
    word-spacing: normal;
}

a {
    color: var(--g2r-green-deep);
}

img {
    max-width: 100%;
}

::selection {
    background: var(--g2r-lime);
    color: var(--g2r-forest);
}

:focus-visible {
    outline: 2px solid var(--g2r-green);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. Layout y títulos de sección
   -------------------------------------------------------------------------- */
.section_container {
    display: block;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section_title {
    position: relative;
    padding: 0;
    margin: 0 0 30px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 3.35rem);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -0.025em;
    text-transform: none;
    text-align: left;
    color: var(--g2r-ink);
}

.section_title::before {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    margin: 0 0 22px;
    background: var(--g2r-green);
    border-radius: 2px;
}

.section_title::after {
    display: none;
}

.section_title--center {
    text-align: center;
}

.section_title--center::before {
    margin-inline: auto;
}

.section_p {
    max-width: 68ch;
    font-size: clamp(1rem, 1.15vw, 1.12rem);
    line-height: 1.8;
    color: var(--g2r-body);
    text-align: left;
}

/* Aire uniforme de secciones (anula paddings heredados) */
.about_us,
.gallery,
.services,
.novedades,
.g2r_contact {
    padding: var(--section-space) 0;
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: clamp(10px, 1.5vw, 18px) 0;
    background: transparent;
    overflow: visible;
    transition: padding 0.3s var(--ease);
}

header.white {
    padding: 8px 0;
    background: transparent;
}

nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: calc(100% - 32px);
    max-width: var(--container);
    margin: 0 auto;
    padding: 9px 10px 9px 18px;
    background: rgba(11, 26, 18, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    box-shadow: 0 18px 45px -30px rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
    backdrop-filter: blur(16px) saturate(1.25);
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    overflow: visible;
}

header.white nav {
    background: rgba(11, 26, 18, 0.94);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 22px 50px -28px rgba(0, 0, 0, 0.85);
}

/* El CSS heredado pintaba el <ul> de blanco al scrollear; mantener el tema */
header.white ul {
    background: transparent;
    color: inherit;
}

header.white nav ul li a {
    color: rgba(255, 255, 255, 0.82);
}

header.white nav ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

header.white nav ul li a.is-active {
    color: #fff;
    background: transparent;
}

header.white nav ul li a::after {
    background: var(--g2r-green);
}

header.white nav label {
    color: #fff;
}

section[id] {
    scroll-margin-top: calc(var(--header-offset) + 16px);
}

nav .nav_logo a {
    display: flex;
    align-items: center;
    gap: 14px;
}

nav .nav_logo a img {
    width: auto;
    max-width: 132px;
    max-height: 42px;
    display: block;
}

nav .nav_logo h2 {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 26px;
}

nav ul {
    display: flex;
    gap: 2px;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-block;
    position: relative;
    margin: 0;
}

nav ul li a {
    position: relative;
    display: block;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.005em;
    color: rgba(255, 255, 255, 0.82);
    border-radius: 10px;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

nav ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

nav ul li a.is-active {
    color: #fff;
    background: transparent;
}

nav ul li a::after,
header.white nav ul li a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    width: auto;
    height: 2px;
    background: var(--g2r-green);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s var(--ease);
}

nav ul li a:hover::after,
nav ul li a.is-active::after,
header.white nav ul li a:hover::after,
header.white nav ul li a.is-active::after {
    left: 12px;
    right: 12px;
    bottom: 3px;
    width: auto;
    background: var(--g2r-green);
    transform: scaleX(1);
}

nav label {
    font-size: 30px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
}

/* Selector de idioma — mismo lenguaje visual que el panel móvil:
   fondo sólido, borde suave, radio 15px y sombra. */
.desktop-lang-picker {
    margin: 0 0 0 10px;
}

.lang-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--g2r-forest);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px -24px rgba(0, 0, 0, 0.95);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lang-pill:hover {
    background: var(--g2r-green);
    border-color: var(--g2r-green);
    color: #0b1a11;
    transform: none;
    box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.9);
}

.lang-pill .lang-flag {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    box-shadow: none;
}

/* El <ul> del header se vuelve transparente al scrollear (header.white ul);
   el desplegable necesita conservar su fondo sólido. */
.lang-dropdown,
header.white .lang-dropdown {
    top: calc(100% + 20px);
    width: max-content;
    min-width: 0;
    padding: 8px;
    margin: 0;
    background: var(--g2r-forest);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    box-shadow: 0 26px 60px -24px rgba(0, 0, 0, 0.85);
}

.lang-dropdown li {
    display: block;
    width: 100%;
    margin: 0;
}

.lang-dropdown li a,
header.white .lang-dropdown li a {
    border-radius: 9px;
    padding: 10px 12px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85) !important;
}

.lang-dropdown li a:hover,
header.white .lang-dropdown li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--g2r-lime) !important;
}

header.white .lang-pill {
    background: var(--g2r-forest);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

header.white .lang-pill:hover {
    background: var(--g2r-green);
    border-color: var(--g2r-green);
    color: #0b1a11;
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero_section {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero_section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(8, 18, 12, 0.55) 0%, rgba(8, 18, 12, 0.12) 34%, rgba(8, 18, 12, 0.78) 100%),
        linear-gradient(90deg, rgba(8, 18, 12, 0.62) 0%, rgba(8, 18, 12, 0.2) 55%, rgba(8, 18, 12, 0) 100%);
}

.hero_container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 24px;
    width: 100%;
    min-height: 100svh;
    padding-top: clamp(130px, 16vh, 190px);
    padding-bottom: clamp(64px, 10vh, 120px);
    /* El CSS heredado agrega 20px laterales: el hero debe alinear con
       el resto de las secciones (que usan el gutter del contenedor). */
    padding-left: 0;
    padding-right: 0;
}

/* Home */
.hero_section .hero_container .text_section {
    max-width: 880px;
    text-align: left;
}

.hero_section .hero_container .text_section .hero-main-title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6.2vw, 5.6rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: #fff !important;
    text-align: left;
    text-shadow: none;
}

.hero_section .hero_container .text_section .hero-highlight {
    display: block;
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(2.1rem, 4.8vw, 4.3rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--g2r-lime) !important;
    text-shadow: none;
}

.hero_section .hero_container .text_section .hero-tagline {
    display: block;
    margin: 0 0 26px;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.7vw, 2.5rem);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -0.015em;
    color: #fff !important;
    text-shadow: none;
}

.hero_section .hero_container .text_section p#hero-text {
    max-width: 54ch;
    margin: 0 0 34px;
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    font-weight: 400;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.86) !important;
    text-align: left;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

/* Páginas internas: hero compacto */
.page-inner .hero_section {
    min-height: clamp(380px, 56vh, 600px);
}

.page-inner .hero_container {
    min-height: clamp(380px, 56vh, 600px);
    padding-top: 150px;
    padding-bottom: clamp(48px, 7vh, 76px);
    padding-left: 0;
    padding-right: 0;
}

/* Varias páginas heredadas convierten el hero en columna y centran el
   bloque de texto; se mantiene alineado a la izquierda como en escritorio. */
.page-inner .hero_container .text_section {
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    text-align: left;
}

.hero_section .hero_container .text_section h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(3rem, 7.2vw, 7rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.035em;
    color: #fff !important;
    text-align: left;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.page-inner .hero_section .hero_container .text_section h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    margin-top: 26px;
    background: var(--g2r-green);
    border-radius: 2px;
}

/* Botón principal */
.swipe {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 206px;
    height: 58px;
    margin: 0;
    padding: 0 28px 0 64px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0b1a11;
    background: var(--g2r-green);
    border: 0;
    border-radius: var(--radius-pill);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.65);
    cursor: pointer;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.swipe:hover {
    padding: 0 28px 0 64px;
    color: #0b1a11;
    background: var(--g2r-lime);
    box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.55);
}

.swipecontainer {
    position: absolute;
    left: 6px;
    top: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--g2r-lime);
    background: var(--g2r-forest);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: background 0.3s var(--ease);
}

.swipe:hover .swipecontainer {
    left: 6px;
    background: var(--g2r-forest);
    color: var(--g2r-lime);
}

.swipecontainer svg {
    padding: 0;
    transition: transform 0.3s var(--ease);
}

.swipe:hover .swipecontainer svg {
    transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   6. Home — About
   -------------------------------------------------------------------------- */
.about_us {
    background: var(--g2r-cream);
    color: var(--g2r-body);
}

.about_container {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
}

.about_container .text_section {
    max-width: 100%;
}

.about_intro {
    position: sticky;
    top: calc(var(--header-offset) + 24px);
}

.about_intro .section_title {
    margin-bottom: 26px;
}

.about_meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--g2r-muted);
}

.about_meta::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--g2r-green);
}

.about_media {
    position: relative;
    margin: 34px 0 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
    background: var(--g2r-cream-2);
}

.about_media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 38%;
    transition: transform 0.8s var(--ease);
}

.about_media:hover img {
    transform: scale(1.03);
}

.about_container .text_section,
.about_container .text_section p,
.about_container .text_section .hero-text {
    max-width: none;
    margin-bottom: 0;
    padding: 0;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: 0;
    text-align: left;
    color: var(--g2r-body);
}

.about_container .text_section p {
    max-width: 64ch;
    margin-bottom: 1.25em;
}

.about_container .text_section p:last-child {
    margin-bottom: 0;
}

.about_container .text_section > p:first-child::first-letter {
    float: left;
    margin: 8px 14px 0 0;
    font-family: var(--font-display);
    font-size: 3.6em;
    font-weight: 500;
    line-height: 0.72;
    color: var(--g2r-green-deep);
}

/* Marca de entrada: G2R con el mismo tratamiento tipográfico que la capitular */
.lead-mark {
    float: left;
    margin: 8px 14px 0 0;
    font-family: var(--font-display);
    font-size: 3.2em;
    font-weight: 500;
    line-height: 0.78;
    letter-spacing: -0.02em;
    color: var(--g2r-green-deep);
}

.text_link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--g2r-ink);
    transition: color 0.2s ease;
}

.text_link span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 15px;
    color: var(--g2r-forest);
    background: var(--g2r-lime);
    border-radius: 50%;
    transition: transform 0.3s var(--ease), background 0.3s ease;
}

.text_link:hover {
    color: var(--g2r-green-deep);
}

.text_link:hover span {
    background: var(--g2r-green);
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   7. Galería
   -------------------------------------------------------------------------- */
.gallery {
    background: var(--g2r-surface);
}

.gallery > .section_container > .section_title {
    margin-bottom: 36px;
}

.gallery_container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 64px;
    overflow: visible;
}

.gallery_viewport {
    width: 100%;
    overflow: hidden;
}

.gallery_carousel {
    display: flex;
    gap: 0;
    width: 800%; /* 24 items / 3 por vista = 8 páginas */
    transition: transform 0.6s var(--ease);
    will-change: transform;
}

.gallery_items {
    flex: 0 0 calc(100% / 24);
    height: clamp(280px, 34vw, 440px);
    padding: 0 9px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    box-sizing: border-box;
}

.gallery_items:hover {
    transform: none;
    box-shadow: none;
    z-index: auto;
}

.gallery .gallery_container img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform 0.7s var(--ease), filter 0.4s ease;
}

.gallery_items:hover img {
    transform: scale(1.03);
    filter: saturate(1.05);
}

/* Flechas superpuestas */
.carousel_controls {
    position: absolute;
    inset: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0 2px;
    pointer-events: none;
}

.carousel_btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    font-size: 22px;
    color: #fff;
    background: rgba(11, 26, 18, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.carousel_btn:hover {
    background: var(--g2r-lime);
    color: var(--g2r-forest);
    border-color: var(--g2r-lime);
    transform: none;
}

.carousel_btn:disabled {
    background: rgba(11, 26, 18, 0.18);
    color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
    opacity: 0.55;
    cursor: default;
}

/* Indicadores tipo línea */
.carousel_indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
}

.indicator {
    width: 22px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: var(--g2r-line);
    cursor: pointer;
    transition: width 0.3s var(--ease), background 0.3s ease;
}

.indicator:hover {
    background: var(--g2r-muted);
}

.indicator.active {
    width: 38px;
    background: var(--g2r-green);
    transform: none;
}

/* --------------------------------------------------------------------------
   8. Contacto
   -------------------------------------------------------------------------- */
.g2r_contact {
    background: var(--g2r-cream);
}

.g2r_contact .section_container {
    max-width: var(--container);
}

.g2r_contact__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
    width: 100%;
    background: var(--g2r-surface);
    border: 1px solid var(--g2r-line-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.g2r_contact__info {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: clamp(32px, 4vw, 54px);
    color: rgba(255, 255, 255, 0.82);
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(108, 175, 44, 0.22) 0%, rgba(108, 175, 44, 0) 55%),
        var(--g2r-forest);
}

.g2r_contact__info::after {
    display: none;
}

.g2r_contact__mark {
    width: 58px;
    height: auto;
    display: block;
}

.g2r_contact__brand {
    margin: 0;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.15;
    color: #fff;
}

.g2r_contact__details {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.g2r_contact__details li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.55;
}

.g2r_contact__details i {
    margin-top: 2px;
    font-size: 18px;
    color: var(--g2r-lime);
}

.g2r_contact__details a {
    color: rgba(255, 255, 255, 0.86);
    transition: color 0.2s ease;
}

.g2r_contact__details a:hover {
    color: var(--g2r-lime);
}

.g2r_contact__form-panel {
    width: 100%;
    padding: clamp(32px, 5vw, 62px) clamp(24px, 5vw, 64px);
    background: var(--g2r-surface);
}

.g2r_contact__heading {
    margin: 0 0 30px;
    padding: 0;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: left;
    text-transform: none;
    color: var(--g2r-ink);
}

.g2r_contact__heading::after {
    display: none;
}

.g2r_contact__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.g2r_contact__group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
}

.g2r_contact__group label {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
    color: var(--g2r-muted);
}

.g2r_contact__group input,
.g2r_contact__group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--g2r-ink);
    background: #f7f8f4;
    border: 1px solid #e2e6dc;
    border-radius: 12px;
    box-shadow: none;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.g2r_contact__group input:hover,
.g2r_contact__group textarea:hover {
    border-color: #cfd6c8;
}

.g2r_contact__group input:focus,
.g2r_contact__group textarea:focus {
    background: #fff;
    border-color: var(--g2r-green);
    box-shadow: 0 0 0 4px rgba(108, 175, 44, 0.16);
}

.g2r_contact__group input::placeholder,
.g2r_contact__group textarea::placeholder {
    font-size: 15px;
    color: #a4ada2;
}

.g2r_contact__group textarea {
    min-height: 132px;
    resize: vertical;
}

.g2r_contact__group.has-error input,
.g2r_contact__group.has-error textarea {
    border-color: #d94a3d;
    box-shadow: 0 0 0 4px rgba(217, 74, 61, 0.12);
}

.g2r_contact__error {
    display: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #c0392b;
    text-align: left;
}

.g2r_contact__group.has-error .g2r_contact__error {
    display: block;
}

.g2r_contact__captcha-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 22px;
}

.g2r_captcha_error {
    display: none;
}

.g2r_captcha_error.visible {
    display: block;
}

.g2r_required {
    color: var(--g2r-green-deep);
    font-weight: 600;
}

.g2r_required_note {
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--g2r-muted);
    text-align: left;
}

.g2r_contact__btn {
    margin-top: 24px;
    padding: 15px 40px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: #fff;
    background: var(--g2r-forest);
    border: 0;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease;
}

.g2r_contact__btn:hover {
    background: var(--g2r-green-strong);
}

.g2r_contact__btn:active {
    transform: scale(0.985);
}

.g2r_contact__btn:disabled {
    background: #a9b2a6;
    cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   9. Secciones oscuras (equipo, perfiles, sostenibilidad)
   -------------------------------------------------------------------------- */
.services {
    position: relative;
    background: var(--g2r-forest);
    color: rgba(255, 255, 255, 0.78);
    overflow: hidden;
}

.services::before {
    content: "";
    position: absolute;
    top: -220px;
    right: -180px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(108, 175, 44, 0.16) 0%, rgba(108, 175, 44, 0) 65%);
    pointer-events: none;
}

.services > .section_container,
.services > .section_title {
    position: relative;
    z-index: 1;
}

.services .section_title {
    color: #fff;
}

.services .section_title::before {
    background: var(--g2r-lime);
}

.services .section_p {
    color: rgba(255, 255, 255, 0.72);
}

.services .service_container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.6vw, 32px);
    align-items: stretch;
    justify-content: stretch;
    flex-wrap: nowrap;
}

.services .services_items {
    width: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease);
}

.services .services_items:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(185, 227, 124, 0.35);
    transform: translateY(-3px);
}

.services .section_container .services_items img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 0;
    transition: transform 0.7s var(--ease);
}

.services .services_items:hover img {
    transform: scale(1.035);
}

.services_items .services_text {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(20px, 2.4vw, 28px);
    text-align: left;
}

.services_items .services_text h3 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.7vw, 1.55rem);
    font-weight: 500;
    line-height: 1.15;
    color: #fff;
    text-align: left;
}

.services_items .services_text h4 {
    margin: 0 0 16px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--g2r-lime);
    text-align: left;
}

.services_items .services_text p {
    margin: 0 0 0.9em;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
    text-align: left;
}

.services_items .services_text p:last-child {
    margin-bottom: 0;
}

.services .link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin: 20px 0 0;
    padding: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: none;
    border: 0;
    cursor: pointer;
}

.services .link::after {
    display: none;
}

.services .link p {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.services .link p::before {
    content: none;
}

.services .link svg {
    position: static;
    width: 17px;
    color: var(--g2r-lime);
    transition: transform 0.3s var(--ease);
}

.services .link:hover svg {
    color: var(--g2r-lime);
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   10. Páginas editoriales (misión, compañías, novedades, sostenibilidad)
   -------------------------------------------------------------------------- */
/* Qué hacemos */
.services_page {
    background: var(--g2r-surface);
}

.services_page .section_title {
    margin: 0 0 26px;
}

.services_page .section_p {
    margin: 0;
    padding: 0;
    max-width: 62ch;
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.85;
    text-align: left;
    color: var(--g2r-body);
}

.mission_grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: start;
    padding-bottom: clamp(36px, 5vw, 56px);
    margin-bottom: clamp(36px, 5vw, 56px);
    border-bottom: 1px solid var(--g2r-line);
}

.mission_grid:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
}

.mission_grid .section_title {
    margin-bottom: 0;
}

.services_page #services-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.services_page #services-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 18px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--g2r-body);
    background: #f8f9f5;
    border: 1px solid var(--g2r-line-soft);
    border-radius: 12px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.services_page #services-list li:hover {
    background: #fff;
    border-color: rgba(108, 175, 44, 0.4);
}

.services_page #services-list li i {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    padding: 0;
    font-size: 11px;
    line-height: 1;
    color: var(--g2r-forest);
    background: var(--g2r-lime);
    border-radius: 50%;
}

.services_page .copyright {
    vertical-align: super;
    font-size: 0.7em;
}

.services_image_container {
    width: 100%;
    margin: clamp(40px, 6vw, 64px) 0 0;
}

.services_image_wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.services_page .full-width-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 21 / 9;
    display: block;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
}

/* Compañías / Sobre nosotros (páginas de texto) */
.about_page .about_grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
}

.about_page .about_grid .text_section {
    max-width: 100%;
}

.about_page .about_grid p {
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.9;
    text-align: left;
    color: var(--g2r-body);
    max-width: 66ch;
}

.about_page .about_grid p:last-child {
    margin-bottom: 0;
}

.about_page .about_grid p:first-child::first-letter {
    float: left;
    margin: 8px 14px 0 0;
    font-family: var(--font-display);
    font-size: 3.6em;
    font-weight: 500;
    line-height: 0.72;
    color: var(--g2r-green-deep);
}

.about_banner {
    margin: clamp(40px, 6vw, 72px) 0 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    aspect-ratio: 21 / 8;
}

.about_banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Sostenibilidad */
.sustain_section .service_container {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
}

.sustain_section .services_items {
    background: transparent;
    border: 0;
}

.sustain_section .services_items:hover {
    background: transparent;
    border-color: transparent;
    transform: none;
}

.sustain_section .services_items .services_text {
    padding: 0;
}

.sustain_section .services_items ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sustain_section .services_items ul li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 14px;
    align-items: start;
    margin: 0;
    padding: 22px 0;
    font-size: 15.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.76);
    border-bottom: 1px solid var(--g2r-line-light);
}

.sustain_section .services_items ul li:first-child {
    padding-top: 0;
}

.sustain_section .services_items ul li:last-child {
    border-bottom: 0;
}

.sustain_section #services-list li i {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    padding: 0;
    font-size: 11px;
    line-height: 1;
    color: var(--g2r-forest);
    background: var(--g2r-lime);
    border-radius: 50%;
}

.sustain_side {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 36px);
}

.sustain_side .section_title-2 {
    margin: 0 0 16px;
    padding: 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #fff;
    text-align: left;
}

.sustain_side .section_title-2::before {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    margin: 0 0 16px;
    background: var(--g2r-lime);
    border-radius: 2px;
}

.sustain_side .section_title-2::after {
    display: none;
}

.sustain_side p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
    text-align: left;
}

.sustain_side .services_itemsods {
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.sustain_side .ods-colab {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

/* Novedades */
.novedades {
    background: var(--g2r-cream);
}

.novedades_container {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(36px, 5vw, 64px);
    text-align: center;
    background: var(--g2r-surface);
    border: 1px solid var(--g2r-line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.novedades_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 26px;
    font-size: 28px;
    color: var(--g2r-forest);
    background: var(--g2r-lime);
    border-radius: 50%;
}

.novedades_container .section_title {
    text-align: center;
    margin-bottom: 24px;
}

.novedades_container .section_title::before {
    margin-inline: auto;
}

.novedades_container .section_p {
    margin-inline: auto;
    max-width: 58ch;
    text-align: center;
    color: var(--g2r-body);
}

.novedades_container .section_p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   11. Perfiles del equipo
   -------------------------------------------------------------------------- */
.profile_section {
    padding-top: clamp(130px, 16vh, 180px);
}

.profile_layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(32px, 6vw, 84px);
    align-items: start;
}

.profile_photo {
    position: sticky;
    top: calc(var(--header-offset) + 20px);
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
    background: var(--g2r-forest-2);
}

.profile_photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 28%;
}

.profile_body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile_section .section_title {
    margin: 0 0 6px;
    font-size: clamp(2.4rem, 4.6vw, 4.1rem);
    color: #fff;
}

.profile_section .section_title::before {
    margin-bottom: 20px;
}

.profile_body .services_text {
    width: 100%;
    padding: 0;
}

.profile_body .services_text h3 {
    display: none;
}

.profile_body .services_text h4 {
    margin: 0 0 26px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--g2r-lime);
    text-align: left;
}

.profile_body .services_text p.headingp {
    margin: 0 0 24px;
    padding-left: 20px;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    line-height: 1.5;
    color: #fff;
    border-left: 2px solid var(--g2r-green);
    text-align: left;
}

.profile_body .services_text p {
    margin: 0 0 1.1em;
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.74);
    text-align: left;
}

.profile_back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 0 26px;
    font-size: 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.profile_back:hover {
    background: var(--g2r-lime);
    border-color: var(--g2r-lime);
    color: var(--g2r-forest);
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
footer {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 7vw, 96px) 0 0;
    color: rgba(255, 255, 255, 0.72);
    background: var(--g2r-forest);
}

footer::before {
    content: "";
    position: absolute;
    top: -260px;
    left: 50%;
    width: 900px;
    height: 520px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(108, 175, 44, 0.16) 0%, rgba(108, 175, 44, 0) 68%);
    pointer-events: none;
}

.footer_section {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.78fr) minmax(0, 1.05fr) minmax(0, 1.15fr);
    gap: clamp(28px, 4vw, 56px);
    max-width: var(--container);
    margin: 0 auto;
    padding: 0;
    align-items: start;
    text-align: left;
}

.footer_section .footer_logo {
    grid-column: auto;
    margin: 0;
    text-align: left;
}

.footer_section .footer_logo a {
    display: inline-block;
}

.footer_section .footer_logo a img {
    max-width: 168px;
    height: auto;
    margin: 0 0 20px;
}

.footer_location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer_location i {
    font-size: 16px;
    color: var(--g2r-lime);
}

.footer_section h3 {
    margin: 0 0 22px;
    padding: 0;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    border: 0;
    text-align: left;
}

.footer_section .useful_links {
    text-align: left;
}

.footer_section .useful_links ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer_section .useful_links ul li {
    margin: 0;
}

.footer_section .useful_links ul li a {
    display: inline-block;
    padding: 4px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.76);
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer_section .useful_links ul li a:hover {
    color: var(--g2r-lime);
    text-decoration: none;
    transform: translateX(3px);
}

.footer_section .contact_us {
    text-align: left;
}

.footer_section .contact_us ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer_section .contact_us ul li {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.76);
}

.footer_section .contact_us ul li i {
    min-width: 18px;
    margin-top: 2px;
    font-size: 16px;
    color: var(--g2r-lime);
}

.footer_section .contact_us ul li span {
    font-size: 14px;
    line-height: 1.5;
}

.footer_section .follow_us {
    text-align: left;
}

.footer_section .follow_us i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 6px 8px 0;
    padding: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer_section .follow_us i:hover {
    color: var(--g2r-forest);
    background: var(--g2r-lime);
    transform: translateY(-2px);
}

.footer_section .follow_us #icon1:hover,
.footer_section .follow_us #icon2:hover,
.footer_section .follow_us #icon3:hover,
.footer_section .follow_us #icon4:hover,
.footer_section .follow_us #icon5:hover {
    color: var(--g2r-forest);
}

.footer_bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: var(--container);
    margin: clamp(44px, 6vw, 72px) auto 0;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer_bottom p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

/* Enlaces legales (fila inferior) */
.footer_legal {
    /* Anula los estilos globales del nav del header */
    position: static;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
}

.footer_legal a {
    position: relative;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.58);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer_legal a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--g2r-lime);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}

.footer_legal a:hover {
    color: #fff;
}

.footer_legal a:hover::after,
.footer_legal a[aria-current="page"]::after {
    transform: scaleX(1);
}

.footer_legal a[aria-current="page"] {
    color: #fff;
}

.footer_bottom > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer_bottom > a:hover {
    color: var(--g2r-forest);
    background: var(--g2r-lime);
    border-color: var(--g2r-lime);
}

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1200px) {
    nav ul li a {
        padding: 9px 9px;
        font-size: 13px;
    }

    nav {
        gap: 10px;
    }
}

/* Footer en tablets anchas: 4 columnas quedan ajustadas, pero 2 dejan
   media fila vacía. Tres columnas mantienen la lectura del escritorio. */
@media screen and (min-width: 1024px) and (max-width: 1119px) {
    .footer_section {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 34px;
    }

    .footer_section .footer_logo {
        grid-column: auto;
        margin-bottom: 0;
    }

    .footer_section .follow_us {
        grid-column: 1 / -1;
        margin-top: 4px;
    }
}

/* Se usa 1024px (no 1023) para coincidir con el media heredado de las
   páginas internas: si no, a exactamente 1024px conviven el nav de
   escritorio y el panel móvil y la navegación queda inutilizable. */
@media screen and (max-width: 1024px) {
    :root {
        --header-offset: 84px;
    }

    /* Panel de navegación móvil: tarjeta flotante bajo el navbar */
    nav ul {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
        width: min(360px, calc(100vw - 2 * var(--gutter)));
        max-width: 360px;
        height: auto;
        max-height: calc(100svh - var(--header-offset) - 34px);
        margin: 0;
        padding: 12px 14px 14px;
        background: var(--g2r-forest);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 15px;
        box-shadow: 0 26px 60px -24px rgba(0, 0, 0, 0.85);
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(calc(100% + 24px));
        transition: transform 0.38s var(--ease);
        z-index: 998;
    }

    /* El panel es siempre opaco, también con el header en estado "white" */
    header.white nav ul,
    header.white ul {
        background: var(--g2r-forest);
    }

    /* Estado abierto: también cubre el rango de 1024px, donde el CSS
       heredado no aporta su propia regla de apertura. */
    #click:checked ~ ul {
        right: 0;
        left: auto;
        transform: translateX(0);
    }

    /* Los iconos del menú móvil son siempre blancos (el CSS heredado los
       pintaba negros al scrollear con el header en estado "white"). */
    nav label,
    nav label .menu_btn,
    nav label .close_btn,
    header.white nav label,
    header.white nav label .menu_btn,
    header.white nav label .close_btn {
        color: #fff;
    }

    nav ul li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        text-align: left;
    }

    nav ul li a {
        padding: 14px 6px;
        font-size: 18px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.88);
        border-radius: 8px;
    }

    nav ul li a:hover,
    nav ul li a.is-active {
        background: transparent;
        color: var(--g2r-lime);
    }

    nav ul li a::after,
    header.white nav ul li a::after {
        left: 6px;
        right: auto;
        bottom: 6px;
        width: 28px;
        transform: scaleX(0);
        transform-origin: left center;
    }

    nav ul li a:hover::after,
    nav ul li a.is-active::after,
    header.white nav ul li a:hover::after,
    header.white nav ul li a.is-active::after {
        left: 6px;
        right: auto;
        width: 28px;
        transform: scaleX(1);
    }

    .mobile-only-lang {
        display: block;
        width: 100%;
        margin: 26px 0 0;
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        text-align: left;
    }

    .mobile-lang-box {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 0;
        background: none;
        border-radius: 0;
    }

    .mobile-lang-box button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 0;
        font-family: var(--font-body);
        font-size: 14px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.82);
        background: transparent;
        border: 0;
        cursor: pointer;
    }

    .mobile-lang-box button img {
        width: 20px;
        height: 14px;
        border-radius: 2px;
    }

    .mobile-lang-box span {
        color: rgba(255, 255, 255, 0.25);
    }

    .desktop-lang-picker {
        display: none !important;
    }

    label .menu_btn {
        display: block;
        font-size: 30px;
    }

    /* El botón de cierre hereda color negro del CSS de página y desaparece
       sobre el panel verde. */
    nav label .close_btn,
    nav label .menu_btn {
        color: #fff;
    }

    nav label {
        position: relative;
        z-index: 999;
    }

    .about_container,
    .about_page .about_grid,
    .mission_grid,
    .profile_layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about_intro {
        position: static;
    }

    .about_media {
        margin-top: 0;
    }

    .profile_photo {
        position: static;
        max-width: 460px;
    }


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

    .sustain_section .service_container {
        grid-template-columns: 1fr;
    }

    .footer_section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px;
    }

    .footer_section .footer_logo {
        grid-column: 1 / -1;
        margin-bottom: 4px;
    }
}

@media screen and (max-width: 900px) {
    .g2r_contact__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .g2r_contact__info,
    .g2r_contact__form-panel {
        min-width: 0;
    }

    .g2r_contact__info {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 24px;
        padding: 28px 30px;
    }

    .g2r_contact__details {
        flex: 1 1 320px;
        gap: 10px;
    }

    .g2r_contact__mark {
        width: 48px;
    }

    .g2r_contact__brand {
        font-size: 22px;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --gutter: 22px;
        --section-space: 72px;
    }

    /* Algunas páginas heredadas fuerzan el contenedor con !important */
    .section_container {
        width: 100% !important;
        max-width: var(--container) !important;
        margin-inline: auto !important;
        padding-inline: var(--gutter) !important;
    }

    .hero_section {
        background-attachment: scroll;
    }

    /* En móvil el bloque del hero se centra en la pantalla: antes quedaba
       empujado al pie por el align-items:flex-end de escritorio. */
    .hero_container {
        align-items: center;
        padding-top: 104px;
        padding-bottom: 48px;
    }

    /* El CSS heredado añade 15px laterales a los párrafos y los desalinea
       respecto de títulos y botones. */
    p {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hero_section .hero_container .text_section .hero-main-title {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }

    .hero_section .hero_container .text_section .hero-highlight {
        font-size: clamp(1.9rem, 8.4vw, 2.7rem);
    }

    .hero_section .hero_container .text_section .hero-tagline {
        font-size: clamp(1.25rem, 5.4vw, 1.7rem);
        margin-bottom: 20px;
    }

    .hero_section .hero_container .text_section p#hero-text {
        font-size: 15.5px;
        line-height: 1.7;
    }

    .swipe {
        height: 52px;
        min-width: 190px;
        padding: 0 22px 0 58px;
        font-size: 12px;
    }

    .swipe:hover {
        padding: 0 22px 0 58px;
    }

    .swipecontainer {
        width: 42px;
        height: 42px;
    }

    .page-inner .hero_section,
    .page-inner .hero_container {
        min-height: clamp(340px, 46vh, 460px);
    }

    .page-inner .hero_container {
        justify-content: center;
        padding-top: 104px;
        padding-bottom: 42px;
    }

    .hero_section .hero_container .text_section h2 {
        font-size: clamp(2.5rem, 11vw, 4rem);
    }

    .section_title {
        font-size: clamp(1.9rem, 8vw, 2.5rem) !important;
        padding: 0 !important;
        margin-bottom: 24px;
    }

    .section_title::before {
        margin-bottom: 16px;
    }

    .section_p {
        padding: 0 !important;
        font-size: 15.5px;
    }

    .about_container .text_section p,
    .about_page .about_grid p,
    .services_items .services_text p,
    .novedades_container .section_p,
    .profile_body .services_text p {
        padding: 0 !important;
        text-align: left !important;
    }

    /* La cita del perfil conserva su línea vertical: devolver el aire
       interno que anula el reset de párrafos. */
    .profile_body .services_text p.headingp {
        padding-left: 20px !important;
        font-size: clamp(1rem, 4.4vw, 1.15rem);
        line-height: 1.55;
        margin-bottom: 22px;
    }

    .services_items .services_text h3,
    .services_items .services_text h4 {
        text-align: left !important;
    }

    .about_container .text_section p,
    .about_page .about_grid p {
        font-size: 16px;
        line-height: 1.85;
    }

    .lead-mark {
        margin: 6px 10px 0 0;
        font-size: 2.9em;
    }

    .about_page .about_grid p:first-child::first-letter {
        font-size: 3.2em;
    }

    .services .service_container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .services .section_container .services_items img {
        aspect-ratio: 16 / 10;
        object-position: center 30%;
        /* El CSS heredado de "Nuestro equipo" deja la foto al 50% con un
           margen derecho fijo; en móvil debe llenar toda la tarjeta. */
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
    }

    .services_items .services_text h3,
    .services_items .services_text h4,
    .services_items .services_text p {
        margin-left: 0;
        margin-right: 0;
    }

    .services_page #services-list {
        grid-template-columns: 1fr;
    }

    .services_page .full-width-image {
        aspect-ratio: 4 / 3;
    }

    .about_banner {
        aspect-ratio: 4 / 3;
    }

    .gallery_container {
        padding: 0;
    }

    .gallery_items {
        height: clamp(240px, 62vw, 320px);
        padding: 0 5px;
    }

    .gallery_carousel {
        width: 2400%;
    }

    .gallery .gallery_container img {
        border-radius: 14px;
    }

    /* Flechas debajo del carrusel para que no tapen las fotos */
    .carousel_controls {
        position: static;
        inset: auto;
        justify-content: center;
        gap: 16px;
        margin-top: 14px;
        padding: 0;
    }

    .carousel_btn {
        width: 44px;
        height: 44px;
        font-size: 19px;
    }

    .carousel_indicators {
        margin-top: 14px;
        gap: 6px;
    }

    .indicator {
        width: 18px;
    }

    .indicator.active {
        width: 30px;
    }

    .g2r_contact__form-panel {
        padding: 32px 22px 34px;
    }

    .g2r_contact__row {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 14px;
    }

    .g2r_contact__heading {
        font-size: 1.6rem;
        margin-bottom: 24px;
    }

    .g2r_contact__btn {
        width: 100%;
    }

    .profile_section {
        padding-top: 118px;
    }

    .profile_photo {
        max-width: 100%;
    }

    .profile_section .section_title {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .footer_section {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: left !important;
    }

    .footer_section .footer_logo {
        grid-column: 1 !important;
        margin-bottom: 0 !important;
        text-align: left !important;
    }

    .footer_section h3,
    .footer_section .useful_links,
    .footer_section .useful_links ul,
    .footer_section .useful_links ul li,
    .footer_section .useful_links ul li a,
    .footer_section .contact_us,
    .footer_section .follow_us {
        text-align: left !important;
    }

    .footer_section .contact_us ul li {
        justify-content: flex-start !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: none;
    }

    .footer_section .follow_us {
        grid-column: 1 !important;
        margin-top: 0 !important;
    }

    .footer_bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding-top: 20px;
    }
}

/* Tablets (641-768): el footer de una columna deja media pantalla vacía */
@media screen and (min-width: 641px) and (max-width: 768px) {
    .footer_section {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 34px !important;
    }

    .footer_section .footer_logo,
    .footer_section .follow_us {
        grid-column: 1 / -1 !important;
    }

    .footer_bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding-top: 22px;
    }
}

@media screen and (max-width: 480px) {
    :root {
        --gutter: 18px;
    }

    nav {
        padding: 8px 8px 8px 14px;
        border-radius: 14px;
    }

    nav .nav_logo a img {
        max-width: 108px;
        max-height: 34px;
    }

    .hero_section .hero_container .text_section .hero-main-title {
        font-size: 2.05rem;
    }

    .hero_section .hero_container .text_section .hero-highlight {
        font-size: 1.85rem;
    }

    .hero_section .hero_container .text_section .hero-tagline {
        font-size: 1.2rem;
    }

    .hero_container {
        padding-top: 96px;
    }

    .about_meta {
        font-size: 11px;
    }

    .gallery_items {
        height: 230px;
    }

    .g2r_contact__info {
        padding: 24px 22px;
        flex-direction: column;
        align-items: flex-start;
    }

    .g2r_contact__details {
        flex: initial;
    }

    /* El panel necesita 304px para el reCAPTCHA; con 18px de padding entra
       a partir de 380px. Los anchos menores se compensan escalando el widget. */
    .g2r_contact__form-panel {
        padding: 28px 18px 32px;
    }

    .g2r_contact__captcha-wrap {
        overflow: hidden;
    }

    .footer_section .follow_us i {
        width: 38px;
        height: 38px;
    }
}

/* Pantallas muy estrechas: el reCAPTCHA mide 304px fijos */
@media screen and (max-width: 380px) {
    .g2r_contact__captcha-wrap .g-recaptcha {
        zoom: 0.9;
    }
}

@media screen and (max-width: 340px) {
    .g2r_contact__captcha-wrap .g-recaptcha {
        zoom: 0.78;
    }
}

/* Teléfonos en horizontal: el hero no debe desbordar ni tapar el header */
@media screen and (max-width: 1024px) and (max-height: 640px) and (orientation: landscape) {
    .hero_section,
    .page-inner .hero_section {
        min-height: 0;
    }

    .hero_container,
    .page-inner .hero_container {
        align-items: flex-start;
        min-height: 0;
        padding-top: 88px;
        padding-bottom: 40px;
    }
}

/* --------------------------------------------------------------------------
   14. Accesibilidad / movimiento reducido
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .hero_section {
        background-attachment: scroll;
    }
}

/* --------------------------------------------------------------------------
   Ticker de empresas (index)
   -------------------------------------------------------------------------- */
.trust_ticker {
    --ticker-gap: clamp(16px, 2.4vw, 30px);
    position: relative;
    padding: clamp(34px, 4.2vw, 54px) 0 clamp(38px, 4.8vw, 60px);
    background: var(--g2r-surface);
    border-bottom: 1px solid var(--g2r-line-soft);
    overflow: hidden;
}

.trust_ticker__title {
    margin: 0 0 clamp(22px, 3vw, 34px);
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.2vw, 2.9rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--g2r-ink);
    text-align: center;
}

.trust_ticker__title::before {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    margin: 0 auto 16px;
    background: var(--g2r-green);
    border-radius: 2px;
}

.trust_ticker__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.trust_ticker__track {
    display: flex;
    align-items: center;
    width: max-content;
    animation-name: trust-marquee;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 32s;
    will-change: transform;
}

.trust_ticker__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 0 0 auto;
    height: 64px;
    padding: 0 22px;
    margin-right: var(--ticker-gap);
    background: var(--g2r-cream);
    border: 1px solid var(--g2r-line-soft);
    border-radius: 14px;
    box-shadow: 0 14px 30px -26px rgba(15, 32, 23, 0.55);
}

.trust_ticker__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(108, 175, 44, 0.14);
    color: var(--g2r-green-deep);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.trust_ticker__name {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--g2r-ink);
    white-space: nowrap;
}

.trust_ticker__item img {
    display: block;
    width: 136px;
    height: 46px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    filter: grayscale(1);
    opacity: 0.78;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.trust_ticker__item:hover img {
    filter: none;
    opacity: 1;
}

@keyframes trust-marquee {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(calc(var(--ticker-shift, 50%) * -1), 0, 0);
    }
}

@media screen and (max-width: 768px) {
    .trust_ticker {
        padding: 28px 0 32px;
    }

    .trust_ticker__title {
        margin-bottom: 20px;
        font-size: clamp(1.6rem, 6.5vw, 2rem);
    }

    .trust_ticker__title::before {
        margin-bottom: 12px;
    }

    .trust_ticker__item {
        height: 56px;
        padding: 0 16px;
        gap: 10px;
        border-radius: 12px;
    }

    .trust_ticker__mark {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .trust_ticker__name {
        font-size: 13px;
    }

    .trust_ticker__item img {
        width: 112px;
        height: 38px;
        max-width: none;
        max-height: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trust_ticker__track {
        animation: none !important;
    }

    .trust_ticker__viewport {
        overflow-x: auto;
    }
}