/* =====================
   Variables y Colores Base
   ===================== */
.color-main {
    color: #cf0c0c !important;
}

/* =====================
   Utilidades Generales
   ===================== */
.text-center {
    text-align: center !important;
}
.text-small {
    font-size: 0.8em !important;
}
.pb-0 {
    padding-bottom: 0 !important;
}
.mb-0 {
    margin-bottom: 0 !important;
}
.mb-1 {
    margin-bottom: 1.4em !important;
}
.mb-2 {
    margin-bottom: 2em !important;
}

/* =====================
   Listas y Grillas
   ===================== */
.list-marcas {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    text-align: center;
    justify-content: center;
    padding-left: 0;
}
.list-marcas:not(:last-child) {
    margin: 0 0 1.25rem
}
.list-marcas li {
    display: inline-flex;
    margin: .35rem;
    opacity: 1;
    transition: opacity 300ms ease;
    padding-left: 0;
}
.list-marcas a {
    background: #fff;
    border: 1px solid #ddd;
    width: 100%;
    display: block;
    padding: .25rem;
    transition: border-color 300ms ease;
    text-decoration: none;
}
.list-marcas a span {
    display: inline-block;
    padding: .25rem .25rem 0;
}
.list-marcas li:hover {
    opacity: .8;
}
.list-marcas img {
    display: block;
    width: 100%;
    max-width: 140px;
}

.list-contact {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 1rem;
    padding-left: 0;
}
.list-contact li {
    padding-left: 0;
    margin-bottom: 1rem;
}
.list-contact__title {
    margin-bottom: .4rem;
    border-bottom: 1px solid #eee;
    padding-bottom: .4rem;
    display: block;
    color:#e90c0c;
}
.list-contact:not(:last-child) {
    margin: 0 0 1.25rem
}

/* =====================
   Iconos
   ===================== */
ul.icons.inline {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 1.5em;
    padding-left: 0;
    justify-content: center;
}
ul.icons.inline li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
ul.icons.inline i {
    margin-right: 0.5em;
}

/* =====================
   Cabecera y Fondos
   ===================== */
#header-wrapper.bg {
    background-color: rgba(0, 0, 0, 0.35);
    background-blend-mode: darken;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

h1#logo a img {
    max-width: 200px;
    margin-top: 16px;
    filter: brightness(0) invert(1);
}

/* =====================
   Tipografía
   ===================== */
h1,
h2,
h3,
.adaptamos-title,
.adaptamos-blockquote-title,
.list-contact__title,
.button,
.actions .button,
#nav a,
nav#nav a {
    font-family: 'Orbitron', 'Open Sans', Arial, Helvetica, sans-serif;
}

/* =====================
   Botones
   ===================== */
/* Botón genérico negro con letras blancas */
.button-black {
    background: #111 !important;
    color: #fff !important;
    border: none;
}
.button-black:hover, .button-black:focus {
    background: #e90c0c !important;
    color: #fff !important;
}
/* Botón naranja reutilizable */
.button-orange {
    background: #e90c0c !important;
    color: #fff !important;
    border: none !important;
    transition: background 0.25s, color 0.25s;
}
.button-orange:hover, .button-orange:focus {
    background: #111 !important;
    color: #fff !important;
}
/* Botón de llamada */
a.button.mb-2[href^="tel:"] {
    background: #111 !important;
    color: #fff !important;
    border: none;
}
a.button.mb-2[href^="tel:"]:hover, a.button.mb-2[href^="tel:"]:focus {
    background: #e90c0c !important;
    color: #fff !important;
}

/* =====================
   Secciones y Componentes
   ===================== */
