/*************************************
  Hoja de Estilos base
  Nicolas Ezequiel Almonacid
  24-07-2025
  V 1.0.1
  ezequiel.almonacid@gmail.com
  www.digitalbits.cl
  ************************************/
@import url("https://fonts.googleapis.com/css2?family=TikTok+Sans:opsz,wght@12..36,300..900&display=swap");

/* ========== Variables ========== */
:root {
    --ROJO-PRINCIPAL: #a4191a;
    --footer-border: rgba(255, 255, 255, 0.08);
    --sede-slide-duration: 8s;
    --edge-offset: 15px;
}

@media (max-width: 768px) {
    :root {
        --edge-offset: 10px;
    }
}

/* ========== Base ========== */
html {
    overflow-x: clip;
}
body,
input,
textarea,
select,
button {
    font-family: "TikTok Sans", system-ui, -apple-system, Segoe UI, Roboto,
        "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
        "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 12pt;
    background-color: #ffffff;
    color: #313437;
}
img {
    max-width: 100%;
    height: auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 900;
    color: #313437;
}

/* =========================
   NAVBAR + DROPDOWNS (BS5)
   ========================= */

/* Barra fija NEGRA */
.navbar {
    background-color: #000 !important; /* 👈 negra */
    font-size: 11pt;
    font-weight: 600;
    /*   padding: .25rem 0; */
    transition: background-color 0.25s, box-shadow 0.25s, padding 0.25s;
    z-index: 1030;
}
.navbar.navbar-solid {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* Contenedor full ancho */
.navbar > .container-fluid {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 0;
    overflow: visible !important; /* para que el dropdown no se corte */
}

/* Marca: texto visible, logo oculto en < lg */
.navbar-brand {
    color: #fff;
}
.navbar-brand:hover {
    color: #fff;
    text-decoration: none;
}
.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
@media (min-width: 576px) {
    .brand-logo {
        width: 60px;
        height: 60px;
    }
}
@media (max-width: 991.98px) {
    .brand-logo {
        display: none !important;
    }
}

/* Links */
.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-brand {
    color: #fff !important;
}
.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}
.navbar-nav .nav-link:hover {
    color: var(--ROJO-PRINCIPAL) !important;
}

/* Burger blanco */
.navbar-toggler {
    border: 0;
    padding: 0.45rem 0.65rem;
    margin-right: 0;
    box-shadow: none !important;
    outline: none !important;
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.25) !important;
}
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Menú colapsable */
.navbar-collapse {
    max-width: 100vw !important;
    overflow: visible !important;
}

/* Botón “RESERVAR” */
.btn-outline-menu {
    border: 1px solid #fbfafa;
    color: #fff;
    font-weight: 700;
    font-size: 11pt;
    background: transparent;
    transition: all 0.2s ease;
    border-radius: 9999px;
    padding: 0.4rem 1rem;
}
.btn-outline-menu:hover {
    background-color: #fbfafa;
    color: #000;
}
@media (max-width: 991.98px) {
    .navbar .btn-outline-menu {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* ---------- DROPDOWNS ---------- */
.dropdown-menu {
    background-color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.35rem;
    z-index: 1100;
}
.dropdown-item {
    color: #000;
    border-radius: 0.35rem;
}
.dropdown-item:hover {
    background-color: var(--ROJO-PRINCIPAL);
    color: #fff;
}

/* Tema oscuro opcional */
.dropdown-menu.dropdown-menu-dark {
    background-color: #212529;
}
.dropdown-menu-dark .dropdown-item {
    color: #fff;
}
.dropdown-menu-dark .dropdown-item:hover {
    background-color: var(--ROJO-PRINCIPAL);
    color: #fff;
}

/* Abrir por hover en desktop */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
    }
    .navbar .dropdown-menu {
        margin-top: 0.4rem;
    }
}

/* ---------- COMPENSAR BODY POR NAVBAR FIJA ---------- */
body {
    padding-top: 64px;
}
@media (min-width: 992px) {
    body {
        padding-top: 80px;
    }
}

@media (min-width: 992px) {
    /* No crees un gap entre el toggle y el menú */
    .navbar .dropdown-menu {
        margin-top: 0; /* sin separación que corte el hover */
        position: absolute; /* asegúralo como overlay */
        z-index: 1100; /* por encima del hero/carruseles */
    }

    /* Estado base: renderizado pero NO clickeable, ni visible */
    .navbar .dropdown .dropdown-menu {
        display: block; /* evita el toggle de BS por JS en desktop */
        visibility: hidden;
        opacity: 0;
        transform: translateY(8px);
        pointer-events: none; /* evita clicks cuando está oculto */
        transition: opacity 0.18s ease, transform 0.18s ease,
            visibility 0s 0.18s;
    }

    /* Al pasar el mouse por el .dropdown (link o menú), mostrar y permitir clicks */
    .navbar .dropdown:hover > .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto; /* ahora SÍ recibe los clics */
        transition-delay: 0s;
    }
}

