

body {
    padding-top: 0.1px;
}

.navbar-transparent {
    height: 150px; 
    background: linear-gradient(to bottom, rgba(0, 66, 119, 0.95), rgba(0, 66, 119, 0.6), transparent);
}

#hero.hero {
position: relative;
width: 100%;
background: #000;
overflow: hidden;            /* evita que se vea algo por fuera */
min-height: 100dvh;   
}
#hero .hero-swiper {
width: 100%;
height: 100%; 
max-height: 880px;
 min-height: inherit;  
}
/* Cada slide ocupa todo el alto del hero */
#hero .swiper-slide {
position: relative;
width: 100%;
height: 100%;
}
/* Imagen de fondo por slide */
.hero-slide-img {
position: absolute;
inset: 0;
height: 100%;
object-fit: cover;
object-position: center;
z-index: 1;
}
/* Capa oscura para legibilidad del texto */
#hero .swiper-slide::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.55) 100%);
z-index: 2;
}
/* Contenido centrado */
.hero-content {
position: relative;
z-index: 3;
min-height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
color: #fff;
padding: 2rem 1rem;
}
.hero-content h2 {
font-weight: 800;
letter-spacing: 0.2px;
text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-content p {
font-size: clamp(1rem, 2.5vw, 1.25rem);
opacity: 0.95;
}
.hero-content .btn {
background-color: #0b3d68;
padding: 0.75rem 1.25rem;
border-radius: 15px;
border: none;
font-weight: bold;
box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.hero-content .btn:hover {
background-color: #0f538f;
}


/* Swiper controles */
#hero .swiper-button-next,
#hero .swiper-button-prev {
color: #ffffff;
width: 52px;
height: 52px;
border-radius: 999px;
background: rgba(255,255,255,0.12);
backdrop-filter: blur(4px);
transition: background .2s ease;
}
#hero .swiper-button-next:hover,
#hero .swiper-button-prev:hover { background: rgba(255,255,255,0.22); }
#hero .swiper-button-next:after,
#hero .swiper-button-prev:after { font-size: 20px; }


#hero .swiper-pagination-bullets .swiper-pagination-bullet {
background: rgba(255,255,255,0.8);
opacity: 0.7;
}
#hero .swiper-pagination-bullet-active { opacity: 1; }

@supports (height: 100svh) {
  #hero.hero { min-height: 100svh; }
}

/* si quieres que también en desktop siempre sea pantalla completa */
@media (min-width: 992px) {
  #hero .hero-swiper { height: 100%; }
}

/* Responsive */
@media (max-width: 992px) {
#hero .hero-swiper { height: 75vh; }
}
@media (max-width: 576px) {
#hero .hero-swiper { height: 65vh; }
.hero-content h2 { font-size: 1.5rem; }
.hero-content p {
  margin-bottom: 20px;
}
}

/* (Opcional) Ajustes para mostrar logos dentro del hero */
.cert-logos img { height: 80px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.35)); }
@media (max-width: 576px) { .cert-logos img { height: 56px; } }

#hero.hero { position: relative; background:#000; overflow: clip; }
#hero .hero-swiper { width:100%; height:min(85vh, 880px); max-height:880px; }
#hero .swiper-slide { position:relative; width:100%; height:100%; }
.hero-slide-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; z-index:1; }
#hero .swiper-slide::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.55)); z-index:2; }
.hero-content { position:relative; z-index:3; min-height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; color:#fff; padding:2rem 1rem; }
#hero .swiper-button-next, #hero .swiper-button-prev { color:#fff; width:52px; height:52px; border-radius:999px; background:rgba(255,255,255,.12); backdrop-filter:blur(4px); }
#hero .swiper-button-next:hover, #hero .swiper-button-prev:hover { background:rgba(255,255,255,.22); }


/* --- Carousel Section --- */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-content-wrapper {
    display: flex;
    align-items: center;
    max-width: 900px; 
    overflow: visible;
}


.slide-circle-image {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    flex-shrink: 0; 
    border: 8px solid white; 
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    z-index: 2; 
}

.slide-circle-image:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  border: 8px solid #0b3d68;
}

.slide-text-box {
    background-color: rgba(255, 255, 255, 0.95); 
    padding: 30px 30px 30px 60px; 
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 550px;
    margin-left: -40px;
}

/* --- Carousel Indicators --- */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.4);
  background-size: 60% 60%;
  border-radius: 50%;
  padding: 20px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  background-color: #0b3d68;
}


/* --- Tarjetas Section --- */

.info-cards-container {
    display: flex;
    justify-content: center;
    gap: 30px; 
    flex-wrap: wrap; 
    margin-bottom: 100px; 
}