/* Bloque Nos adaptamos */
.adaptamos-section {
    background: #fff;
}
.adaptamos-subtitle {
    display: inline-block;
    color: #e90c0c;
    font-weight: 700;
    font-size: 1.1em;
    letter-spacing: 1px;
    margin-bottom: 0.5em;
    text-transform: uppercase;
}
.adaptamos-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 0.7em;
    color: #222;
}
.adaptamos-blockquote {
    background: #f7f7f9;
    border-left: 4px solid #e90c0c;
    padding: 1.2em 1.5em;
    margin: 1.5em 0;
    border-radius: 0.7em;
}
.adaptamos-blockquote-title {
    font-size: 1.15em;
    font-weight: 600;
    color: #e40c0c;
    margin-bottom: 0.5em;
}

/* Slider de Opiniones */
.opiniones-swiper {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    background: #fff;
    border-radius: 1em;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    padding: 2em 1.5em 2.5em 1.5em;
    position: relative;
    min-height: 230px;
}
.opiniones__item {
    text-align: center;
    padding: 0.5em 0.5em 0 0.5em;
}
.opiniones__title {
    font-weight: 600;
    color: #e90c0c;
    font-size: 1.1em;
    margin-bottom: 0.5em;
}
.opiniones__text {
    font-size: 1em;
    color: #222;
    font-style: italic;
    margin-bottom: 0;
}
.swiper-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.7em;
    text-align: center;
}
.swiper-pagination-bullet {
    background: #e90c0c !important;
    opacity: 0.5;
    width: 10px;
    height: 10px;
    margin: 0 4px !important;
    transition: opacity 0.2s;
}
.swiper-pagination-bullet-active {
    opacity: 1;
    background: #e90c0c !important;
}
.wrapper.section-gray {
    background: #e8e8e7;
}

/* =====================
   Utilidades de Layout
   ===================== */
.invert-desktop {
    display: flex;
    flex-direction: row-reverse;
}
@media (max-width: 900px) {
    .invert-desktop {
        flex-direction: column;
    }
}

/* =====================
   Formularios y Checkbox Personalizado
   ===================== */
input[type="checkbox"].custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    background: #f9fbfe;
    border: 1px solid #d2d7dc;
    border-radius: 0.35em;
    width: 1.3em;
    height: 1.3em;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    margin-right: 0.5em;
    transition: background 0.25s, border-color 0.25s;
    cursor: pointer;
}
input[type="checkbox"].custom-checkbox:checked {
    background: #e90c0c;
    border-color: #e90c0c;
}
input[type="checkbox"].custom-checkbox:checked:after {
    content: '';
    position: absolute;
    left: 0.45em;
    top: 0.32em;
    width: 0.28em;
    height: 0.55em;
    border: solid #fff;
    border-width: 0 0.18em 0.18em 0;
    transform: rotate(45deg);
    display: block;
}
input[type="checkbox"].custom-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 2px #e90c0c55;
}
label.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 1em;
    cursor: pointer;
    margin-bottom: 0.5em;
}

/* =====================
   Respuestas de formulario
   ===================== */
.response-message .inner.success {
    background: #e8f7ed;
    border: 1px solid #b2e0c9;
    color: #2d6a4f;
    padding: 1em;
    border-radius: 0.5em;
    margin-bottom: 1.5em;
}

.response-message .inner.error {
    background: #fbe9e9;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1em;
    border-radius: 0.5em;
    margin-bottom: 1.5em;
}

.response-message .inner p {
    text-align: center;
    margin-bottom: 0 !important;
}
/* =====================
   Media Queries
   ===================== */
@media screen and (max-width: 736px) {
    ul.icons.inline {
        flex-direction: column;
        align-items: center;
        gap: 1em;
        margin-left: 2em;
        margin-right: 2em;
    }
    ul.icons.inline li {
        justify-content: center;
        width: 100%;
        text-align: center;
    }
    h1#logo a img {
        max-width: 150px;
        margin-top: 6px;
    }
    .image.featured {
        margin-bottom: 1em;
    }
}
@media (max-width: 900px) {
    .adaptamos-title {
        font-size: 1.3em;
    }
    .adaptamos-blockquote {
        padding: 1em 0.7em;
    }
    .opiniones-swiper {
        max-width: 100%;
        padding: 1.5em 0.5em 2em 0.5em;
    }
}