:root {
    --primary-100:              hsl(156, 39%, 90%);
    --primary-300:              hsl(156, 39%, 68%);
    --primary-500:              hsl(156, 39%, 47%);
    --primary-700:              hsl(156, 39%, 30%);
    --primary-800:              hsl(156, 39%, 23%);
    --primary-900:              hsl(156, 39%, 10%);
    --accent-100:               hsl(47, 88%, 94%);
    --accent-300:               hsl(47, 88%, 70%);
    --accent-500:               hsl(47, 88%, 56%);
    --accent-700:               hsl(47, 88%, 34%);
    --accent-900:               hsl(47, 88%, 15%);
    --base-100:                 hsl(215, 7%, 95%);
    --base-400:                 hsl(215, 7%, 53%);
    --base-500:                 hsl(215, 7%, 43%);
    --base-700:                 hsl(215, 7%, 30%);
    --base-800:                 hsl(0, 0%, 24.1%);
    --font-sans:                system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    --font-bold:                'Author-Medium';
    --leaflet-popup-content:    200px;
    --text-0: clamp(1.125rem, 1.0739rem + 0.2273vw, 1.25rem);
    --text-1: clamp(1.375rem, 1.2999rem + 0.4727vw, 1.625rem);
    --text-2: clamp(1.75rem, 1.5683rem + 0.8424vw, 2.25rem);
    --text-3: clamp(2.25rem, 1.8849rem + 1.3881vw, 3rem);
    --text-4: clamp(2.75rem, 2.2556rem + 2.182vw, 4rem);
}

/* HSL(218.8, 80.4%, 20%) */

@font-face {
    font-family: 'Author-Medium';
    src: url('../fuentes/Author-Medium.woff2') format('woff2'),
         url('../fuentes/Author-Medium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:where(h1, h2, h3, h4, h5, h6) {
    font-family: var(--font-bold);
    letter-spacing: -0.01em;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--base-700);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    font-size: var(--text-0) ;
}

[hidden] {
    display: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--base-800);
}

h1 {
    font-size: var(--text-4);
    line-height: 1.2;
}

h2 {
    font-size: var(--text-3);
    line-height: 1.25;
}

h3 {
    font-size: var(--text-2);
}

h4, .text-1 {
    font-size: var(--text-1);
}

a {
    text-decoration: none;
}

.link {
    color: var(--primary-700);
    cursor: pointer;
    border-bottom: 1px solid var(--accent-500);
    box-shadow: inset 0 -2px var(--accent-500);
    font-weight: 600;
}

ul {
    padding-left: 24px;
}

ol li::marker {
    font-weight: bold;
}

ul ul,
ol ul {
    margin-block-start: 1em;
}

.number {
    background-color: var(--primary-200);
    display: inline-flex;
    border-radius: 50px;
    height: 1.5rem;
    width: 1.5rem;
    align-items: center;
    justify-content: center;
    color: var(--primary-500);
    font-size: .875rem;
    margin-right: 0.25rem;
}

.numbered {
    counter-reset: orderedlist;
    padding-left: 1rem;
    
    li {
        list-style-type: none;
        margin-bottom: 1rem;
    }
    
    li::before {
        counter-increment: orderedlist;
        content: counter(orderedlist);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        font-weight: bold;
        line-height: 0.75;
        width: 1.5rem;
        height: 1.5rem;
        text-align: center;
        color: #fff;
        background-color: #FA7311;
        border-radius: 50px;
        margin-right: 8px;
    }
}
              

hr {
    border: 0;
    margin-block: 2rem;
    border-bottom: 1px solid var(--primary-200);
}


figure {
    text-align: center;
    margin: 0;
}

.header {
    background: url(../img/header.jpg) var(--primary-800) no-repeat center top;
    display: grid;
    grid-template-columns: 1fr 32px;
    align-items: flex-end;
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.3);
    z-index: 3;
    width: 100%;
    padding: 20px 0 4px;
    position: relative;
}

.header::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    content: "";
    background: radial-gradient(at center 0, transparent, var(--primary-800));
}

.header.-home {
    background-position-y: 0;
    padding: 20px 0 8px;

    &::after {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        content: "";
        background: radial-gradient(at center -30px, transparent, var(--primary-800));
    }
}

.header.-internal {
    grid-template-columns: 32px 1fr 32px;
}