/* Asegura que nada de la navbar recorte el menú */
.navbar,
.navbar > .container-fluid,
.navbar .navbar-collapse {
    overflow: visible !important;
}
/* ========== HERO ========== */

/* ========== SECCIONES & GRID ========== */
.section-spacing {
    padding: 3rem 0;
}
@media (max-width: 768px) {
    .section-spacing {
        padding: 2rem 0;
    }
}
.gris {
    background: #f4f8f6;
}
.p-titulo {
    font-weight: 600;
    text-align: center;
    font-size: 12pt;
    margin-bottom: 2px;
    color: #a41a1a;
}

/* Servicios */
.servicio-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}
@media (max-width: 768px) {
    .servicio-icon {
        width: 60px;
        height: 60px;
    }
}

/* Sedes */
.sede-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
}
.sede-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #f5f5f5;
}
.sede-media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sede-body {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    min-height: 0;
}
.sede-body .title {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    line-height: 1.25;
    color: #fff;
}
.sede-body p {
    margin-bottom: 0.75rem;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.effect-1 .effect-text {
    position: absolute;
    top: calc(100% - 60px);
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    text-align: center;
    color: #fff;
    transition: top 0.4s ease;
}
.effect-1:hover .effect-text {
    top: 0;
}
.sede-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    transition: 0.2s;
}
/* slide show en cards */
.sede-card--slideshow .sede-media > img {
    opacity: 0;
    animation: sedeCrossfade var(--sede-slide-duration) infinite ease-in-out;
    transition: opacity 0.6s ease;
}
.sede-card--slideshow .sede-media > img:nth-child(1) {
    animation-delay: 0s;
}
.sede-card--slideshow .sede-media > img:nth-child(2) {
    animation-delay: calc(var(--sede-slide-duration) / 2);
}
@keyframes sedeCrossfade {
    0%,
    45% {
        opacity: 1;
    }
    55%,
    100% {
        opacity: 0;
    }
}
.sede-card--slideshow:hover .sede-media > img {
    animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
    .sede-card--slideshow .sede-media > img {
        animation: none;
    }
    .sede-card--slideshow .sede-media > img:nth-child(1) {
        opacity: 1;
    }
    .sede-card--slideshow .sede-media > img:nth-child(2) {
        opacity: 0;
    }
}

/* Blog */
.noticia-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
}
.noticia-card .card-title {
    font-weight: 900;
    font-size: 16pt;
    text-transform: uppercase;
}

/* .noticia-card h2{
    text-align: center;
}
 */
/* ========== PRECIOS (Carruseles) ========== */
#precios {
    position: relative;
}
#precios .overflow-hidden {
    overflow: visible !important;
}
.precios-carousel {
    padding: 20px 0 50px;
    overflow: visible;
}
.precios-carousel .carousel-indicators {
    bottom: 0;
}
.precios-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: #a41a1a;
}
.precios-carousel .carousel-inner {
    overflow: hidden;
}
.precios-carousel .carousel-item {
    overflow: visible;
}

/* Tarjetas */
#card-precios .card {
    max-width: 300px;
    height: auto;
    position: relative;
    padding: 1.5rem 1rem;
    box-shadow: rgba(0, 0, 0, 0.2) 0 2px 6px;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    margin: 0 10px;
    padding-top: 3rem;
    margin-top: 3rem;
    transition: all 0.25s ease;
    font-size: 11pt;
}
#card-precios .card:hover {
    border-color: #a41a1a;
}
#card-precios .h-1 {
    text-transform: uppercase;
    font-size: 14px;
    text-align: center;
}
#card-precios .price {
    color: #383838;
    font-size: 30px;
    text-align: center;
}
#card-precios .price .number {
    font-weight: 700;
    font-size: 1.8rem;
    color: #a41a1a;
}
#card-precios .card ul {
    margin-top: 0.5rem;
    padding-left: 0;
}
#card-precios .card ul li {
    list-style: none;
    font-size: 12px;
    margin-bottom: 8px;
}

.btn-box-pricing {
    background: transparent;
    border: 2px solid #a41a1a;
    padding: 8px 16px;
    transition: all 0.2s ease-in-out;
    text-align: center;
    display: inline-block;
    border-radius: 9999px;
}
.btn-box-pricing a {
    text-decoration: none;
    font-weight: 700;
    color: #000;
}
#card-precios .card:hover .btn-box-pricing {
    background: #a41a1a;
    border-color: #a41a1a;
}
#card-precios .card:hover .btn-box-pricing a {
    color: #fff;
}

