@font-face {
    font-family: "Teko";
    src: url("/imagenes/img-landings-2026/financiacion-marina-mercado-pago/fonts/Teko-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --marina-blue: #0183ff;
    --marina-dark: #434343;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--marina-dark);
    font-family: "Roboto", Arial, sans-serif;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.marina-hero {
    position: relative;
    display: block;
    width: 100%;
}

.marina-hero > img {
    display: block;
    width: 100%;
}

.marina-hero::before,
.marina-hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    display: block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.marina-hero::before {
    top: 3.4%;
    left: 13.55%;
    width: 9.95%;
    aspect-ratio: 191 / 66;
    background-image: url("/imagenes/img-landings-2026/financiacion-marina-mercado-pago/yamaha-footer.png");
    opacity: 0;
    animation: marina-logo-in .65s ease-out .35s forwards;
}

.marina-hero::after {
    top: 5.1%;
    left: 81.15%;
    width: 5.2%;
    aspect-ratio: 100 / 44;
    background-image: url("/imagenes/img-landings-2024/santander2/logo_5_garantia.png");
    opacity: 0;
    animation: marina-logo-in .65s ease-out 1.05s forwards;
}

@keyframes marina-logo-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.marina-motion-ready .marina-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease-out var(--marina-reveal-delay, 0ms), transform .7s ease-out var(--marina-reveal-delay, 0ms);
}

.marina-motion-ready .marina-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes marina-text-in {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Funciona aun cuando Symfony conserva una versión anterior del Twig en caché. */
@supports (animation-timeline: view()) {
    body:not(.marina-motion-ready) .marina-intro h2,
    body:not(.marina-motion-ready) .marina-intro p,
    body:not(.marina-motion-ready) .marina-product__scene h3,
    body:not(.marina-motion-ready) .marina-product__advance,
    body:not(.marina-motion-ready) .marina-product__installments,
    body:not(.marina-motion-ready) .marina-product__price,
    body:not(.marina-motion-ready) .marina-form h2,
    body:not(.marina-motion-ready) .marina-brands h2 {
        opacity: 0;
        animation-name: marina-text-in;
        animation-duration: 1s;
        animation-timing-function: ease-out;
        animation-fill-mode: both;
        animation-timeline: view();
        animation-range: entry 8% cover 30%;
    }

    body:not(.marina-motion-ready) .marina-intro p,
    body:not(.marina-motion-ready) .marina-product__installments {
        animation-range: entry 14% cover 36%;
    }

    body:not(.marina-motion-ready) .marina-product__price {
        animation-range: entry 20% cover 42%;
    }
}

.marina-content {
    overflow: hidden;
    background:
        linear-gradient(180deg, #fff 0, rgba(255, 255, 255, .86) 15%, rgba(255, 255, 255, .2) 38%),
        url("/imagenes/img-landings-2026/financiacion-marina-mercado-pago/water-bg.jpg") center top / cover no-repeat;
}

.marina-intro {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(62px, 4.4vw, 84px) 0 clamp(78px, 5vw, 96px);
    text-align: center;
}

.marina-intro h2,
.marina-form h2,
.marina-brands h2 {
    margin: 0;
    font-family: "Teko", Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.marina-intro h2 {
    color: var(--marina-blue);
    font-size: clamp(37px, 3.95vw, 75px);
    line-height: .9;
}

.marina-intro p {
    margin: clamp(30px, 2.2vw, 42px) auto 0;
    font-size: clamp(16px, 1vw, 19px);
    line-height: 1.8;
}

.marina-intro strong { font-weight: 900; text-transform: uppercase; }

.marina-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
}

.marina-product { min-width: 0; text-align: center; }

.marina-product__scene {
    position: relative;
    width: 100%;
    aspect-ratio: 468 / 326;
    overflow: hidden;
}

.marina-product__scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .38));
}

.marina-product__scene img { width: 100%; height: 100%; object-fit: cover; }
.marina-product:nth-child(1) .marina-product__scene img { object-position: 58% 64%; }
.marina-product:nth-child(2) .marina-product__scene img { object-position: 50% 53%; }
.marina-product:nth-child(3) .marina-product__scene img { object-position: 50% 46%; }

.marina-product__scene h3 {
    position: absolute;
    z-index: 1;
    top: 46%;
    left: 0;
    width: 100%;
    margin: 0;
    color: #fff;
    font: 700 clamp(44px, 3.4vw, 66px)/.85 "Teko", Impact, sans-serif;
    text-shadow: 0 3px 4px rgba(0, 0, 0, .45);
}

.marina-product__motor {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: clamp(255px, 20.8vw, 400px);
    margin-top: clamp(-92px, -4.8vw, -66px);
    position: relative;
    z-index: 2;
}

.marina-product__motor img { display: block; width: auto; max-width: 78%; height: 100%; object-fit: contain; }
.marina-product__motor--15 img { height: 102%; }
.marina-product__motor--115 img { height: 100%; }