.main-heading {
    color: hsla(0, 0%, 100%, 0.9);
    font-size: 1.625rem;
    font-weight: 400;
    margin: 0;
    text-align: center;
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
}

.main-heading + p {
    margin: 0;
    color: white;
    opacity: 0.5;
}
    
.header.-home .main-heading {
    font-size: 2rem;
    padding-bottom: 0;
}

.header.-internal .main-heading {
    flex-grow: 1;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 0;
}

.tag {
    padding: 2px 8px;
    display: inline-flex;
    align-items: center;
    border-radius: 18px;
    text-transform: uppercase;
    font-size: .875rem;
    line-height: 1rem;
    font-weight: 500;
    letter-spacing: .05em;
    background-color: var(--accent-300);
    color: var(--primary-800);
}

.slogan {
    background-color: var(--accent-500);
    font-weight: 600;
}

.main {
    background: var(--base-100);
    z-index: 2;
    position: relative;
    flex: 1;
    overflow: auto;
}

.specs-list {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    list-style: none;
    grid-gap: 20px;
    padding: 0;
}

@media only screen and (min-width:600px) {
    .specs-list {
        grid-template-rows: 1fr 1fr;
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.specs-item {
    margin: 0;

    label {
        display: block;
        font-size: .75rem;
        font-weight: 300;
        text-transform: uppercase;
        color: var(--primary-500);
    }

    span {
        font-size: 1.75rem;
    }
}

.container {
    max-width: 52rem;
    margin: 0 auto;
}

.cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section {
    background-color: #fff;
    box-shadow: 0 2px 8px hsla(28, 26%, 86%, 50%);
    overflow: hidden;
}

.section.-weather {
    min-height: 150px;
    padding-bottom: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--primary-100);
}

.section-heading {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.5rem;
    color: var(--primary-700);
}

.section-link {
    color: var(--primary-500);
    font-size: 1.125em;
    text-transform: uppercase;
}

.content {
    padding: 1.25rem;
}

.post {
    max-width: 70ch;
    margin-inline: auto;
    padding: 1.5rem;
    background-color: white;
}

.highlight {
    background: linear-gradient(90deg, rgba(255, 226, 0, 0) 0, rgba(255, 226, 0, 0.75) 5%, rgba(255, 226, 0, 0.25) 95%, rgba(255, 226, 0, 0) 100%);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    display: inline;
}

.media {
    display: grid;
    grid-column-gap: 20px;
    grid-template-areas: "media-image""media-heading""media-text";
}

.media.-date {
    grid-template-areas: "media-date media-heading""media-date media-text";
    grid-template-columns: 1fr 4fr;
}

.media-image {
    overflow: hidden;
    margin: 0;
}

.media-image > img {
    background-size: cover;
}

.media-heading {
    grid-area: media-heading;
    margin: 1rem;
    color: var(--primary-700);
}

.media.-date .media-heading {
    margin: 0 16px 12px 0;
}

.media-text {
    grid-area: media-text;
}

.weatherwidget-io {
    text-align: center;
    width: 100%;
    display: block;
    padding: 2rem;
}

.media-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-area: media-date;
    text-align: center;
    color: var(--primary-500);
    padding-inline: 8px;
    
    & > span:nth-child(2) {
        font-size: 2rem;
        font-weight: bold;
        color: var(--primary-700);
    }
    
    & > span:nth-child(3) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.2);
        padding-bottom: 8px;
        margin-bottom: 8px;
    }
}

.cell {
    border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
}

h2 {
    font-size: 1.4rem;
}

p,
li {
    line-height: 1.5;
}

ul:not(.list-none, .specs-list, .lista-servicios) {
    list-style: none;
    
    li {
        position: relative;
        
        &:not(:last-child) {
            margin-bottom: .5rem;
        }
    
        &:before {
            content: "";
            position: absolute;
            left: -26px;
            top: 2px;
            border: solid 9px var(--primary-200);
            border-radius: 12px;
        }
        
        &:after {
            content: "✔";
            position: absolute;
            left: -23px;
            top: 0;
            color: var(--primary-500);
            font-size: 1rem;
        }
    }
} 