/* Ribon */
.ribon {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d3d2d2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.25s ease;
}
.ribon img {
    filter: brightness(0);
    width: 50px;
    height: 50px;
    transition: filter 0.25s ease;
}
#card-precios .card:hover .ribon {
    background: #a41a1a;
    border-color: #fff;
}
#card-precios .card:hover .ribon img {
    filter: brightness(0) invert(1);
}

@media (max-width: 767.98px) {
    .precios-carousel {
        padding-bottom: 80px;
    }
    #card-precios .card {
        margin: 0 20px;
        margin-top: 2.5rem;
        padding-top: 3.5rem;
    }
    .ribon {
        width: 70px;
        height: 70px;
    }
    .ribon img {
        width: 40px;
        height: 40px;
    }
}

/* Flechas de los carruseles de precios – pegan al borde del viewport sin romper layout */
#serviciosCarouselLg,
#serviciosCarouselSm {
    position: relative;
}
#serviciosCarouselLg .carousel-control-prev,
#serviciosCarouselLg .carousel-control-next,
#serviciosCarouselSm .carousel-control-prev,
#serviciosCarouselSm .carousel-control-next {
    position: absolute;
    top: 50%;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    opacity: 0.15;
    transition: opacity 0.25s ease, transform 0.25s ease;
    background-color: #a41a1a;
    left: auto;
    right: auto;
    will-change: transform;
}
#serviciosCarouselLg .carousel-control-prev,
#serviciosCarouselSm .carousel-control-prev {
    left: 0;
    --tx: calc(-1 * ((100vw - 100%) / 2 - var(--edge-offset)));
    transform: translate(var(--tx), -50%) scale(0.96);
}
#serviciosCarouselLg .carousel-control-next,
#serviciosCarouselSm .carousel-control-next {
    right: 0;
    --tx: calc((100vw - 100%) / 2 - var(--edge-offset));
    transform: translate(var(--tx), -50%) scale(0.96);
}
.precios-carousel:hover .carousel-control-prev,
.precios-carousel:hover .carousel-control-next,
#serviciosCarouselLg .carousel-control-prev:hover,
#serviciosCarouselLg .carousel-control-next:hover,
#serviciosCarouselSm .carousel-control-prev:hover,
#serviciosCarouselSm .carousel-control-next:hover {
    opacity: 1;
    transform: translate(var(--tx), -50%) scale(1);
}
#serviciosCarouselLg .carousel-control-prev-icon,
#serviciosCarouselLg .carousel-control-next-icon,
#serviciosCarouselSm .carousel-control-prev-icon,
#serviciosCarouselSm .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}
@media (max-width: 768px), (hover: none) {
    #serviciosCarouselLg .carousel-control-prev,
    #serviciosCarouselLg .carousel-control-next,
    #serviciosCarouselSm .carousel-control-prev,
    #serviciosCarouselSm .carousel-control-next {
        width: 44px;
        height: 44px;
        opacity: 0.9;
    }
}

/* ========== MAPA ========== */
.map-responsive {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}
.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 767.98px) {
    .map-responsive {
        height: 300px;
    }
}

/* ========== FOOTER ========== */
footer.site-footer {
    background: #000;
    color: #f8f9fa;
    font-size: clamp(0.92rem, 0.9rem + 0.15vw, 1rem);
}
footer.site-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}
footer.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-top {
    padding: 1rem 0;
    border-bottom: 1px solid var(--footer-border);
}
.footer-mid {
    padding: 1.25rem 0;
}
.footer-bottom {
    padding: 1rem 0;
    border-top: 1px solid var(--footer-border);
}
.footer-logo img {
    max-width: 160px;
    height: auto;
}
@media (min-width: 576px) {
    .footer-logo img {
        max-width: 190px;
    }
}
.social-list {
    gap: 0.5rem;
}
@media (max-width: 575.98px) {
    .social-list {
        justify-content: center;
    }
}
.btn-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    transition: background-color 0.2s ease, color 0.2s ease,
        border-color 0.2s ease;
    line-height: 1;
}
.btn-circle .bi {
    font-size: 20px;
    color: currentColor;
}
.btn-circle:hover,
.btn-circle:focus {
    background: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
}
.btn-circle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.footer-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10pt;
    color: #fff;
}
.list-compact li {
    margin-bottom: 0.35rem;
}
.pay-img {
    max-width: 200px;
    width: 100%;
    height: auto;
}
.credits {
    color: #cfcfcf;
}
@media (max-width: 991.98px) {
    .credits,
    .footer-links-bottom {
        text-align: center;
    }
}

