/*
Theme Name: 3MB Solutions
Theme URI: https://example.com
Author: César + ChatGPT
Description: Homepage tipo landing con Bootstrap 5 y Font Awesome.
Version: 1.0
Text Domain: bmb
*/

/* =========================
   Variables de color
   ========================= */
:root {
  --azul: #0d3a66;
  --azul-osc: #0b2f52;
  --gris: #f4f6f8;
}

/* =========================
   Base
   ========================= */
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
}

/* =========================
   Topbar (fecha + redes)
   ========================= */
.topbar {
  background: var(--azul);
  color: #fff;
  font-size: .875rem;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  margin-left: .75rem;
}

.topbar a:hover { opacity: .85; }

/* =========================
   Header (logo + banner)
   ========================= */
.header-wrap { padding: .75rem 0; }

/* =========================
   Banner superior (widget)
   ========================= */
.banner-widget {
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Imagen del banner: ocupa todo el ancho disponible */
.banner-widget img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: contain;   /* usa 'cover' si deseas llenar aunque recorte */
  margin: 0 auto;
  border-radius: .25rem;
  max-height: 140px;     /* controla altura visible en desktop */
}

@media (max-width: 768px) {
  .banner-widget img { max-height: 100px; }
}

/* =========================
   Tiras y títulos de sección
   ========================= */
.section-title {
  color: #004A99;
  font-weight: 700;
  letter-spacing: .5px;
  padding: .6rem 1rem;
  text-transform: uppercase;
  font-size:2em;
}

.lead-strap {
  background: var(--azul-osc);
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: .85rem 1rem;
  font-size:1.75em;

    
}

/* =========================
   Servicios (tarjetas + iconos)
   ========================= */
.services .service-card {
  border: 0;
  border-radius: .75rem;
  box-shadow: 0 6px 15px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.services .service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

/* Franja superior */
.services .top-strip {
  background: var(--azul);
  height: 40px;
  border-top-left-radius: .75rem;
  border-top-right-radius: .75rem;
}

/* Imagen destacada centrada */
.services .service-img {
  width: 100%;
  height: 160px;         /* ajusta si deseas más/menos alto */
  object-fit: cover;
  border-radius: .5rem;
  border: 4px solid #fff;
  margin-top: -30px;     /* superpuesta sobre la franja */
}

/* Íconos de servicios: tamaño y efecto */
.services .fa-stack {        /* controla tamaño global del icono */
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: .25rem;
}

.services .fa-stack i {      /* garantiza que el <i> herede el tamaño */
  font-size: inherit;
  transition: transform .3s ease;
}

.services .service-card:hover .fa-stack i { transform: scale(1.15); }

/* Título dentro de la tarjeta de servicio (evita afectar otros h3) */
.services .card h3 { font-size: 1.5em !important; }

/* =========================
   Foto fija + Misión/Visión
   ========================= */
.fixed-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: .5rem;
}

.mision-vision .card { height: 100%; }

/* =========================
   Bloque destacado (texto + foto por ID)
   ========================= */
.featured-block img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: .5rem;
}

/* =========================
   Mapa / imágenes de mapa
   ========================= */
.map img,
.map iframe {
  width: 100%;
  border: 0;
  border-radius: .5rem;
}

/* =========================
   Footer
   ========================= */
.footer {
  background: #0b1d2a;
  color: #fff;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer .contact a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

/* =========================
   Utilidades
   ========================= */
.badge-blue { background: var(--azul); }


.small, small {
    font-size:1.25em;
    font-weight:bold;
    color:#82c0e5;
}
/* Transición base del carousel */
#homeCarousel .carousel-item {
  transition: opacity .9s ease-in-out, transform .9s ease-in-out;
}

/* Fade de Bootstrap + ligero zoom elegante */
#homeCarousel.carousel-fade .carousel-item {
  opacity: 0;
  transform: scale(1.02);
}