.list-none {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

p:last-child {
    margin-bottom: 0;
}

img,
iframe,
video {
    max-width: 100%;
    height: auto;
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.tab-bar {
    background: var(--primary-800);
    display: flex;
    justify-content: space-between;
    z-index: 4;
    box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.3);
    width: 100%;
}

.tab {
    width: 50%;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    &:not(.-active):hover {
        background: rgba(0, 0, 0, 0.05);
    }
    
    &.-active {
        color: white;
        cursor: default;
        border-bottom: 2px solid var(--accent-500);
        cursor: default;
    }
}

.tab-icon {
    width: 18px;
    height: 18px;
    fill: rgba(255, 255, 255, 0.5);
    margin-right: 8px;
    
    .tab.-active & {
        fill: white;
    }
}

.btn {
    display: inline-flex;
    font-weight: 400;
    color: var(--accent-900);
    cursor: pointer;
    font-family: inherit;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1.25;
    border-radius: .5em;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    justify-content: center;
    align-items: center;
    gap: .25em;
    background: #c8c8c8;
    font-family: var(--font-bold);
    
    & > .icon {
        width: 1.75rem;
        height: 1.75rem;
        fill: currentColor;
    }
    
    & > span {
        margin-left: 6px;
    }
    
    &.-primary {
        background-color: var(--accent-300);
        border-color: var(--accent-300);
        
        &:hover {
            background-color: var(--accent-500);
            border-color: var(--accent-500);
        }
    }
    
    /*Resolver */
    &.-install {
        background: var(--accent-500);
    }
    
    &.-phone {
        color: #fff;
        background-color: #01c432;
        border-color: #01c432;
        
        &:hover {
            color: #fff;
            background-color: #019125;
            border-color: #019125;
        }
    }
    
    &.-whatsapp {
        color: #fff;
        background-color: #128c7e;
        border-color: #128c7e;
        
        &:hover {
            color: #fff;
            background-color: #075e54;
            border-color: #075e54;
        }
    }
    
    &.-instagram {
        color: #fff;
        background-color: #e1306c;
        border-color: #e1306c;
        
        &:hover {
            color: #fff;
            background-color: hsl(340, 75%, 44%);
            border-color: hsl(340, 75%, 44%);
        }
    }

    &.-web {
        color: var(--primary-500);
        background-color: var(--accent-500);
        border-color: var(--accent-500);
        
        &:hover {
            color: var(--primary-700);
            background-color: var(--accent-700);
            border-color: var(--accent-700);
        }
    }
    
    &.-email {
        color: #fff;
        background-color: var(--primary-500);
        border-color: var(--primary-500);
        
        &:hover {
            color: #fff;
            background-color: var(--primary-700);
            border-color: var(--primary-700);
        }
    }
    
    &.-emergency {
        background-color: #ff1a1a;
        border-color: #ff1a1a;
        
        &:hover {
            background-color: #e60000;
            border-color: #e60000;
        }
    }

    .section-header & {
        box-shadow: none;
        border: 0;
    }
}

.header-btn {
    background: none;
    border: 0;
    padding-right: 1rem;
    height: 2rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    fill: var(--accent-300);
    z-index: 3;
}

.bottom-nav-container {
    width: 100%;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.12), 0 4px 6px 0 rgba(0, 0, 0, 0.24);
    z-index: 5;
    
    &.-call-to-action {
        background-color: white;
        padding: 7px;
        
        .bottom-nav {
            justify-content: center;

            > .btn {
                flex-grow: 1;
                
                & > span {
                    display: none;
                    margin-left: 8px;
                }
            }
        }
    }
}

.bottom-nav {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

@supports (backdrop-filter: blur(35px)) {
    .bottom-nav-container {
        backdrop-filter: blur(35px);
    }
}

@media only screen and (min-width: 640px) {
    .bottom-nav-container.-call-to-action .bottom-nav > .btn > span {
        display: inline-flex;
    }
}

.bottom-nav-item {
    padding: 7px 0;
    flex-basis: calc(100%/3);
    color: var(--primary-700);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    
    &.-active {
        color: var(--primary-800);
        & > div {
            background-color: var(--accent-300);
        }
    }
    
    & > div {
        padding: 2px .5rem;
        border-radius: .5rem;
        display: inline-flex;
    }
}

.bottom-nav-icon {
    height: 28px;
    width: 28px;
    fill: currentColor;
    flex-shrink: 0;
}

.bottom-nav-label {
    font-size: 1rem;
    line-height: 14px;
    font-family: var(--font-bold);
}

.bottom-nav-item.-active .bottom-nav-label {
    font-weight: bold;
}

.card-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 1rem;
    align-items: stretch;
}