/* ========== WhatsApp Float ========== */
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1050;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.whatsapp-float img {
    width: 36px;
    height: 36px;
    display: block;
}
@media (max-width: 575.98px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        right: 14px;
        bottom: 14px;
    }
    .whatsapp-float img {
        width: 32px;
        height: 32px;
    }
}

/* ========== Utilidades & Fixes ========== */
.container-fluid {
    overflow-x: hidden;
}
.row {
    margin-left: 0;
    margin-right: 0;
}

/* Ajuste de gutters en xs para evitar desbordes */
@media (max-width: 576px) {
    .gx-md-4,
    .gx-xxl-5 {
        --bs-gutter-x: 1rem !important;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .carousel-inner {
        margin: 0 !important;
    } /* evita scroll lateral en algunos móviles */
}

/* Fix de typo en media query original */
@media (max-width: 991px) {
    #card-precios .col-lg-3 {
        margin-bottom: 30px;
    }
}
@media (max-width: 575px) {
    #card-precios .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ==== SEDES CARDS ==== */
/* ==== SEDES CARDS ==== */
.effect-1 {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.hero-slider-ratio {
    aspect-ratio: 16/10;
} /* antes 4/3 */
@media (min-width: 1400px) {
    .hero-slider-ratio {
        aspect-ratio: 16/9;
    } /* en pantallas muy grandes */
}
.hero-slide-img {
    object-fit: cover;
}

/* Imagen */
.sede-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}
.sede-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay */
.effect-1 .effect-text {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 👈 por defecto, contenido abajo */
    align-items: center;
    padding: 1rem;
    text-align: center;
    transition: all 0.35s ease;
    z-index: 2;
}

/* Solo el título se ve inicialmente */
.effect-1 .effect-text h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    opacity: 1;
    transform: translateY(0);
}

/* Descripción y botón ocultos */
.effect-1 .effect-text p,
.effect-1 .effect-btn {
    display: none; /* 👈 completamente ocultos al inicio */
}

/* Hover: más oscuro y centramos todo */
.effect-1:hover .effect-text {
    background: rgba(0, 0, 0, 0.65);
    justify-content: center; /* 👈 centrado vertical */
}

/* Mostrar descripción y botón al hover */
.effect-1:hover .effect-text p,
.effect-1:hover .effect-text .effect-btn {
    display: block;
    opacity: 1;
    transform: translateY(0);
    margin-top: 0.5rem;
}

/* Botón */
.effect-1 .effect-btn .btn {
    background: #fff;
    color: #000;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.effect-1 .effect-btn .btn:hover {
    background: var(--ROJO-PRINCIPAL);
    color: #fff;
}

/* Botón corporativo */
.btn-outline-corporativo {
    border: 2px solid #a41a1a;
    color: #000;
    font-weight: 600;
    font-size: 11pt;
    background-color: transparent;
    transition: all 0.3s ease;
}
.btn-outline-corporativo:hover {
    background: #a41a1a;
    color: #fff;
}

/* Fondo gris claro (si usas .gris en secciones) */
.gris {
    background: #f4f8f6;
}

/* ==== HERO ==== */
.hero-section-small {
    position: relative;
    height: 70vh; /* alto visual cómodo en desktop */
    min-height: 300px;
    background: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1470&q=80")
        center/cover fixed no-repeat;
    display: flex;
    align-items: center; /* centra verticalmente el contenedor interno */
    padding-top: 75px; /* navbar fija */
    color: #fff;
    overflow: hidden;
}
/* Overlay negro */
.hero-section-small::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}
/* Elevar contenido sobre overlay */
.hero-section-small .container {
    position: relative;
    z-index: 1;
}
/* Garantiza altura completa para centrar bien */
.hero-section-small .container,
.hero-section-small .row {
    height: 100%;
}

/* Texto siempre blanco y alineado a la izquierda */
.hero-section-small .hero-content,
.hero-section-small .hero-content h1,
.hero-section-small .hero-content p,
.hero-section-small .hero-content span {
    color: #fff !important;
}
.hero-section-small .hero-content {
    text-align: left;
}

@media (max-width: 767.98px) {
    .navbar {
        box-shadow: none !important;
        border-bottom: 0 !important;
    }
}

/* Tus fuentes y jerarquía (se respetan) */
.p-titulo-base {
    font-family: "TikTok Sans", sans-serif;
    font-weight: 600;
    letter-spacing: 4pt;
    font-size: 10pt;
    margin-bottom: 2px;
    color: #f4f8f6;
}
.title-base {
    font-family: "TikTok Sans", sans-serif;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3pt;
    font-size: 30pt;
    line-height: 1.1;
}