#homeCarousel.carousel-fade .carousel-item.active,
#homeCarousel.carousel-fade .carousel-item-start.active,
#homeCarousel.carousel-fade .carousel-item-next,
#homeCarousel.carousel-fade .carousel-item-prev {
  opacity: 1;
  transform: scale(1);
}

/* Imagen con transición propia para que el zoom sea más suave aún */
#homeCarousel .carousel-item img {
  transition: transform 8s ease-out;
}

#homeCarousel .carousel-item.active img {
  transform: scale(1.05); /* efecto Ken Burns ligerito */
}

#homeCarousel .carousel-caption {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}

#homeCarousel .carousel-item.active .carousel-caption {
  opacity: 1;
  transform: translateY(0);
}
/* ===== Slider 3MB - Animación elegante ===== */

#homeCarousel {
  overflow: hidden;
}

/* Transición base entre slides */
#homeCarousel .carousel-item {
  transition: opacity .9s ease-in-out, transform .9s ease-in-out;
}

/* Fade + ligero zoom */
#homeCarousel.carousel-fade .carousel-item {
  opacity: 0;
  transform: scale(1.02);
}

#homeCarousel.carousel-fade .carousel-item.active,
#homeCarousel.carousel-fade .carousel-item-start.active,
#homeCarousel.carousel-fade .carousel-item-next,
#homeCarousel.carousel-fade .carousel-item-prev {
  opacity: 1;
  transform: scale(1);
}

/* Ken Burns suave en la imagen */
#homeCarousel .carousel-item img {
  transition: transform 10s ease-out;
  transform-origin: center center;
}

#homeCarousel .carousel-item.active img {
  transform: scale(1.06);
}

/* Caption elegante: aparece con fade + subida suave */
#homeCarousel .carousel-caption {
  text-align: left;
  left: 8%;
  right: auto;
  bottom: 18%;
  max-width: 520px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity .6s ease-out .2s, transform .6s ease-out .2s;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
}

#homeCarousel .carousel-item.active .carousel-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Tipografía y colores del caption */
#homeCarousel .carousel-caption h5 {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

#homeCarousel .carousel-caption p {
  font-size: 1rem;
}

/* Fondo degradado suave para mejorar legibilidad del texto */
#homeCarousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 30%,
    rgba(0,0,0,0.05) 70%,
    transparent 100%
  );
  pointer-events: none;
}

/* Controles más visibles sobre fondos claros */
#homeCarousel .carousel-control-prev-icon,
#homeCarousel .carousel-control-next-icon {
  filter: drop-shadow(0 0 4px rgba(0,0,0,.8));
}

/* Responsive: centra caption en pantallas chicas */
@media (max-width: 767.98px) {
  #homeCarousel .carousel-caption {
    left: 10%;
    right: 10%;
    bottom: 12%;
    text-align: center;
    max-width: 100%;
  }

  #homeCarousel .carousel-caption h5 {
    font-size: 1.4rem;
  }

  #homeCarousel .carousel-caption p {
    font-size: .9rem;
  }
}

/* ================================
   BLOQUE MISIÓN / VISIÓN 3MB
   ================================ */

.mv-section {
  background: radial-gradient(circle at top left, #f8fafc 0, #eef2f7 30%, #e5ebf4 70%, #dde4f0 100%);
}

.mv-photo-wrapper {
  display: flex;
  align-items: stretch;
}

.mv-photo-wrapper .fixed-photo,
.mv-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .25);
}

/* Tarjetas M/V */
.mv-card {
  position: relative;
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem 1.6rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}

/* Línea superior de acento */
.mv-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #facc15, #f97316);
}

/* Icono circular */
.mv-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  box-shadow: 0 8px 18px rgba(250, 204, 21, .55);
}

/* Variantes por tarjeta (por si quieres cambiar colores después) */
.mv-card-mision .mv-icon-wrap {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
  box-shadow: 0 8px 18px rgba(34, 197, 94, .55);
}

.mv-card-vision .mv-icon-wrap {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #0b1220;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .55);
}