.card {
    position: relative;
    
    figure {
        max-height: 200px;
        overflow: hidden;
        position: relative;
        height: 200px;

        img {
            position: absolute;
            left: 0;
        }
    }
}

.card>img:after {
    background-image: linear-gradient(black, white);
    content: "";
}

.card-heading {
    font-size: 1.25rem;
    margin: .75rem 1rem;
}

.hidden {
    display: none !important;
}

.rounded-sm {
    border-radius: 4px;
}

.rounded {
    border-radius: 8px;
}

.rounded {
    border-radius: 12px;
}

.p-4 {
    padding: 16px;
}

.px-2 {
    padding-right: 8px;
    padding-left: 8px;
}

.px-4 {
    padding-right: 16px;
    padding-left: 16px;
}

@keyframes dr-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(359deg);
    }
}

.dr-spin {
    animation: dr-spin 2s infinite linear;
}

.prompt {
    position: fixed;
    bottom: 64px;
    background: hsla(34.3, 15.6%, 26.5%, 0.9);
    z-index: 10;
    width: 100%;
    color: white;
}

.lSAction::before,
.lSAction::after {
    background-image: none !important;
}

body.widget-summary .widget-header {
    display: none !important;
}

.display-flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.items-baseline {
    align-items: baseline;
}

.gap-2 {
    gap: .5rem
}

.gap-4 {
    gap: 1rem
}

.column-gap-2 {
    column-gap: .5rem
}

.flex-wrap {
    flex-wrap: wrap;
}

.spacer-xs > * + * {
    margin-block-start: .25rem;
}

.spacer-sm > * + * {
    margin-block-start: .5rem;
}

.spacer > * + * {
    margin-block-start: 1rem;
}

.spacer-lg > * + * {
    margin-block-start: 2rem;
}

.spacer-xl > * + * {
    margin-block-start: 3rem;
}

.font-italic {
    font-style: italic;
}

.font-serif {
    font-family: Georgia, serif;
}

.font-regular {
    font-family: var(--font-sans);
}

.text-shadow {
    text-shadow: 0 1px 2px var(--primary-900);
}

.text-capitalize {
    text-transform: capitalize;
}

.word-spacing-5 {
    word-spacing: -5px;
}

.galeria {
    gap: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 8px;
    
    :first-child {
        display: flex;
        overflow: hidden;
        justify-content: center;
    }

    .miniaturas {
        display: flex;
        justify-content: center;
        grid-gap: 8px;
        flex-wrap: wrap;

        img {
            max-height: 45px;
            border-radius: 4px;
        }
    }
}

.cantidad-galeria {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent-500);
    color: var(--primary-900);
    padding: 4px 9px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    letter-spacing: -1px;
    box-shadow: 0 1px 2px hsl(0deg 0% 0% / 20%);
}

.m-0 {
    margin: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mt-4 {
    margin-top: 1rem;
}

.pt-4 {
    padding-top: 1rem;
}

.borde {
    border: 1px solid var(--base-300);
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 14px;
}

.bg-white {
    background-color: white;
}

.lista-servicios {
    list-style-type: "";
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem 1.5rem;
    margin-block: 2rem;
    padding: 0;
}

.servicio {
    display: flex;
    gap: 0.5rem;
    line-height: 1.25rem;
    align-items: center;
    margin: 0;
    fill: var(--primary-300);
}

.unidad {
    padding: 1rem 1rem 0.75rem;
    border-radius: 8px;
    background-color: var(--primary-200);
}

.fill-primary-300 {
    fill: var(--primary-300);
}

.videoContainer {
    position: relative;
    height: 0;
    padding-top: 56.25%;
    width: 100%;
}

.videoContainer iframe {
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
    width: 100%;
    height: 100%;
}

.base\:cards {
    display: grid;
    gap: 2rem;
}

@media screen and (max-width: 680px) {
    .base-max-spacer-lg>*+* {
        margin-block-start: 2rem
    }
}

@media (min-width: 680px) {
    
    .base\:py-4 {
        padding-block: 1.5rem
    }
    
    .cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .base\:cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        border-radius: 6px 6px 8px 8px;
    }

    .media-image {
        height: 220px;
    } 
}