/* ==== CAJAS Y UTILIDADES ==== */
.info-box {
    background-color: #f8f9fa;
    font-size: 12pt;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
}
.map-responsive {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}
.map-responsive iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Complementos (iconos + título) */
.complemento-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}
.servicio-item {
    transition: transform 0.3s ease;
    padding: 0.6rem 1rem;
}
.servicio-item:hover {
    transform: translateY(-5px);
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1199.98px) {
    .title-base {
        font-size: 28pt;
        letter-spacing: 2.5pt;
    }
}
@media (max-width: 991.98px) {
    .hero-section-small {
        height: auto;
        padding-top: 100px;
        padding-bottom: 24px; /* extra por navbar */
    }
    .hero-slider-ratio {
        min-height: 240px;
    }
    .title-base {
        font-size: 26pt;
    }
}
@media (max-width: 575.98px) {
    .hero-slider-ratio {
        min-height: 220px;
    }
    .title-base {
        font-size: 24pt;
        letter-spacing: 2pt;
    }
    .contact-list {
        gap: 0.75rem !important;
    }
}

/* NOTICIA INDIVIDUAL */
.news-card {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    margin-bottom: 25px;
}

.news-card img {
    display: block;
    width: 100%;
    height: clamp(220px, 45vw, 380px);
    object-fit: cover;
}
/* Cita/intro */
.div-quote {
    padding: 10px;
    background-color: #f4f8f6;
    border-left: 3px solid #a41a1a;
    border-radius: 4px;
}

/* Cuerpo de la noticia */
.cuerpo-news {
    padding: 0; /* corregido */
    width: 100%;
    background: transparent; /* quitamos el rojo de debug */
}
.cuerpo-news p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: #090909;
    font-size: 1rem;
}

/* Bloque de meta-información */
.lista-metainfo {
    margin: 0;
}
.lista-metainfo li {
    margin-bottom: 0;
    color: #090909;
    font-size: 11pt;
    font-weight: 600;
}
.lista-metainfo i {
    font-size: 1.2rem;
    color: #a41a1a;
}

/* Barra de compartir */
.bg-base {
    background-color: #a41a1a;
    padding: 10px;
}
#comparte-rrss {
    color: #fff;
}
#comparte-rrss h5 {
    color: #fff;
    font-weight: 900;
    font-size: 15pt;
    margin: 0;
}
.rrss-link {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}
.rrss-link:hover {
    color: #fdd835;
} /* amarillo destaque */
.rrss-icons i {
    display: inline-block;
}

/* Botón outline corporativo (reusado) */
.btn-outline-custom {
    border-color: #a41a1a;
    color: #000;
}
.btn-outline-custom:hover {
    background-color: #a41a1a;
    color: #fff;
}

/* Título lista de “otras noticias” */
.title-last-blog {
    font-weight: 900;
    font-size: 12pt;
    color: #090909;
    text-decoration: none;
}
.title-last-blog:hover {
    color: #a41a1a;
}

.text-muted-1 {
    color: #848383;
    font-weight: 600;
}

/* Tarjetas “te pueden interesar” */
.noticia-card {
    height: 100%;
}
.noticia-card .card-img-top {
    border-radius: 8px;
    overflow: hidden;
}
.noticia-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.noticia-card:hover .noticia-img {
    transform: scale(1.04);
}

/* Responsivo */
@media (max-width: 991.98px) {
    .hero-noticia {
        height: 32vh;
    }
}
@media (max-width: 575.98px) {
    .hero-noticia {
        min-height: 260px;
        height: auto;
        padding: 36px 0;
    }
    #comparte-rrss {
        row-gap: 0.75rem;
    }
}

/*BLOG*/
:root {
    --brand: #a41a1a;
    --nav-h: 60px;
}
@media (max-width: 991.98px) {
    :root {
        --nav-h: 72px;
    }
}

/* ---------- HERO BLOG ---------- */
/* ===== HERO BLOG: ocupar 100% del contenedor (cover) ===== */
.hero-blog {
    position: relative;
    margin-top: 0 !important; /* pegado a la navbar */
    height: 300px; /* ajusta si quieres otro alto */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    /* 🔥 resetea y define un SOLO fondo con cover */
    background: var(--hero-blog-bg, url("/img/bg_blog.jpg")) center center /
        cover no-repeat;

    isolation: isolate; /* el overlay no “tiñe” fuera */
    z-index: 0;
}

/* Overlay de legibilidad */
.hero-blog::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
    pointer-events: none;
}

