/*
 * Styles for the static multi-page site (Web.StaticSite). Loaded after style.css and responsive.css, which keep the
 * original template; this file only adds the new blocks and the overrides they need.
 */

/* ---------------------------------------------------------------- accessibility */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 10px 16px;
    background: #fff;
    color: #1b1b1b;
    font-weight: 500;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #EA1B1B;
    outline-offset: 2px;
}

/* ---------------------------------------------------------------- header */

.logo a {
    display: inline-block;
}

.logo a p {
    margin: 0;
}

/* ---------------------------------------------------------------- home hero */

.welcome-image-area {
    background-image: url(../images/bg/portada.jpg);
    background-image: image-set(url(../images/bg/portada.avif) type("image/avif"), url(../images/bg/portada.jpg) type("image/jpeg"));
    background-position: center;
    min-height: 640px;
}

.hero-kicker {
    color: #f2f2f2;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.bubbles h1.hero-title {
    font-size: 56px;
    line-height: 1.15;
    text-transform: none;
    max-width: 900px;
    margin: 0 auto;
}

.hero-lead {
    color: #fafafa;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    max-width: 760px;
    margin: 20px auto 0;
}

.search-label {
    color: #fff;
    text-align: center;
    font-size: 15px;
    font-weight: 400;
    margin: 40px 0 10px;
}

.welcome-image-area .search-box {
    margin-top: 0;
}

.hero-ctas {
    margin-top: 30px;
}

.hero-ctas a {
    display: inline-block;
    margin: 6px;
    padding: 13px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
}

.hero-cta-primary {
    background: #25d366;
    color: #fff;
}

.hero-cta-primary:hover,
.hero-cta-primary:focus {
    background: #1ebe5d;
    color: #fff;
}

.hero-cta-secondary {
    border: 1px solid #fff;
    color: #fff;
}

.hero-cta-secondary:hover,
.hero-cta-secondary:focus {
    background: #fff;
    color: #1b1b1b;
}

.search-actions a {
    color: #fff;
}

/* ---------------------------------------------------------------- inner pages */

.page-hero {
    position: relative;
    z-index: 1;
    padding: 150px 0 60px;
    background: url(../images/bg/portada.jpg) center / cover;
    background-image: image-set(url(../images/bg/portada.avif) type("image/avif"), url(../images/bg/portada.jpg) type("image/jpeg"));
    color: #fff;
}

.page-hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    z-index: -1;
}

.page-hero h1 {
    font-size: 44px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 15px;
    color: #fff;
}

.page-kicker {
    color: #EC3232;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.page-note {
    max-width: 820px;
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 26px;
    color: #d9d9d9;
}

.page-note strong {
    color: #fff;
    font-weight: 600;
}

.page-note a {
    color: #fff;
    text-decoration: underline;
}

.page-lead {
    max-width: 820px;
    font-size: 17px;
    font-weight: 400;
    line-height: 30px;
    color: #f2f2f2;
    margin: 0;
}

.breadcrumbs {
    list-style: none;
    margin: 0 0 25px;
    padding: 0;
    font-size: 13px;
}

.breadcrumbs li {
    display: inline;
    color: #ddd;
}

.breadcrumbs li + li:before {
    content: "/";
    margin: 0 8px;
    color: #999;
}

.breadcrumbs a {
    color: #fff;
}

.breadcrumbs a:hover {
    color: #EC3232;
}

/* ---------------------------------------------------------------- services */

.service-grid {
    display: flex;
    flex-wrap: wrap;
}

.service-card-col {
    display: flex;
}

.service-card-col .single-service {
    width: 100%;
}

.single-service h2,
.single-service h3 {
    font-size: 22px;
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: 500;
    color: #000;
    transition: .3s;
}

.single-service h2 a,
.single-service h3 a {
    color: inherit;
}

.single-service:hover.single-service h2,
.single-service:hover.single-service h3,
.single-service:hover .service-link {
    color: #fff;
}

.service-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: #EA1B1B;
}

.section-more {
    margin: 40px 0 0;
}

