:root {
    --ink: #10283b;
    --paper: #f5f1ea;
    --cream: #ebe4d8;
    --terra: #b36d4a;
    --line: rgba(16, 40, 59, 0.2);
    --sans: "DM Sans", Arial, sans-serif;
    --serif: "Playfair Display", Georgia, serif;
    --mono: "DM Mono", monospace;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
}
.wrap {
    width: min(1180px, calc(100% - 48px));
    margin: auto;
}

.skip-link {
    position: absolute;
    left: 10px;
    top: -80px;
    background: #fff;
    color: #000;
    padding: 10px;
    z-index: 99;
}
.skip-link:focus {
    top: 10px;
}
.site-header {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(24px, calc((100vw - 1180px) / 2));
    background: var(--paper);
    position: relative;
    z-index: 4;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--serif);
    letter-spacing: 0.02em;
}
.brand strong,
.brand small {
    display: block;
    line-height: 1.05;
}
.brand strong {
    font-size: 17px;
}
.brand small {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.12em;
    margin-top: 4px;
}
.brand-mark {
    width: 37px;
    height: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.brand-mark i {
    display: block;
    border-top: 2px solid var(--ink);
    border-radius: 50%;
    height: 8px;
    transform: skewX(-20deg);
}
.main-nav {
    display: flex;
    gap: 30px;
}
.main-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 12px;
    position: relative;
}
.main-nav a:after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    border-bottom: 1px solid var(--ink);
    transition: 0.25s;
}
.main-nav a:hover:after,
.main-nav .is-active:after {
    width: 100%;
}
.menu-toggle {
    display: none;
}
.hero {
    height: min(720px, calc(100vh - 84px));
    min-height: 610px;
    position: relative;
    background: #203846;
    color: #fff;
    overflow: hidden;
}
.hero-slides,
.slide {
    height: 100%;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
    background-position: center;
    background-size: cover;
    display: grid;
    align-items: center;
}
.slide.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.slide-1 {
    background-image: url("imagenes/img_1.jpg");
}
.slide-2 {
    background-image: url("imagenes/img_2.jpg");
}
.slide-3 {
    background-image: url("imagenes/img_3.jpeg");
}
.slide-shade {
    position: absolute;
    inset: 0;
    /*background: linear-gradient(90deg, rgba(7, 23, 32, 0.82), rgba(7, 23, 32, 0.38) 57%, rgba(7, 23, 32, 0.16));*/
}
.hero-copy {
    position: relative;
    padding-bottom: 30px;
}
.eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    margin: 0 0 18px;
    font-weight: 500;
}
.eyebrow.light {
    color: #f9f5ed;
}
.hero h1,
.intro h2,
.section-heading h2,
.cta h2 {
    font: 600 clamp(48px, 6.3vw, 92px) / 0.98 var(--serif);
    letter-spacing: -0.04em;
    margin: 0;
}