/* Título centrado y por encima del overlay */
.hero-blog__title {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-weight: 700;
    text-align: center;
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    line-height: 1.15;
    padding: 1rem;
}

/* Opcional: alturas algo menores en pantallas chicas */
@media (max-width: 991.98px) {
    .hero-blog {
        height: 340px;
    }
}
@media (max-width: 575.98px) {
    .hero-blog {
        height: 280px;
    }
}

#blog-categoria-hero.custom-hero-small {
    position: relative;
    margin-top: 0 !important; /* pegado a la navbar fija */
    height: 300px; /* alto en desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate; /* el ::before no tiñe fuera */
    background-color: #111; /* por si la imagen tarda en cargar */
    z-index: 0;
}

/* La <img> llena el contenedor y se recorta lo justo */
#blog-categoria-hero .hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 👈 llena ancho/alto del hero */
    object-position: center center;
    z-index: 0;
    pointer-events: none;
}

/* Overlay para legibilidad */
#blog-categoria-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    z-index: 1;
    pointer-events: none;
}

/* Contenido por encima del overlay */
#blog-categoria-hero .custom-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 0 1rem;
}

/* Responsivo: ajusta alturas si lo prefieres */
@media (max-width: 991.98px) {
    #blog-categoria-hero.custom-hero-small {
        height: 340px;
    }
}
@media (max-width: 575.98px) {
    #blog-categoria-hero.custom-hero-small {
        height: 280px;
    }
}

/* ---------- CONTENEDOR PÁGINA BLOG ---------- */
#blog {
    scroll-margin-top: calc(var(--nav-h) + 10px);
}

/* Paginación (Bootstrap) */
#blog .pagination .page-link {
    color: var(--brand);
    border-color: #dee2e6;
}
#blog .pagination .page-link:hover,
#blog .pagination .page-link:focus {
    color: #fff;
    background-color: var(--brand);
    border-color: var(--brand);
    box-shadow: none;
}
#blog .pagination .page-item.active .page-link {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* List-group (categorías) */
#blog .list-group .list-group-item {
    font-weight: 600;
}
#blog .list-group .list-group-item.active {
    font-weight: 600;
    background-color: var(--brand);
    border-color: var(--brand);
}

/* Botón outline corporativo */
.btn-outline-custom {
    border: 2px solid var(--brand);
    color: #000;
    background: transparent;
    transition: all 0.2s ease-in-out;
}
.btn-outline-custom:hover,
.btn-outline-custom:focus {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: none;
}

/* ---------- LISTADO PRINCIPAL ---------- */
.blog-item {
    display: flex;
    gap: 1rem;
}
.thumb-main {
    width: 180px;
    height: 140px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 6px;
    flex-shrink: 0;
}
.blog-item h4 {
    margin-bottom: 0.35rem;
    color: #090909;
    font-weight: 700;
}
.blog-item p {
    margin: 0;
    color: #303030;
}