.info-card {
    position: relative; 
    background-color: #0b3d68; 
    color: white;
    width: 260px;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    padding-bottom: 275px; 
    transition: transform 0.3s ease-in-out;
}

.info-card:hover {
    transform: scale(1.05); 
    cursor: pointer; 
    }

.info-card h3 {
    font-size: 2rem;
    font-weight: bold;
    min-height: 60px; 
    margin-bottom: 20px;
}

.card-image-circle {
    position: absolute;
    width: 225px;
    height: 225px;
    border-radius: 50%; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    left: 50%;
    transform: translateX(-50%); 
    bottom: 15px;  
}

.card-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* capa azul para el tinte */
.card-image-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 61, 104, 0); /* transparente inicialmente */
  transition: background 0.25s ease;
  z-index: 1;
}

/* texto centrado oculto por defecto */
.card-image-circle .hover-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
  padding: 0 12px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none; /* para no bloquear el hover */
  z-index: 2;
}

/* al pasar el mouse: tinte azul + texto visible */
.info-card:hover .card-image-circle::after,
.info-card:focus-within .card-image-circle::after {
  background: rgba(11, 61, 104, 0.55);
}
.info-card:hover .card-image-circle .hover-text,
.info-card:focus-within .card-image-circle .hover-text {
  opacity: 1;
}

.feature-title {
    background-color: var(--edeltec-blue);
    color: white;
    padding: 1.5rem 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 0 0 18px 18px;
}

.info-cards-container .info-card {
    border-radius: 10px 10px 150px 150px;
}

/* Badge cuadrado (por encima de la imagen circular grande) */
.card-badge-sqr {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 70px;          /* ajusta tamaño a gusto */
    height: 70px;  /* borde naranjo */        /* mismo radio que el mockup */
    box-sizing: border-box;      /* que el borde no cambie el tamaño visual */
    overflow: hidden;
    background: #fff;     /* marco blanco */
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    z-index: 2;
    display: grid;
    place-items: center;
}

.card-badge-sqr img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* o 'contain' si tu logo tiene fondo transparente */
}



/* --- Catalog Section --- */
.catalog-panel {
    background-color: #004277;
    color: #f0f0f0;
}

