@charset "UTF-8";

:root {
    --ink: #142c46;
    --blue: #06469f;
    --cyan: #16b7e6;
    --muted: #536779;
    --line: #dbe6ee
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px
}

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65
}

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

button,
input,
textarea {
    font: inherit
}

button,
a,
input,
textarea {
    -webkit-tap-highlight-color: transparent
}

:focus-visible {
    outline: 3px solid #08a1ce;
    outline-offset: 5px
}

.wrap {
    width: min(1200px, 88%);
    margin-inline: auto
}

header {
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1320px, 92%);
    margin: auto;
    gap: 24px;
    background: #fff
}

.logo {
    width: 158px;
    height: 75px;
    object-fit: contain
}

nav {
    display: flex;
    align-items: center;
    gap: 35px;
    font-size: 14px
}

nav>a:hover,
.text-link:hover {
    color: #007da9
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    background: var(--blue);
    color: white;
    padding: 17px 25px;
    border: 0;
    border-radius: 3px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s, transform .2s
}

.button:hover {
    background: #003375;
    transform: translateY(-2px)
}

.button.small {
    padding: 12px 19px
}

.menu {
    display: none
}

.hero {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    align-items: center;
    gap: 6%;
    padding: 45px 0 75px
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--blue);
    margin: 0 0 28px
}

.eyebrow>span {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--cyan);
    margin-right: 9px
}

h1 {
    font-size: clamp(36px, 4.2vw, 61px);
    line-height: 1.12;
    letter-spacing: -2.7px;
    font-weight: 500;
    margin: 0 0 25px
}

em {
    font-style: normal;
    color: var(--blue)
}

.lead {
    font-size: 17px;
    color: var(--muted);
    max-width: 420px;
    margin-bottom: 33px
}

.text-link {
    display: block;
    margin-top: 25px;
    font-size: 12px
}

.blueprint {
    position: relative;
    overflow: hidden;
    border-radius: 4px
    
}

.blueprint img{
    
    width: 100%;
}

.blueprint>svg {
    display: block;
    width: 100%;
    height: auto
}

.figure-label {
    position: absolute;
    left: 7%;
    bottom: 6%;
    color: #fff
}

.figure-label span {
    display: block;
    font-size: 9px;
    letter-spacing: 2px;
    opacity: .8
}

.figure-label strong {
    font-weight: 400;
    font-size: 19px;
    line-height: 1.4;
    display: block;
    margin-top: 7px
}

.stripe {
    border-block: 1px solid var(--line);
    background: #f8fbfd
}

.stripe .wrap {
    display: flex;
    justify-content: space-between;
    padding: 21px 0;
    gap: 25px;
    font-size: 13px;
    color: #37516c
}

.stripe span:before {
    content: '+';
    color: #008ab7;
    margin-right: 15px
}

.about {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding-block: 100px;
    gap: 30px
}

h2 {
    font-weight: 500;
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.2;
    letter-spacing: -1.4px;
    margin: 0 0 24px
}

.about p:not(.eyebrow) {
    max-width: 670px;
    color: var(--muted);
    font-size: 16px
}

.focus {
    background: #f3f8fb;
    padding: 85px 0 95px
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px
}

.section-head>p {
    color: var(--muted);
    font-size: 14px
}

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

.cards article {
    background: white;
    padding: 28px 30px 35px;
    border: 1px solid var(--line);
    border-radius: 4px
}

.cards article .article-img {
    width: 100%;
}

.number {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #597386
}

.number span {
    color: var(--blue);
    font-size: 20px
}

.cards svg {
    width: 58px;
    height: 58px;
    stroke: var(--blue);
    fill: none;
    stroke-width: 1.5;
    margin: 30px 0 20px
}

.cards h3 {
    font-size: 23px;
    font-weight: 500;
    margin: 0 0 13px
}

.cards p {
    font-size: 14px;
    color: var(--muted);
    margin: 0
}

.contact {
    display: grid;
    grid-template-columns: 1fr 1.12fr;
    gap: 9%;
    padding-block: 100px
}

.contact>div>p:not(.eyebrow) {
    max-width: 360px;
    color: var(--muted)
}

.contact-note {
    border-left: 3px solid var(--cyan);
    padding-left: 17px;
    margin-top: 45px;
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--muted)
}

.contact-note strong {
    display: block;
    font-size: 15px;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--ink);
    margin-top: 8px
}

form {
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 32px
}

form h3 {
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 5px
}

.form-note {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 24px
}

.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px
}

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 17px
}

label span {
    color: var(--muted);
    font-weight: 400
}

input,
textarea {
    display: block;
    width: 100%;
    border: 1px solid #cddce7;
    border-radius: 3px;
    background: #fbfdff;
    color: var(--ink);
    padding: 12px;
    margin-top: 7px;
    min-width: 0;
    font-size: 14px
}

textarea {
    resize: vertical
}

form .button {
    width: 100%;
    text-align: left
}

#form-status {
    font-size: 13px;
    color: var(--blue);
    margin-bottom: 0
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    border-top: 1px solid var(--line);
    padding-block: 24px
}

footer .logo {
    width: 115px;
    height: 60px
}

footer p,
footer>a:last-child {
    font-size: 10px;
    color: var(--muted)
}

.skip {
    position: absolute;
    left: 12px;
    top: -100px;
    background: white;
    padding: 12px;
    z-index: 20
}

.skip:focus {
    top: 10px
}

@media(max-width:900px) {
    nav {
        gap: 19px
    }

    nav .small {
        gap: 10px
    }

    .hero {
        gap: 5%
    }

    h1 {
        letter-spacing: -1.5px
    }

    .contact {
        gap: 5%
    }

    form {
        padding: 24px
    }

    .fields {
        grid-template-columns: 1fr;
        gap: 0
    }

    .cards article {
        padding: 22px
    }
}