h1 {
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.hero-text {
    width: min(465px, 90%);
    font-size: 18px;
    line-height: 1.4;
    margin: 24px 0 30px;
}
.button {
    display: inline-flex;
    align-items: center;
    gap: 26px;
    padding: 14px 19px;
    border: 1px solid currentColor;
    text-decoration: none;
    font-size: 14px;
    transition: 0.25s;
    cursor: pointer;
    background: transparent;
    font-family: var(--sans);
}
.button span {
    font-size: 20px;
    line-height: 0;
}
.button-light {
    color: #fff;
}
.button-light:hover {
    background: #fff;
    color: var(--ink);
}
.button-dark {
    color: var(--ink);
}
.button-dark:hover {
    color: #fff;
    background: var(--ink);
}
.hero-bottom {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: end;
}
.funding {
    font-size: 12px;
    line-height: 1.3;
    margin: 0;
}
.slider-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}
.slider-button {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}
.slider-dots {
    display: flex;
    gap: 8px;
}
.dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    border: 1px solid #fff;
    background: transparent;
    padding: 0;
    cursor: pointer;
}
.dot.is-active {
    background: #fff;
}
.intro,
.section-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}
.intro {
    padding: 35px 0;
}
.intro h2,
.section-heading h2 {
    font-size: clamp(40px, 4.4vw, 66px);
}
.intro-text {
    font-size: 18px;
    max-width: 500px;
}
.intro-text p:first-child {
    font: 500 25px/1.25 var(--serif);
    margin-top: 0;
}
.text-link {
    display: inline-flex;
    gap: 15px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    padding: 10px 0;
    margin-top: 18px;
}
.tibecom {
    background: var(--cream);
    padding: 35px 0;
}
.section-heading {
    align-items: end;
    margin-bottom: 47px;
}
.section-heading > div > p:not(.eyebrow),
.section-heading > p {
    max-width: 460px;
    font-size: 17px;
    margin: 0;
}
.note {
    font: 12px/1.4 var(--mono) !important;
    color: #56636d;
    margin-top: 14px !important;
}
.collection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.collection-card {
    min-height: 405px;
    padding: 20px;
    position: relative;
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: end;
    background:
        linear-gradient(0deg, rgba(6, 24, 34, 0.78), rgba(6, 24, 34, 0) 65%),
        var(--card-image) center/cover;
    overflow: hidden;
    isolation: isolate;
}
.collection-card:before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--card-image) center/cover;
    z-index: -1;
    transition: transform 0.6s;
}
.collection-card:hover:before {
    transform: scale(1.08);
}
.card-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font: 11px var(--mono);
}
.collection-card h3 {
    font: 500 29px/0.98 var(--serif);
    margin: 0 0 9px;
}
.collection-card p {
    font-size: 13px;
    line-height: 1.3;
    max-width: 180px;
    margin: 0;
}
.card-arrow {
    position: absolute;
    right: 20px;
    bottom: 23px;
    font-size: 22px;
}
.types-panel {
    padding: 35px 0 10px;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 30px;
    align-items: start;
}
.types-panel h3 {
    font: 500 32px/1.16 var(--serif);
    max-width: 620px;
    margin: 0 0 25px;
    grid-column: 2;
}
.types-panel .button {
    grid-column: 2;
    width: max-content;
}
.demo-message {
    grid-column: 2;
    color: #70563f;
    margin: 0;
}
.partners {
    padding: 25px 0;
}
.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}
.partner-grid article {
    border: 0 solid var(--line);
    padding: 28px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: 0.25s;
}
/*
.partner-grid article:hover {
    background: var(--ink);
    color: #fff;
    transform: translateY(-4px);
}
*/
.partner-grid span {
    font: 10px var(--mono);
    letter-spacing: 0.1em;
    margin-bottom: auto;
}
.partner-grid h3 {
    font: 500 27px var(--serif);
    margin: 25px 0 0;
}
.cta {
    color: #fff;
    background:
        linear-gradient(90deg, rgba(9, 31, 45, 0.5), rgba(9, 31, 45, 0.5)),
        url("imagenes/bejar-vista-general.jpg") center/cover;
    padding: 10px 0;
}
.cta h2 {
    margin-bottom: 18px;
}
.cta .button {
    margin-top: 12px;
}
footer {
    background: var(--ink);
    color: #dbe2e2;
    padding: 20px 0;
    font-size: 12px;
}
footer .wrap {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
footer p {
    margin: 0;
}
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
@media (max-width: 800px) {
    .site-header {
        height: 72px;
    }
    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--paper);
        padding: 12px 24px 24px;
        display: none;
        flex-direction: column;
        gap: 17px;
        border-top: 1px solid var(--line);
    }
    .main-nav.open {
        display: flex;
    }
    .menu-toggle {
        display: grid;
        gap: 6px;
        background: none;
        border: 0;
        padding: 10px;
    }
    .menu-toggle span {
        height: 1px;
        width: 24px;
        background: var(--ink);
    }
    .hero {
        min-height: 600px;
        height: calc(100vh - 72px);
    }
    .hero h1 {
        font-size: 54px;
    }
    .hero-bottom {
        bottom: 15px;
    }
    .intro,
    .section-heading {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .intro {
        padding: 80px 0;
    }
    .tibecom {
        padding: 78px 0;
    }
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .collection-card {
        min-height: 320px;
    }
    .types-panel {
        display: block;
        padding-top: 60px;
    }
    .types-panel h3 {
        font-size: 28px;
    }
    .types-panel .button {
        margin-top: 10px;
    }
    .demo-message {
        margin-top: 15px;
    }
    .partners {
        padding: 30px 0;
    }
    .partner-grid {
        grid-template-columns: repeat(4, 1fr);
        margin-top: 20px;
    }
}
@media (max-width: 500px) {
    .wrap {
        width: calc(100% - 34px);
    }
    .hero h1 {
        font-size: 45px;
    }
    .hero-text {
        font-size: 16px;
    }
    .funding {
        font-size: 10px;
    }
    .slider-controls {
        gap: 6px;
    }
    .collection-grid,
    .partner-grid {
        grid-template-columns: 1fr;
    }
    .collection-card {
        min-height: 270px;
    }
    .section-heading h2,
    .intro h2 {
        font-size: 43px;
    }
    footer .wrap {
        display: block;
    }
    footer p + p {
        margin-top: 8px;
    }
}
/* Páginas interiores */
.page-hero {
    padding: 60px 0 50px;
    background:
        linear-gradient(110deg, rgba(11, 33, 48, 0.1), rgba(11, 33, 48, 0.1)),
        url("imagenes/05.jpg") center/cover;
    color: #fff;
}
.page-hero h1 {
    font: 600 clamp(48px, 6.2vw, 88px) / 0.98 var(--serif);
    letter-spacing: -0.04em;
    margin: 0;
}
.page-hero .wrap > p:not(.eyebrow):not(.funding) {
    max-width: 500px;
    font-size: 18px;
    margin: 25px 0 0;
}
.page-hero-light {
    background: var(--cream);
    color: var(--ink);
}
.tibecom-hero {
    background:
        linear-gradient(110deg, rgba(11, 33, 48, 0.1), rgba(11, 33, 48, 0.1)),
        url("imagenes/tibecom.jpg") center/cover;
}