.catalog-item {
    padding: 60px 30px;
    min-height: 300px; 
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.catalog-container-bordered {
    height: 400px;
    border: 2px solid #0b3d68; 
    border-radius: 15px;      
    overflow: hidden;     
}

.catalog-item:hover {
    transform: scale(1.03); 
    cursor: pointer;
}

.catalog-title-panel {
    background-color: #0b3d68; 
    color: rgb(255, 255, 255);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px; 
}

.catalog-option-panel {
    background-color: white;
    position: relative; 
    padding: 40px;
    min-height: 400px;
    display: flex;
    flex-direction: column; 
    align-items: flex-start; 
    justify-content: center;  
    overflow: hidden; 
    transition: transform 0.3s ease-in-out;
}

.catalog-option-panel:hover {
    transform: scale(1.03); 
    cursor: pointer;
    z-index: 2;
}

.catalog-content {
    position: relative;
    z-index: 2; 
}

.catalog-decoration-img {
    position: absolute;
    left: 60%;
    transform: translateX(-50%);
    max-height: 100%; 
    width: auto;
    z-index: 1; 
    opacity: 0.8; 
}

/* Contenedor único con dos columnas */
.catalog-duo{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(16px, 4vw, 40px);
  padding: clamp(24px, 5vw, 64px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
}

/* Las “imágenes separadoras” ahora viven como pseudo-elementos del contenedor */
.catalog-duo::before,
.catalog-duo::after{
  content: "";
  position: absolute;
  top: -25%;
  bottom: -25%;
  width: 65%;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none; /* no bloquea clics */
}

/* Izquierda: usa tu imagen 1 */
.catalog-duo::before{
  left: -10%;
  background-image: url("../img/home/plan_b.1311aab13c8c.jpg");
  background-position: left center;
}

/* Derecha: usa tu imagen 2 */
.catalog-duo::after{
  right: -10%;
  background-image: url("../img/home/plan_b2.d88913c0c4b9.jpg");
  background-position: right center;
}

/* Z-index para que el texto/botón queden arriba de las decoraciones */
.catalog-duo__side{
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Responsivo: apila en móviles y baja la intensidad de las decoraciones */
@media (max-width: 991.98px){
  .catalog-duo{
    grid-template-columns: 1fr;
  }
  .catalog-duo::before,
  .catalog-duo::after{
    opacity: .25;
  }
}

/* Si ya no necesitas las decoraciones anteriores, desactívalas */
.catalog-duo::before,
.catalog-duo::after{
  content: none;
}

/* Fondo con la segunda imagen */
.catalog-duo{
  background-image: url("../img/home/catalogo_c.fae61883716f.jpg");
  background-repeat: no-repeat;
  background-position: right top;     /* ajusta según te guste */
  background-size: cover;             /* o: 1400px auto; */
}

@media (max-width: 991.98px){
  .catalog-duo{
    background-position: center bottom;
    background-size: contain;         /* evita recortes en móvil */
  }
}


/* --- Clientes Section --- */
/* móvil: mitad del ancho del contenedor */
.clientes-logo { max-height: 80px; width: auto; }

@media (max-width: 991.98px) {
  .clientes-logo { max-width: 60%;  }
}

@media (min-width: 992px){
  .clientes-logo{
    filter: grayscale(100%);
    transition: filter .25s ease-in-out;
  }
  .clientes-logo:hover{
    filter: none; /* recupera color */
  }
}

/* --- Media Query para Dispositivos Móviles --- */
@media (max-width: 768px) {

    .carousel-item {
        height: auto; 
        padding: 20px 0;
        flex-direction: column; 
        align-items: center; 
    }

    .slide-content-wrapper {
        flex-direction: column; 
        max-width: 90%;
    }

    .slide-circle-image {
        width: 180px; 
        height: 180px;
        border-width: 4px;
        margin-bottom: 20px; 
    }

    .slide-text-box {
        margin-left: 0;
        margin-top: 0;  
        max-width: 100%;
        padding: 20px;
        text-align: center; 
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
    }

    .slide-text-box h2 {
        font-size: 1.5rem; 
    }

    .slide-text-box p {
        font-size: 1rem;
    }

    .slide-text-box .btn {
        font-size: 0.9rem;
        padding: 8px 20px;
    }

    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none; 
    }

    /* --- Tarjetas de Información --- */
    .info-cards-container {
        display: block; 
        padding: 20px;
        margin-bottom: 0;
    }

    .info-card {
        width: 82.5%;
        margin: 20px auto; 
        padding-bottom: 300px; 
        border-radius: 15px 15px 400px 400px !important; 
    }

    .info-card h3 {
        font-size: 2rem;
        min-height: auto; 
    }

    .card-image-circle {
        width: 250px;
        height: 250px;
        bottom: 15px;
    }

    /* --- Carrusel de Logos de Clientes --- */
    


   
}


/* Ajusta esta altura al tamaño del logo Karmac que quieras igualar */
:root { --logo-h: 80px; }

.clientes-logo{
  height: var(--logo-h);   /* todas iguales en alto */
  width: auto;             /* mantiene proporción */
  object-fit: contain;     /* no recorta */
  display: block;
}


/* base en gris */
.clientes-logo{
  filter: grayscale(1) brightness(.8);
  transition: filter .35s ease, transform .35s ease;
  will-change: filter, transform;
}

/* logo “encendido” */
.clientes-logo.is-active{
  filter: none;
  transform: scale(1.02);
}

/* accesibilidad */
@media (prefers-reduced-motion: reduce){
  .clientes-logo{ transition: none; }
}

.catalog-duo{
  --bg-w: 480px;         /* tamaño de la imagen de fondo */
  --bg-x: right -80px;    /* posición horizontal, admite negativos */
  --bg-y: top -40px;  

  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 4vw, 48px);
  align-items: start;
  padding: clamp(24px, 5vw, 100px);
  min-height: 480px;      
  background-color: #fff;         
  background-image: url("../img/home/catalogo_c_v.2.6c26b6f19353.jpg");
  background-repeat: no-repeat; 
  background-position: center; 
  background-size: cover; 
  border-radius: 0;                 /* evita cortar el diseño */
  overflow: visible;                /* no recortar */
  isolation: isolate;               /* texto siempre por encima */
}

.catalog-duo__side{
  position: relative;
  z-index: 1;
  text-align: center;
}

@media (max-width: 991.98px){
  .catalog-duo{
    grid-template-columns: 1fr;
    min-height: 520px;
    /* Ajustes móviles del fondo */
    --bg-w: 900px;
    --bg-x: center;
    --bg-y: 40px;
    padding-bottom: 120px;          /* para que no tape el texto de abajo */
  }
}

.catalog-duo__side{ 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: .75rem;              /* separa título y botón */
  margin-top: 70px;
}



/* En móvil se apilan, así que quita el empuje */
@media (max-width: 991.98px){
  .catalog-duo__side--right{ margin-top: 0; }
  .catalog-duo__side{ margin-top: 60px; }
}

/* 2) No permitas que Bootstrap meta padding-right al abrir el modal */
body.modal-open { padding-right: 0 !important; }

.modal-open .fixed-top,
.modal-open .sticky-top,
.modal-open .navbar { 
  padding-right: 0 !important;
  margin-right: 0 !important;
}