.section-more a {
    font-weight: 600;
    color: #EA1B1B;
}

.service-detail h2,
.service-aside h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1b1b1b;
    margin: 35px 0 15px;
}

.service-detail .col-md-7 > h2:first-child {
    margin-top: 0;
}

.check-list,
.related-links,
.not-found-links {
    list-style: none;
    padding: 0;
}

.check-list li {
    position: relative;
    padding: 6px 0 6px 28px;
    font-size: 16px;
    font-weight: 400;
}

.check-list li:before {
    content: "\f00c";
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    color: #EA1B1B;
}

.tag-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list li {
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
}

.steps-list {
    padding-left: 20px;
}

.steps-list li {
    padding: 6px 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 26px;
}

.steps-list a,
.related-links a {
    color: #EA1B1B;
    font-weight: 500;
}

.service-gallery figure {
    margin: 0 0 20px;
}

.service-gallery img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.related-links li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

/* ---------------------------------------------------------------- quote band */

.get-text a {
    margin: 6px;
}

.get-text .btn-secondary-cta {
    background: transparent;
    border: 1px solid #fff;
}

/* ---------------------------------------------------------------- about */

.single-what h3 {
    margin-top: 20px;
    margin-bottom: 30px;
    font-size: 22px;
}

.img-logo img {
    height: auto;
}

/* The flex button stretched the icon to 60 x 56. */
.whatsapp-btn img {
    flex: none;
    width: 56px;
    height: 56px;
}

/* ---------------------------------------------------------------- brands */

.brand-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    padding: 15px;
    border: 1px solid #222;
    text-align: center;
}

.brand-item img {
    width: 100%;
    max-width: 220px;
    height: auto;
}

.brand-name {
    display: inline-block;
    margin-top: 10px;
    background: #EA1B1B;
    color: #fff;
    padding: 6px 12px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---------------------------------------------------------------- contact */

.single-contact-info h3 {
    font-size: 20px;
    color: #fff;
}

.single-contact-info a:hover {
    color: #EC3232;
}

.contact-hint {
    color: #fff;
    font-weight: 400;
}

.mapscont iframe {
    display: block;
    height: 500px !important;
}

/* ---------------------------------------------------------------- islands */

.island-loading button[type="submit"] {
    cursor: progress;
    opacity: .75;
}

.island-error {
    margin-top: 12px;
    padding: 10px 15px;
    background: #fff;
    color: #1b1b1b;
}

.island-error a {
    color: #1ebe5d;
    font-weight: 600;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
    color: #ccc;
}

.site-footer p {
    line-height: 24px;
}

.footer-heading {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
}

.footer-links,
.contact-links {
    list-style: none;
    padding: 0;
}

.footer-links li,
.contact-links li {
    padding: 4px 0;
}

.site-footer a {
    color: #ccc;
}

.site-footer a:hover {
    color: #EC3232;
}

.footer-copy {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 13px;
}

/* ---------------------------------------------------------------- misc */

button.scrollup {
    border: 0;
    padding: 0;
}

.not-found-links li {
    display: inline-block;
    margin: 8px;
}

.not-found-links a {
    color: #EA1B1B;
    font-weight: 600;
}

@media (max-width: 991px) {
    .bubbles h1.hero-title {
        font-size: 42px;
    }

    .page-hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .welcome-image-area {
        height: auto;
        min-height: 100vh;
        padding: 110px 0 50px;
    }

    .hero-kicker {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .bubbles h1.hero-title {
        font-size: 32px;
    }

    .hero-lead {
        font-size: 16px;
        line-height: 26px;
    }

    .page-hero {
        padding: 120px 0 40px;
    }

    .page-hero h1 {
        font-size: 30px;
    }

    .section-title h2,
    .video-area-text h2 {
        font-size: 32px;
    }

    .video-area-text p,
    .section-title p {
        padding: 0;
    }

    .site-footer .col-sm-4 {
        margin-bottom: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        transition: none !important;
        animation: none !important;
    }
}

.single-contact-info h2 {
    font-size: 20px;
    color: #fff;
}

/* ---------------------------------------------------------------- visual polish
 * Same structure, texts and colours; evens out sizes and spacing, and drops decoration that looked accidental. */

/* Hero: the red specks drawn by site.js read as dirt on the photograph. */
.individual-bubble {
    display: none;
}

.hero-cta-primary {
    background: #EA1B1B;
}

.hero-cta-primary:hover,
.hero-cta-primary:focus {
    background: #c41212;
}

.welcome-image-area .search-box input {
    background: rgba(0, 0, 0, .45);
    height: 52px;
}

.welcome-image-area .search-box button {
    height: 52px;
    padding-top: 0;
    padding-bottom: 0;
}

/* About: three cards of the same height; the logo sits on white instead of a pale blue box. */
.what-we-area .row + .row {
    display: flex;
    flex-wrap: wrap;
}

.what-we-area .row + .row:before,
.what-we-area .row + .row:after {
    display: none;
}

.what-we-area .row + .row > [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
}

.single-what {
    width: 100%;
    padding: 44px 36px;
}

.single-what h3 {
    margin: 20px 0 16px;
    line-height: 1.3;
}

.single-what p {
    font-size: 15px;
    line-height: 26px;
    margin: 0;
}

.single-what.what-color-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e6e6e6;
}

.single-what.what-color-2 .img-logo {
    margin: 0;
}

.single-what.what-color-2:hover {
    box-shadow: none;
    transform: none;
}

/* Services: same icon size, same text rhythm, "Ver detalle" always at the foot of the card. */
.single-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 30px 32px;
}