.marina-product p { margin: 0; text-transform: uppercase; }
.marina-product__advance { margin-top: clamp(10px, 2.6vw, 50px) !important; color: var(--marina-blue); font: 700 clamp(22px, 1.43vw, 28px)/1 "Teko", Impact, sans-serif; }
.marina-product__installments { margin-top: clamp(10px, .8vw, 16px) !important; font-size: clamp(15px, 1vw, 19px); font-weight: 900; }
.marina-product__price { margin-top: 3px !important; color: var(--marina-blue); font: 700 clamp(44px, 2.9vw, 56px)/.85 "Teko", Impact, sans-serif; }

.marina-form {
    width: min(1440px, calc(100% - 48px));
    margin: clamp(84px, 7vw, 134px) auto 0;
}

.marina-form h2 { color: var(--marina-blue); font-size: clamp(31px, 2.1vw, 40px); line-height: 1; text-align: center; }
.marina-form__form { margin-top: clamp(46px, 3.6vw, 70px); }
.marina-form__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.25vw, 24px) 13px; }

.marina-control,
.marina-form__grid input,
.marina-form__grid select {
    width: 100%;
    height: clamp(40px, 2.25vw, 43px);
    padding: 0 13px;
    border: 1px solid var(--marina-dark);
    border-radius: 4px;
    background: #fff;
    color: var(--marina-dark);
    font: clamp(15px, .88vw, 17px) "Roboto", Arial, sans-serif;
}

.marina-form__grid select {
    padding-right: 38px;
    -webkit-appearance: none;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%23434343' stroke-width='2'/%3E%3C/svg%3E") right 14px center / 14px 9px no-repeat;
}