/* Ajustes responsive del listado */
@media (max-width: 767.98px) {
    .blog-item {
        flex-direction: column;
    }
    .thumb-main {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}
@media (max-width: 360px) {
    .blog-item h4 {
        font-size: 1.05rem;
    }
}

/* ---------- SIDEBAR ---------- */
.card {
    max-width: 100%;
}
.thumb-side {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}
.title-last-blog {
    display: inline-block;
    line-height: 1.2;
    font-weight: 900;
    font-size: 12pt;
    color: #090909;
    text-decoration: none;
}
.title-last-blog:hover {
    color: var(--brand);
}
.text-muted-1 {
    color: #6c757d;
}

/* Tarjetas “interesar” (hover suave) */
.noticia-mini:hover .thumb-side {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
    .noticia-mini:hover .thumb-side {
        transform: none;
    }
}

/*SERVICIO*/
:root {
    --brand: #a41a1a;
    --nav-h-desktop: 80px;
    --nav-h-mobile: 64px;
}

/* Compensación por navbar fija (como ya tenías) */
body {
    padding-top: var(--nav-h-mobile);
}
@media (min-width: 992px) {
    body {
        padding-top: var(--nav-h-desktop);
    }
}

/* ===========================
   HERO SERVICIO
   =========================== */
.hero-servicio {
    position: relative;
    overflow: hidden;
    color: #fff;
    min-height: clamp(360px, 70vh, 760px);
    height: auto;
    /* separación superior generosa para despegar del header fijo */
    padding: clamp(72px, 8vh, 120px) 0 40px;

    background-attachment: scroll;
}
@media (min-width: 992px) {
    .hero-servicio {
        background-attachment: fixed;
    }
}

/* Contenido del hero */
.hero-content {
    padding: 2rem 1rem;
    text-align: left;
}
@media (max-width: 991.98px) {
    .hero-content {
        text-align: center;
    }
}

/* Títulos y subtítulos (se respetan tus fuentes/colores) */
.title {
    font-family: "TikTok Sans", sans-serif;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3pt;
    font-size: clamp(28px, 4.2vw, 42px);
    line-height: 1.1;
}
.descripcionHero {
    font-family: "TikTok Sans", sans-serif;
    font-weight: 600;
    letter-spacing: 3.4pt;
    font-size: 0.9rem;
    margin-bottom: 3px;
    text-transform: uppercase;
}
.detalleHero {
    margin-top: -22px;
    margin-bottom: 20px;
    font-size: 13pt;
    letter-spacing: 1.2pt;
    font-weight: 600;
    font-family: "TikTok Sans", sans-serif;
}
.hero-servicio {
    /* ya tienes: position:relative; overflow:hidden; color:#fff;
     min-height: clamp(360px, 70vh, 760px); height:auto; padding: ... */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Overlay oscuro (equivalente al gradient que tenías en background) */
.hero-servicio::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    z-index: 0;
}

/* Asegura el contenido por encima del overlay */
.hero-servicio > .container {
    position: relative;
    z-index: 1;
}

/* Conserva tu parallax en desktop */
@media (min-width: 992px) {
    .hero-servicio {
        background-attachment: fixed;
    }
}

/* Botón cotizar en el hero */
.hero-servicio .btn-cotizar {
    border-width: 3px;
    border-radius: 20px;
    font-weight: 700;
    padding: 0.3rem 1.3rem;
    letter-spacing: 0.06em;
}
.hero-servicio .btn-cotizar.btn-outline-light:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Media del hero con relación 16:9 */
.hero-media {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    aspect-ratio: 16/9;
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Fallback si no hay aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
    .hero-media {
        position: relative;
    }
    .hero-media::before {
        content: "";
        display: block;
        padding-top: 56.25%;
    }
    .hero-media > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
@media (max-width: 991.98px) {
    .hero-img-col {
        margin-top: 1.5rem;
    }
}

/* ===========================
   SECCIONES / ESPACIADOS
   =========================== */
.section-spacing {
    padding: 3rem 0;
}
@media (max-width: 768px) {
    .section-spacing {
        padding: 2rem 0;
    }
    .m-4 {
        margin: 1.5rem 0 !important;
    }
}

/* ===========================
   GRID de FEATURES / COMPLEMENTOS
   =========================== */
/* IMPORTANTE: scope a .feature-grid para no tocar todas las .col-lg-2 del sitio */
.feature-grid .feature-item {
    transition: transform 0.3s ease;
    margin-bottom: 0.2rem;
}
.feature-grid .feature-item:hover {
    transform: translateY(-5px);
}
.feature-grid .feature-item img {
    transition: transform 0.3s ease;
}
.feature-grid .feature-item:hover img {
    transform: scale(1.08);
}

/* Breakpoints de columnas */
@media (max-width: 1200px) {
    .feature-grid .col-lg-2 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}
@media (max-width: 992px) {
    .feature-grid .col-lg-2 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}
@media (max-width: 768px) {
    .feature-grid .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (max-width: 576px) {
    .feature-grid .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .feature-grid .feature-item {
        text-align: center;
    }
}

/* ===========================
   UTILIDADES
   =========================== */
.gris {
    background: #f4f8f6;
}

/* Accesibilidad / reduce motion */
@media (prefers-reduced-motion: reduce) {
    .feature-grid .feature-item,
    .feature-grid .feature-item img {
        transition: none;
    }
}
#heroCarousel {
    height: 100%;
    border-radius: 8px;

    overflow: visible; /* <- clave */
}

/* Solo el inner recorta el contenido (no las flechas) */
#heroCarousel .carousel-inner {
    overflow: hidden;
}

/* Volver al comportamiento de Bootstrap (no usar display:flex aquí) */
#heroCarousel .carousel-item {
    display: none;
    background: transparent;
}
#heroCarousel .carousel-item.active,
#heroCarousel .carousel-item-next,
#heroCarousel .carousel-item-prev {
    display: block;
}

/* Alto y centrado del contenido SIN tocar el display */
#heroCarousel .carousel-item .row {
    min-height: clamp(520px, 72vh, 720px);
    align-items: center;
}

/* Imagen de la derecha */
.hero-img-container {
    height: auto;
}
.hero-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}
@media (max-width: 992px) {
    .hero-img {
        max-height: 300px;
    }
}
@media (max-width: 768px) {
    .hero-img {
        max-height: 250px;
    }
}