.single-service i {
    flex: none;
    width: 80px;
    height: 80px;
    font-size: 34px;
    line-height: 80px;
}

.single-service h2,
.single-service h3 {
    margin: 22px 0 14px;
    font-size: 21px;
    line-height: 1.3;
}

.single-service p {
    font-size: 15px;
    line-height: 25px;
}

.single-service .service-link {
    margin-top: auto;
    padding-top: 18px;
}

.single-service p + .service-link {
    margin-top: auto;
}

/* Brands: the logo already names the brand, so the label is a quiet caption instead of a red tag. */
.brand-item {
    border-color: #2b2b2b;
    transition: border-color .3s;
}

.brand-item:hover {
    border-color: #EA1B1B;
}

.brand-name {
    background: transparent;
    padding: 0;
    color: #8e8e8e;
    font-size: 11px;
    letter-spacing: 2px;
}

/* Contact: original background and frames; the details are spread over the height of the frame, closed by a WhatsApp button. */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 30px;
}

/* Free space goes around each block, and the button stays on the bottom line of the form's button. */
.contact-info > div {
    padding-bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
}

.contact-info > .contact-info-cta {
    display: block;
    margin-bottom: 0;
}

.contact-form button,
.contact-info-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 35px;
    line-height: 1;
}

.contact-info-cta a {
    padding: 0 30px;
    border-radius: 30px;
    background: #EA1B1B;
    border: 1px solid #EA1B1B;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: .3s;
}

.contact-info-cta a:hover,
.contact-info-cta a:focus {
    background: #c41212;
    border-color: #c41212;
    color: #fff;
}

.contact-hint {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 20px;
}

.single-contact-info p,
.single-contact-info a {
    line-height: 22px;
}

.single-contact-info p {
    margin: 0 0 4px;
}

.single-contact-info h2,
.single-contact-info h3 {
    margin: 0 0 6px;
}

/* Footer: more room above the columns. */
.site-footer {
    padding-top: 50px;
}

.site-footer .footer-links li {
    padding: 3px 0;
}

@media (max-width: 767px) {
    .single-what.what-color-2 .img-logo img {
        max-width: 240px;
    }

    .what-we-area .row + .row > [class*="col-"] {
        margin-bottom: 20px;
    }

    .single-what {
        padding: 36px 24px;
    }
}

/* The icon circles were squeezed into ovals by the flex row on narrow screens. */
.single-contact-info i {
    flex: none;
}