.marina-form ul { margin: 5px 0 0; padding: 0; color: #c00; list-style: none; }
.marina-form__required { display: block; margin: 14px 8px 0; color: #fff; font-size: 13px; }
.marina-form__validation { display: flex; align-items: center; justify-content: center; gap: clamp(26px, 2.1vw, 40px); margin-top: clamp(28px, 2.5vw, 47px); }
.marina-form__terms { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; row-gap: 4px; font-size: clamp(16px, 1vw, 19px); }
.marina-form__terms > .checkbox { display: flex; align-items: center; min-height: 0; margin: 0; padding: 0; }
.marina-form__terms input { position: static; display: block; width: clamp(17px, 1vw, 19px); height: clamp(17px, 1vw, 19px); margin: 0; accent-color: #4285f4; cursor: pointer; }
.marina-form__terms label { margin: 0; line-height: 1.2; cursor: pointer; }
.marina-form__terms label a { color: inherit; text-decoration: underline; }
.marina-form__terms ul { grid-column: 1 / -1; }
.marina-form__captcha { min-height: 76px; }
.marina-form__submit { margin: clamp(58px, 4.2vw, 80px) 0 0; text-align: center; }
.marina-form__submit button { display: inline-flex; align-items: center; justify-content: center; width: clamp(290px, 18vw, 346px); height: clamp(46px, 2.6vw, 50px); padding: 0 32px; border: 0; border-radius: 3px; background: var(--marina-blue); color: #fff; font: 700 clamp(18px, 1.05vw, 20px)/1 "Teko", Impact, sans-serif; text-align: center; text-transform: uppercase; cursor: pointer; }
.marina-form__submit button span { display: none; }
.marina-form__submit button::before { content: ""; position: relative; top: -1px; order: 1; flex: 0 0 auto; width: 20px; height: 2px; margin-left: 18px; border-radius: 1px; background: currentColor; }
.marina-form__submit button::after { content: ""; position: relative; top: -1px; order: 2; flex: 0 0 auto; width: 8px; height: 8px; margin-left: -10px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.marina-native-submit { display: none !important; }
.marina-form__success { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 60px auto; padding: 32px; border-radius: 5px; background: rgba(255, 255, 255, .9); color: #145c19; text-align: center; font-size: 20px; }

.marina-modal-open { overflow: hidden; }

.marina-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.marina-modal.is-open { display: flex; }

.marina-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
}

.marina-modal__panel {
    position: relative;
    z-index: 1;
    width: min(820px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .35);
}

.marina-modal__panel h2 {
    margin: 0;
    padding: 26px 66px 20px 30px;
    border-bottom: 1px solid #dedede;
    color: var(--marina-blue);
    font: 700 36px/1 "Teko", Impact, sans-serif;
    text-transform: uppercase;
}

.marina-modal__close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 18px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--marina-dark);
    font: 300 36px/40px Arial, sans-serif;
    cursor: pointer;
}

.marina-modal__body {
    max-height: calc(100vh - 155px);
    overflow-y: auto;
    padding: 26px 30px 30px;
}

.marina-modal__body p {
    margin: 0;
    color: var(--marina-dark);
    font-size: 14px;
    line-height: 1.65;
}

.marina-modal__body a {
    color: #006fd6;
    text-decoration: underline;
}

.marina-brands { padding: clamp(76px, 5.8vw, 112px) 20px clamp(70px, 4vw, 76px); text-align: center; }
.marina-brands h2 { font-size: clamp(28px, 2.25vw, 43px); line-height: 1; }
.marina-brands > div { display: flex; align-items: center; justify-content: center; gap: clamp(46px, 3.4vw, 65px); margin-top: clamp(26px, 2.3vw, 45px); }
.marina-brands__yamaha { width: clamp(185px, 11.8vw, 228px); height: auto; }
.marina-brands__mp { width: clamp(225px, 14.7vw, 282px); height: clamp(64px, 4.2vw, 80px); object-fit: contain; }

.marina-footer { min-height: 154px; background: #2b2b2b; color: #fff; }
.marina-footer__inner { display: flex; align-items: center; justify-content: space-between; width: min(1400px, calc(100% - 48px)); min-height: 154px; margin: 0 auto; }
.marina-footer__logo { display: block; width: 191px; height: 66px; }
.marina-footer__social { text-align: right; }
.marina-footer__social img { width: 223px; height: 35px; object-fit: contain; }
.marina-footer__social p { margin: 22px 0 0; font: 500 12px "Roboto", Arial, sans-serif; text-transform: uppercase; }

@media (max-width: 991px) {
    .marina-intro { padding: 50px 0 62px; }
    .marina-intro p { margin-top: 24px; font-size: 17px; line-height: 1.6; }
    .marina-products { grid-template-columns: 1fr; width: min(480px, calc(100% - 32px)); gap: 58px; }
    .marina-product__motor { height: 275px; }
    .marina-form { width: min(700px, calc(100% - 32px)); margin-top: 72px; }
    .marina-form__grid { grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
    .marina-form__validation { flex-direction: column; }
}

@media (max-width: 600px) {
    .marina-hero > img { height: auto; }
    .marina-hero::before { top: 12px; left: 16px; width: 112px; }
    .marina-hero::after { top: 14px; right: 16px; left: auto; width: 62px; }
    .marina-intro { width: calc(100% - 32px); padding: 42px 0 50px; }
    .marina-intro h2 { font-size: 34px; }
    .marina-intro p { font-size: 15px; line-height: 1.5; }
    .marina-product__scene { height: 220px; }
    .marina-product__scene h3 { font-size: 37px; }
    .marina-product__motor { height: 240px; margin-top: -56px; }
    .marina-product__advance { font-size: 21px; }
    .marina-product__installments { font-size: 14px; }
    .marina-product__price { font-size: 40px; }
    .marina-form h2 { font-size: 29px; }
    .marina-form__form { margin-top: 34px; }
    .marina-form__grid { grid-template-columns: 1fr; gap: 12px; }
    .marina-control, .marina-form__grid input, .marina-form__grid select { font-size: 16px; }
    .marina-form__terms { width: min(310px, 100%); margin: 0 auto; font-size: 15px; text-align: left; }
    .marina-form__submit { margin-top: 42px; }
    .marina-form__submit button { width: 100%; }
    .marina-modal { padding: 14px; }
    .marina-modal__panel { max-height: calc(100vh - 28px); }
    .marina-modal__panel h2 { padding: 22px 58px 16px 20px; font-size: 30px; }
    .marina-modal__close { top: 9px; right: 10px; }
    .marina-modal__body { max-height: calc(100vh - 110px); padding: 20px; }
    .marina-modal__body p { font-size: 12px; line-height: 1.55; }
    .marina-brands { padding: 62px 20px 58px; }
    .marina-brands > div { flex-direction: column; gap: 22px; }
    .marina-brands__yamaha { width: min(165px, 60vw); }
    .marina-brands__mp { width: min(190px, 65vw); height: auto; }
    .marina-footer__inner { flex-direction: column; gap: 24px; padding: 30px 0; }
    .marina-footer__social { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marina-hero::before,
    .marina-hero::after { opacity: 1; transform: none; animation: none; }
    .marina-motion-ready .marina-reveal,
    .marina-motion-ready .marina-reveal.is-visible { opacity: 1; transform: none; transition: none; }
    body:not(.marina-motion-ready) .marina-intro h2,
    body:not(.marina-motion-ready) .marina-intro p,
    body:not(.marina-motion-ready) .marina-product__scene h3,
    body:not(.marina-motion-ready) .marina-product__advance,
    body:not(.marina-motion-ready) .marina-product__installments,
    body:not(.marina-motion-ready) .marina-product__price,
    body:not(.marina-motion-ready) .marina-form h2,
    body:not(.marina-motion-ready) .marina-brands h2 { opacity: 1; transform: none; animation: none; }
}
