/*
  Minimal, self-contained CSS for refactored page
  - Mobile-first
  - No external dependencies
*/


/* Local fonts: Open Sans (woff2) */

@font-face {
    font-family: 'AvantGardeBookBT';
    font-style: normal;
    font-weight: normal;
    src: local('Avant Garde Book BT'), url('../fonts/AVGARDN_2.woff') format('woff');
}

@font-face {
    font-family: 'AvantGardeDemiBT';
    font-style: normal;
    font-weight: normal;
    src: local('Avant Garde Demi BT'), url('../fonts/AVGARDD_2.woff') format('woff');
}

@font-face {
    font-family: 'AvantGardeDemiObliqueBT';
    font-style: normal;
    font-weight: normal;
    src: local('Avant Garde Demi Oblique BT'), url('../fonts/AVGARDDO_2.woff') format('woff');
}


/* Open Sans loaded via Google Fonts (no local @font-face) */

:root {
    --bg: #0b0b0b;
    --bg-2: #121212;
    --text: #f5f7fa;
    --muted: #c6c7c9;
    --brand: #72c02c;
    --maxw: 1200px;
    --nav-h: 0px;
    /* altura navbar */
    --panel-h: 100vh;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: "AvantGardeBookBT", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}


/* Typography */


/* Match original theme behavior: headings use Open Sans */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'AvantGardeDemiBT', Arial, sans-serif
}


/* Utility for specific elements */

.title {
    font-family: 'AvantGardeDemiBT', Arial, sans-serif !important
}

h1.title {
    font-size: 28px;
    line-height: 35px;
    font-weight: 200;
    padding-bottom: 20px;
    position: relative;
}

h1.title:after {
    content: " ";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 70px;
    height: 1px;
    margin-left: -35px;
    background: #72c02c;
}

.container {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 16px
}


/* Header / Nav */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: saturate(120%) blur(6px)
}

.nav {
    width: 100%
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 8px 16px
}

.nav__brand {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    color: #fff;
    text-decoration: none
}


/* Brand typography per spec */

.navbar-brand {
    font-size: 31px;
    font-weight: 100;
    line-height: 15px;
    padding: 17px 15px 13px;
    color: #fff !important;
    letter-spacing: .5px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.navbar-brand span {
    color: var(--brand) !important;
    letter-spacing: .5px
}

.navbar-brand sup {
    position: relative;
    top: -.4em;
    font-size: .6em;
    opacity: .85
}

.nav__toggle {
    appearance: none;
    border: 0;
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer
}

.nav__toggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px
}

.nav__toggle-bar {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 1px
}

.nav__menu {
    position: fixed;
    inset-block-start: 64px;
    inset-inline: 0;
    background: var(--bg-2);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease
}

.nav__menu.is-open {
    max-height: 50vh
}

.nav__link {
    padding: 10px;
    border-radius: 6px
}

.nav__link:focus-visible,
.nav__link:hover {
    background: rgba(255, 255, 255, .06)
}

@media (max-width: 768px) {
    #details_img {
        display: none;
    }
}

@media (min-width: 768px) {
    .nav__toggle {
        display: none
    }
    .nav__menu {
        position: static;
        inset: auto;
        flex-direction: row;
        align-items: center;
        background: transparent;
        max-height: none;
        padding: 0
    }
}


/* Hero / Swiper */

.hero {
    position: relative
}


/* Fallback 100vh and dynamic 100dvh when available */

.hero__slider {
    width: 100%;
    height: calc(100vh - var(--nav-h))
}

@supports (height: 100dvh) {
    .hero__slider {
        height: calc(100dvh - var(--nav-h))
    }
}

.hero__static {
    display: none
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.swiper-button-prev,
.swiper-button-next {
    color: #fff
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: .6
}

.swiper-pagination-bullet-active {
    background: var(--brand);
    opacity: 1
}


/* Hero captions overlay */

.swiper-slide {
    position: relative
}

.hero__caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 16px;
    color: #fff;
    pointer-events: none
}

.hero__title {
    margin: 0 0 8px;
    font-size: clamp(24px, 4.5vw, 48px);
    line-height: 1.1;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .45)
}

.hero__subtitle {
    margin: 0 0 18px;
    color: #e7eaee;
    opacity: .95;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35)
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center
}

.hero__actions .btn {
    pointer-events: auto
}


/* Buttons */

.btn {
    font-family: "AvantGardeBookBT", Helvetica, Arial, sans-serif;
    display: inline-block;
    padding: 10px 18px;
    border-radius: 24px;
    font-weight: 600;
    letter-spacing: .2px;
    border: 2px solid transparent;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
    cursor: pointer;
}

.btn--light {
    background: #fff;
    color: #111
}

.btn--light:hover {
    background: #e9e9e9
}

.btn--outline {
    background: transparent;
    color: #fff;
    border-color: #fff
}

.btn--outline:hover {
    background: #ffffff20
}

.btn.active {
    background-color: #72c02c;
    color: #fff;
}


/* Portrait behavior: fit width, keep ratio (no crop)
   Keep container height via aspect-ratio to avoid collapse/black flash */