.agrupa-hero {
    padding: 60px 0 50px;
    background:
        linear-gradient(110deg, rgba(11, 33, 48, 0.1), rgba(11, 33, 48, 0.1)),
        url("imagenes/agrupacion.jpg") center/cover;
    color: #fff;
}

.imple-hero {
    padding: 60px 0 50px;
    background:
        linear-gradient(110deg, rgba(11, 33, 48, 0.1), rgba(11, 33, 48, 0.1)),
        url("imagenes/11_bejar.jpg") center/cover;
    color: #fff;
}

.contacto-hero {
    padding: 125px 0 110px;
    background:
        linear-gradient(110deg, rgba(11, 33, 48, 0.1), rgba(11, 33, 48, 0.1)),
        url("imagenes/cascada.jpg") center/cover;
    color: #fff;
}

.lana100-hero {
    padding: 125px 0 110px;
    background:
        linear-gradient(110deg, rgba(11, 33, 48, 0.1), rgba(11, 33, 48, 0.1)),
        url("imagenes/fabrica_color.jpg") center/cover;
    color: #fff;
}

.lana75-hero {
    padding: 125px 0 110px;
    background:
        linear-gradient(110deg, rgba(11, 33, 48, 0.1), rgba(11, 33, 48, 0.1)),
        url("imagenes/lana75.jpg") center/cover;
    color: #fff;
}

.lana50-hero {
    padding: 125px 0 110px;
    background:
        linear-gradient(110deg, rgba(11, 33, 48, 0.1), rgba(11, 33, 48, 0.1)),
        url("imagenes/13_bejar.jpg") center/cover;
    color: #fff;
}

.lana60-hero {
    padding: 125px 0 110px;
    background:
        linear-gradient(110deg, rgba(11, 33, 48, 0.1), rgba(11, 33, 48, 0.1)),
        url("imagenes/lana4.jpg") center/cover;
    color: #fff;
}