@media(max-width:650px) {
    html {
        scroll-padding-top: 20px
    }

    header {
        height: 85px;
        position: relative
    }

    .logo {
        width: 135px;
        height: 65px
    }

    .menu {
        display: flex;
        align-items: center;
        gap: 12px;
        border: 1px solid var(--line);
        padding: 8px 13px;
        background: white;
        color: var(--blue);
        border-radius: 3px;
        font-size: 13px
    }

    nav {
        display: none;
        position: absolute;
        top: 85px;
        left: -4.35%;
        width: 108.7%;
        padding: 22px 6%;
        background: white;
        z-index: 10;
        box-shadow: 0 10px 18px #143e6020
    }

    nav.open {
        display: flex;
        flex-direction: column;
        align-items: stretch
    }

    nav>a {
        padding: 9px
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 30px;
        padding-bottom: 40px;
        gap: 35px
    }

    h1 {
        font-size: 43px;
        letter-spacing: -1.9px
    }

    .eyebrow {
        font-size: 9px;
        margin-bottom: 22px
    }

    .lead {
        font-size: 16px
    }

    .blueprint {
        max-width: 440px;
        width: 100%;
        margin: auto
    }

    .blueprint>svg {
        max-height: 410px;
        object-fit: cover
    }

    .stripe .wrap {
        flex-direction: column;
        gap: 10px;
        font-size: 12px;
        padding-block: 18px
    }

    .about {
        grid-template-columns: 1fr;
        padding-block: 55px;
        gap: 0
    }

    .focus {
        padding-block: 55px
    }

    .section-head {
        display: block
    }

    .cards {
        grid-template-columns: 1fr
    }

    .cards article {
        padding: 27px
    }

    .cards svg {
        margin-top: 18px
    }

    .contact {
        grid-template-columns: 1fr;
        padding-block: 55px;
        gap: 35px
    }

    .contact-note {
        margin-top: 25px
    }

    .fields {
        grid-template-columns: 1fr
    }

    footer {
        flex-wrap: wrap;
        gap: 8px
    }

    footer p {
        order: 3;
        width: 100%
    }

    .button {
        min-height: 48px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    * {
        transition: none !important
    }
}

/* Datos de contacto */
.contact-details {
  margin-top: 32px;
}

.contact-details h3 {
  margin: 0 0 16px;
  color: #111;
  font-size: 18px;
  font-weight: 600;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 8px 0;
  color: #111;
  text-decoration: none;
}

.contact-icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #111;
  transition: background 0.2s, color 0.2s;
}

.contact-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-label {
  color: #555;
  font-size: 12px;
}

.contact-value {
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-item:hover .contact-icon {
  background: #111;
  color: #fff;
}

.contact-item:hover .contact-value {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-item:focus-visible {
  outline: 2px solid #111;
  outline-offset: 5px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .contact-icon {
    transition: none;
  }
}

/* Tarjetas del catálogo */
#catalogo .cards article {
    padding: 0;
    overflow: hidden;
}

.product-card {
    display: block;
    width: 100%;
    height: 100%;
    padding: 28px;
    border: 0;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.product-card:hover {
    background: #f0f8fc;
}

.product-card:focus-visible {
    outline: 3px solid #06469f;
    outline-offset: -4px;
}

.product-card .article-img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: contain;
    margin: 20px 0;
}

.product-card-link {
    display: inline-block;
    color: #06469f;
    font-size: 13px;
    font-weight: 600;
}

/* Modal */
body.product-modal-open {
    overflow: hidden;
}

.product-modal {
    width: min(760px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #142c46;
    box-shadow: 0 24px 80px #0005;
}

.product-modal::backdrop {
    background: rgb(0 0 0 / 65%);
}

.product-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    border-bottom: 1px solid #dbe6ee;
}

.product-modal-header h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: normal;
}

.product-close {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.product-close:hover {
    background: #eee;
}

/* Carrusel */
.product-gallery {
    position: relative;
    display: grid;
    place-items: center;
    background: #f4f7fa;
}

#product-image {
    display: block;
    width: 100%;
    height: clamp(220px, 45vh, 420px);
    padding: 20px 60px;
    object-fit: contain;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 3px 10px #0001;
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.gallery-arrow:hover {
    background: #111;
    color: #fff;
}

/* Evita que display:grid sobrescriba el atributo hidden */
.gallery-arrow[hidden] {
    display: none;
}

.product-modal-content {
    padding: 20px 24px 28px;
}

.product-counter {
    margin: 0 0 12px;
    color: #536779;
    font-size: 12px;
    text-align: center;
}

#product-description {
    margin: 0 0 24px;
    color: #536779;
    line-height: 1.7;
}

@media (max-width: 650px) {
    .product-card {
        padding: 22px;
    }

    .product-modal-header,
    .product-modal-content {
        padding: 18px;
    }

    .product-modal-header h2 {
        font-size: 20px;
    }

    #product-image {
        padding-inline: 52px;
    }

    .gallery-prev {
        left: 5px;
    }

    .gallery-next {
        right: 5px;
    }

    .product-modal-content .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card {
        transition: none;
    }
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0 0 24px;
    padding: 16px 20px;
    border: 1px solid #dbe6ee;
    border-radius: 8px;
    background: #f3f8fb;
}

.product-price > span {
    color: #536779;
    font-size: 14px;
}

.product-price > strong {
    color: #06469f;
    font-size: 26px;
    font-weight: 700;
}