@media (orientation: portrait) {
    .hero__slider {
        height: auto !important
    }
    .hero__slider .swiper-wrapper {
        height: auto !important
    }
    .hero__slider .swiper-slide {
        height: auto !important;
        position: relative
    }
    .hero__media {
        display: block;
        width: 100vw;
        aspect-ratio: var(--hero-ratio, 16/9)
    }
    .hero__img {
        width: 100%;
        height: 100%;
        object-fit: contain
    }
}


/* Disable slider and show static image under 1074px */

@media (max-width: 1073.98px) {
    /* Hide Swiper completely on small screens */
    .hero .swiper {
        display: none !important
    }
    .hero__slider {
        display: none !important
    }
    .hero .swiper-button-prev,
    .hero .swiper-button-next,
    .hero .swiper-pagination {
        display: none !important
    }
    .hero__static {
        display: block;
        margin-top: var(--nav-h)
    }
    .hero__static .hero__img {
        width: 100%;
        height: auto;
        object-fit: contain
    }
}


/* Sections */

.section {
    padding: 56px 0;
    background: var(--bg)
}

.section+.section {
    background: var(--bg-2)
}

.section h2 {
    margin: 0 0 8px;
    font-size: clamp(22px, 2.8vw, 32px)
}

.section p {
    margin: 0;
    color: var(--muted)
}


/* Parallax (lightweight) */

.parallax-panel {
    position: relative;
    overflow: hidden;
    /* altura fluida según contenido */
    min-height: 50vh;
    /* opcional */
    display: flex;
    /* activa flex */
    align-items: center;
    /* centra vertical */
    justify-content: center;
    /* centra horizontal */
}

.parallax-bg {
    min-height: 100vh;
    position: absolute;
    inset: 0;
    /* igual de grande que .panel */
    will-change: transform;
    transform: translate3d(0, 0, 0) scale(1.1);
    /* escala para evitar ver bordes */
}

.parallax-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    color: white;
    text-shadow: 0 2px 16px #000a;
    font-size: 28px;
    line-height: 44px;
    display: block;
    margin: 0 auto;
    max-width: 60vw;
    text-transform: uppercase;
    text-align: center;
    font-family: 'Open Sans', Arial, sans-serif
}

.parallax-content small {
    font-size: 14px;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    /* negro 40% transparente */
    z-index: 1;
}

@media (max-width: 728px) {
    .parallax-content {
        font-size: 18px;
        line-height: 36px;
        max-width: 80vw;
    }
    .parallax-content small {
        font-size: 12px;
    }
}


/* accesibilidad: respeta “reducir movimiento” */

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


/* Footer */

.site-footer {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: #0a0a0a
}

.site-footer small {
    color: #9aa0a6
}


/* Utilities */

.text-center {
    text-align: center
}

.text-left {
    text-align: left
}

.bg-white {
    background-color: #fff;
    color: #0f0f0f
}


/* Grid utilities (desktop → N cols, <768px → 1 col) */

.grid-2,
.grid-3,
.grid-4,
.grid-5 {
    display: grid;
    gap: 16px
}

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

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

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

.grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr))
}

@media (max-width: 767.98px) {
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: 1fr
    }
}


/* Gap utilities for grid/flex containers */

.gap-0 {
    gap: 0
}

.gap-8 {
    gap: 8px
}

.gap-24 {
    gap: 24px
}


/* Section content links */

section p a {
    color: var(--brand)
}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .swiper-wrapper {
        transition: none !important
    }
    .parallax__img {
        transition: none !important
    }
}


/* Page-specific tweaks */

#about {
    color: #000 !important
}

#about h2.heading-sm {
    font-size: 40px;
    color: #4a8a13;
    font-weight: 200;
}

#about p {
    font-size: 14px;
    color: #000 !important;
    margin-bottom: 10px
}

.mb-10 {
    margin-bottom: 10px;
}


/* Testimonials */

.testimonials {
    max-width: 900px;
    margin: 32px auto 0;
}

.testimonials-swiper {
    padding: 24px 0 8px;
}

.testimonial {
    background: #151515;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .04);
}

.testimonial blockquote {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

.testimonial__name {
    display: block;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.testimonial__role {
    display: block;
    font-size: 13px;
    color: #9aa0a6;
}


/* Ajustes de paginación solo para este carrusel */

.testimonials-pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: .4;
}

.testimonials-pagination .swiper-pagination-bullet-active {
    background: var(--brand);
    opacity: 1;
}

.testimonials-pagination {
    bottom: 0px !important;
}

@media (min-width: 768px) {
    .testimonial blockquote {
        font-size: 16px;
    }
}


/* Partners */

.partners {
    align-items: center;
    justify-items: center;
    row-gap: 32px;
    margin-top: 32px;
}

.partner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner__logo {
    max-height: 80px;
    /* ajusta según tamaño de tus SVG */
    width: auto;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.partner__logo:hover {
    opacity: 1;
    transform: scale(1.03);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    border-top: 1px solid #333;
}

.cookie-banner p {
    margin: 0;
    color: #ccc;
    font-size: 14px;
}

.cookie-banner a {
    color: var(--brand);
    text-decoration: underline;
}

.cookie-banner button {
    background: var(--brand);
    border: none;
    color: #000;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.cookie-banner.hidden {
    display: none;
}