.funding-dark {
    margin-top: 42px;
    color: #fff;
}
.content-page {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 95px;
    padding: 40px 0;
}
.content-aside {
    font-size: 15px;
    line-height: 1.5;
    border-top: 1px solid var(--line);
    padding-top: 1px;
}
.content-body {
    max-width: 720px;
}
.content-body h2,
.content-body h3,
.contact-page h2 {
    font-family: var(--serif);
    font-weight: 500;
}
.content-body h2,
.contact-page h2 {
    font-size: 54px;
    line-height: 1;
    margin: 0 0 24px;
}
.content-body h3 {
    font-size: 31px;
    margin-top: 52px;
}
.content-body p {
    font-size: 17px;
}
.content-body .lead {
    font: 500 26px/1.25 var(--serif);
}
.placeholder-image,
.company-image {
    display: grid;
    place-items: center;
    background: var(--cream);
    border: 1px dashed rgba(16, 40, 59, 0.35);
    min-height: 280px;
    margin: 40px 0;
    color: #586976;
    font: 12px var(--mono);
    letter-spacing: 0.08em;
}
.cards-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 20px;
    padding: 90px 0 120px;
}
.company-card {
    border-bottom: 1px solid var(--line);
    padding-bottom: 25px;
}
.company-card .company-image {
    height: 230px;
    min-height: 0;
    margin: 0 0 25px;
}
.company-card h2 {
    font: 500 35px var(--serif);
    margin: 0 0 7px;
}
.company-card p:not(.eyebrow) {
    font-size: 14px;
}
.company-card .text-link {
    margin-top: 5px;
}
.composition-list {
    max-width: none;
}
.composition-list > a {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    border-top: 1px solid var(--line);
    padding: 25px 0;
    transition: 0.2s;
}
.composition-list > a:last-of-type {
    border-bottom: 1px solid var(--line);
}
.composition-list > a:hover {
    padding-left: 12px;
    background: rgba(255, 255, 255, 0.3);
}
.composition-list span {
    font: 11px var(--mono);
}
.composition-list h2 {
    font-size: 31px;
    margin: 0;
}
.composition-list b {
    font-size: 22px;
    font-weight: 400;
}
.contact-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    padding: 100px 0 120px;
}
.contact-page a {
    color: var(--ink);
}
.contact-form {
    display: grid;
    gap: 18px;
}
.contact-form label {
    font-size: 13px;
    display: grid;
    gap: 7px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: transparent;
    padding: 13px;
    font: 15px var(--sans);
    color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #c3a98f;
    outline-offset: 1px;
}
.contact-form .button {
    justify-self: start;
}
@media (max-width: 800px) {
    .content-page,
    .contact-page {
        grid-template-columns: 1fr;
        gap: 45px;
        padding: 70px 0;
    }
    .cards-page {
        grid-template-columns: repeat(2, 1fr);
        padding: 65px 0;
    }
    .page-hero {
        padding: 85px 0;
    }
    .content-body h2,
    .contact-page h2 {
        font-size: 44px;
    }
}
@media (max-width: 500px) {
    .cards-page {
        grid-template-columns: 1fr;
    }
    .composition-list > a {
        grid-template-columns: 28px 1fr 25px;
    }
    .composition-list h2 {
        font-size: 25px;
    }
}
/* Logotipo sobre la imagen de la sección final */
.cta-content {
    position: relative;
    min-height: 120px;
}
.cta-logo {
    position: absolute;
    top: auto;
    right: 0;
    width: min(380px, 100vw);
    height: auto;
    padding: 1px 8px 1px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.cta-copy {
    max-width: 620px;
}
@media (max-width: 800px) {
    .cta-content {
        min-height: 330px;
        padding-top: 115px;
    }
    .cta-logo {
        width: 310px;
        top: 100;
        right: 0;
    }
}
@media (max-width: 500px) {
    .cta-content {
        padding-top: 105px;
    }
    .cta-logo {
        width: 185px;
    }
}
/* Vídeo del proyecto TIBECOM */
.project-video {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 70px;
    align-items: center;
    padding: 100px 0 15px;
}
.project-video h2 {
    font: 500 46px/1.03 var(--serif);
    letter-spacing: -0.03em;
    margin: 0 0 22px;
}
.project-video > div > p:not(.eyebrow):not(.note) {
    max-width: 390px;
    font-size: 16px;
}
.video-frame video {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    background: #10283b;
    object-fit: cover;
}
.video-frame .note {
    margin: 10px 0 0;
}
.video-frame code {
    font-family: var(--mono);
}
@media (max-width: 800px) {
    .project-video {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 70px 0 0;
    }
    .project-video h2 {
        font-size: 40px;
    }
}

.cards-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 20px;
}

.company-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.company-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 500px) {
    .company-card .company-image {
        height: 150px;
        padding: 12px;
        margin-bottom: 16px;
    }

    .company-card .company-image img {
        width: 75%;
        height: 100%;
        margin: auto;
        object-fit: contain;
    }
}

@media (max-width: 800px) {
    .cards-page {
        grid-template-columns: 1fr;
    }

    .company-card {
        min-width: 0;
    }

    .company-card .company-image {
        height: 150px;
        padding: 12px;
        margin-bottom: 16px;
    }

    .company-card .company-image img {
        width: 75%;
        height: 100%;
        margin: auto;
        object-fit: contain;
    }
}
/* Slider de Lana 100%: conserva proporción en cualquier pantalla */
.lana100-slider {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 720 / 520;
}

.lana100-slider .slide {
    background-image: none;
}

.lana100-slider .slide-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Controles del slider de Lana 100% bajo la fotografía */
.lana100-slider {
    overflow: visible;
    margin-bottom: 70px;
}

.lana100-slider .hero-bottom {
    top: calc(100% + 18px);
    right: auto;
    bottom: auto;
    left: 50%;
    width: auto;
    margin: 0;
    transform: translateX(-50%);
    justify-content: center;
}

.lana100-slider .slider-controls {
    justify-content: center;
}

.lana100-slider .slider-button {
    color: var(--ink);
}

.lana100-slider .dot {
    border-color: var(--ink);
}

.lana100-slider .dot.is-active {
    background: var(--ink);
}

.lana100-slider .dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
}