/* Título */
.mv-title {
  font-size: 0.95rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0;
}

/* Texto */
.mv-text p {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #0f172a;
}

/* Nota al pie */
.mv-footer-note {
  font-size: 0.9rem;
  color: #475569;
  border-left: 3px solid #facc15;
  padding-left: 0.75rem;
}

/* Hover ligero en desktop */
@media (hover: hover) and (pointer: fine) {
  .mv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.20);
    transition: transform .2s ease-out, box-shadow .2s ease-out;
  }
}

/* Responsive */
@media (max-width: 991.98px) {
  .mv-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .mv-photo-wrapper {
    margin-bottom: 0.75rem;
  }
}

/* ================================
   ENCABEZADO "Sobre Nosotros"
   ================================ */

.mv-section-header {
  max-width: 720px;
  margin-bottom: 0.25rem;
}

.mv-section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.mv-section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.35rem;
}

.mv-section-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5563;
  max-width: 560px;
}

/* Responsive ajuste */
@media (max-width: 768px) {
  .mv-section-title {
    font-size: 1.6rem;
  }
  .mv-section-subtitle {
    font-size: 0.9rem;
  }
}

/* ================================
   M/V CARDS - COLORES CORPORATIVOS 3MB
   ================================ */

/* Línea superior corporativa */
.mv-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #004A99, #0075C9, #33C1FF);
}

/* Iconos circulares con gradiente corporativo */
.mv-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #004A99, #33C1FF);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  box-shadow: 0 8px 18px rgba(0, 117, 201, .45); /* sombra azul */
}

/* Variantes por tarjeta (mismo estilo, diferente dirección de gradiente opcional) */
.mv-card-mision .mv-icon-wrap {
  background: linear-gradient(135deg, #0075C9, #004A99);
  box-shadow: 0 8px 18px rgba(0, 74, 153, .45);
}

.mv-card-vision .mv-icon-wrap {
  background: linear-gradient(135deg, #33C1FF, #0075C9);
  box-shadow: 0 8px 18px rgba(51, 193, 255, .45);
}

/* Texto de título */
.mv-title {
  font-size: 0.95rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #004A99; /* azul corporativo */
  margin: 0;
}

/* Texto descripción */
.mv-text p {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #0f172a;
}

/* Nota corporativa */
.mv-footer-note {
  font-size: 1rem;
  color: #004A99;
  border-left: 3px solid #33C1FF;
  padding-left: 0.75rem;
  font-weight:bold;
  
}

.services .card h3 {
    font-size: 1.3em !important;
    margin-top: -1.5em;
}

/* ===============================================
   ICONOS FONT AWESOME CORPORATIVOS (GLOBAL)
   =============================================== */

/* Color base */
.fa,
.fas,
.far,
.fal,
.fad,
.fab {
  color: #004A99; /* azul oscuro del logo */
}

/* Variación principal con gradiente en texto */
.icon-gradient {
  background: linear-gradient(135deg, #004A99, #0075C9, #33C1FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Íconos dentro de círculos */
.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, #004A99, #33C1FF);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 8px 20px rgba(0, 74, 153, .35);
}

/*** ÍCONOS DE SERVICIOS ***/
.service-card .fa-stack,
.service-card i.fa,
.service-card i.fas {
  font-size: 2.2rem;
  background: linear-gradient(135deg, #004A99, #0075C9, #33C1FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/*** ÍCONOS DE MISIÓN / VISIÓN ***/
.mv-icon-wrap i {
  font-size: 1.4rem;
}

/* Que todos los íconos tengan coherencia visual */
.icon-corporate {
  background: linear-gradient(135deg, #004A99, #33C1FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hover elegante */
@media (hover:hover) {
  .icon-circle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 26px rgba(0, 74, 153, .45);
    transition: .25s ease;
  }
  .service-card i:hover {
    filter: brightness(1.25);
    transition: .25s ease;
  }
}

.direccion {
    text-align:center;
}