/* Flechas del HERO (scopeadas y visibles) */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 0.15;
}
#heroCarousel .carousel-control-prev {
    left: calc((100vw - 100%) / -2 + 15px);
}
#heroCarousel .carousel-control-next {
    right: calc((100vw - 100%) / -2 + 15px);
}

/* Hover/Focus */
.hero-section:hover #heroCarousel .carousel-control-prev,
.hero-section:hover #heroCarousel .carousel-control-next,
#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Iconos blancos (SVG de Bootstrap) */
#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

/* Móvil / dispositivos sin hover: más chicos y posiciones correctas */
@media (max-width: 768px), (hover: none) {
    #heroCarousel .carousel-control-prev {
        width: 45px;
        height: 45px;
        opacity: 0.9;
        left: calc((100vw - 100%) / -2 + 10px);
        right: auto;
    }
    #heroCarousel .carousel-control-next {
        width: 45px;
        height: 45px;
        opacity: 0.9;
        right: calc((100vw - 100%) / -2 + 10px);
        left: auto;
    }
}

.textoSlider {
    color: white;
    font-weight: 600;
    font-size: 13pt;
    letter-spacing: 2pt;
}

.tituloSlider {
    color: white;
    font-weight: 900;
    font-size: 30pt;
    margin-top: -12pt;
}

.descripcionSlider {
    color: white;
    font-weight: 600;
    font-size: 14pt;
}

.btn-hero {
    color: white;
    font-weight: 600;
    font-size: 14pt;
}

.hero-section {
    position: relative;
    height: 500px;
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--hero-bg, url("/img/default.jpeg")) center/cover no-repeat;
}

/* Overlay para legibilidad */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    /* antes: rgba(0,0,0,.45) */
    background: rgba(0, 0, 0, 0.68); /* sube el contraste del texto */
    z-index: 0;
}

/* Contenido por encima del overlay y ocupando toda la altura */
.hero-section > .container {
    position: relative;
    z-index: 1;
    height: 100%;
}

/* El carrusel llena el alto del hero */
#heroCarousel,
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    height: 100%;
}

/* Fijamos el alto del row al 100% (anula min-height previos) */
#heroCarousel .carousel-item .row {
    height: 100% !important;
    min-height: 0 !important;
    align-items: center;
}

/* === Imagen derecha con aire arriba/abajo === */
.hero-img-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 18px; /* 👈 separación superior */
    padding-bottom: 18px; /* 👈 separación inferior */
}

.hero-img {
    width: 100%;
    height: 100%; /* ocupa el espacio útil (resta el padding del contenedor) */
    object-fit: cover;
    border-radius: 10px;
}

/* Texto siempre blanco */
.hero-content,
.hero-content h1,
.hero-content p,
.hero-content span {
    color: #fff !important;
}

/* (Opcional) en xs puedes reducir un poco el “aire” si hace falta */
@media (max-width: 575.98px) {
    .hero-img-container {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@media (min-width: 992px) {
    .hero-section {
        height: 500px; /* tu alto actual fijo en desktop */
    }
    .hero-img-container {
        padding-top: 18px;
        padding-bottom: 18px;
    }
    #heroCarousel,
    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item {
        height: 100%;
    }
    #heroCarousel .carousel-item .row {
        height: 100% !important;
        min-height: 0 !important;
        align-items: center;
    }
    .hero-img {
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }
}

/* === 3) Responsive (<992px): liberar alturas para que se vea la imagen === */
@media (max-width: 991.98px) {
    .hero-section {
        height: auto; /* libera el alto para que no recorte */
        min-height: 380px; /* opcional, da “cuerpo” al hero */
        padding-top: 12px;
        padding-bottom: 12px;
    }

    /* libera el alto de todo el carrusel en móvil */
    #heroCarousel,
    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item,
    #heroCarousel .carousel-item .row {
        height: auto !important;
        min-height: 0 !important;
    }

    /* por si quedó algún display:none viejo; fuerza a mostrarse */
    .hero-img-container {
        display: flex !important;
        height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
        align-items: center;
        justify-content: center;
    }

    /* alto razonable para la imagen en móvil */
    .hero-img {
        width: 100%;
        height: 220px; /* puedes subir a 260–300px si quieres */
        max-height: 45vh;
        object-fit: cover;
        border-radius: 10px;
    }
}

.entry-meta small {
    font-weight: 600;
}

/* Botón LEER MÁS */
.btn-leer-mas {
    background-color: transparent;
    color: black;
    border: 2px solid #a41a1a;
    padding: 4px 8px;
    font-size: 10pt;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    display: inline-block;
}

.btn-leer-mas:hover {
    background-color: #a41a1a;
    color: white;
    text-decoration: none;
    border-color: #a41a1a;
}
