/* Styles moved from project root 'style.css' */

/* Custom Color Palette */

:root {
  --primary-blue: #004FA4;
  --secondary-blue: #307BB9;
  --light-blue: #00A6DF;
  --dark-blue: #025585;
  --text-dark: #333333;
  --text-muted: #6c757d;
  --page-gray: #F8F8F8;
  --container-max: 1140px;
}

.parsley-errors-list{
  color: #F00;
  font-size: 12px;
  list-style: none;
  margin: 5px;
  padding: 0px;
  text-align: left;
}


/* Contenedor de la imagen (marco fijo) */
.product-card .product-image{
  height: 330px;            /* ajusta a tu diseño */
  width: 100%;
  background: #fff;         /* opcional */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;         /* evita desbordes */
}

/* Imagen siempre completa (sin recorte) */
.product-card .product-image img{
  width: 100%;
  height: 100%;
  object-fit: contain;      /* CLAVE: no recorta */
  object-position: center;
  display: block;
}















/* General Styles */
* {
  font-family: "Nata Sans" !important;
}

/* WOW.js Animation Styles */
.wow {
  visibility: hidden;
}

.wow.animated {
  visibility: visible;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-dark);
  background-color: var(--page-gray);
  min-height: 100vh;
  position: relative;
}

.row-cols-auto {
  justify-content: space-evenly;
}

/* Use Bootstrap's default container widths (no override) */

/* Header (two-tier) */
  
.site-header {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: transparent;
  padding-top: 1rem;
  transition: padding 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  will-change: padding, background-color;
  width: 100%;
}

.site-header > .container {
  position: relative;
  transition: none;
}

/* Permitir que el menu-bar se expanda fuera del container cuando sticky */
.site-header.is-sticky > .container {
  overflow: visible;
}

.site-header .header-card {
  background: transparent;
  border-radius: 28px;
  overflow: visible;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transition: border-radius 0.2s ease, box-shadow 0.2s ease;
}

/* Compact sticky state - cambiar a fixed para que funcione en páginas largas */
.site-header.is-sticky {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: rgba(248, 248, 248, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding-top: 0;
  padding-bottom: 0;
  backdrop-filter: blur(10px);
  z-index: 1030;
}

/* Agregar espacio después del header cuando está fixed para evitar saltos */
.site-header.is-sticky + * {
  margin-top: 70px;
}

/* Ajuste responsive para el espacio compensatorio */
@media (max-width: 991.98px) {
  .site-header.is-sticky + * {
    margin-top: 60px;
  }
}

.site-header.is-sticky .header-card {
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Ocultar solo el top logo bar, mantener el header-card para el flujo */
.site-header.is-sticky .top-logo-bar {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: 0;
  opacity: 0;
  overflow: hidden;
  border: 0;
  margin: 0 !important;
  transition: all 0.3s ease;
}

/* Show sticky logo when in sticky mode */
.site-header.is-sticky .sticky-logo {
  display: flex !important; /* Mostrar y ocupar espacio */
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s, visibility 0s linear 0s;
  animation: fadeInLeft 0.4s ease-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.top-logo-bar {
  background: #fff;
  transition: all 0.3s ease;
  border-radius: 20px 20px 0px 0px;
}

.top-logo-bar .header-logo {
  height: 56px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-bar {
  background: linear-gradient(90deg, var(--dark-blue) 0%, var(--primary-blue) 100%) !important;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding-left: 0;
  padding-right: 0;
  position: relative;
  z-index: 1050;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  overflow: visible;
}

/* Asegurar que el div interno del menu-bar no se expanda más de lo necesario */
.menu-bar > div {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

/* Row del navbar también visible */
.menu-bar .row {
  overflow: visible;
}

/* Layout de 2 filas en móviles (no sticky) */
@media (max-width: 991.98px) {
  .menu-bar .row {
    flex-wrap: wrap !important;
  }
  
  /* Toggle button a la derecha en la primera fila */
  .menu-bar .col-auto.d-lg-none {
    order: 2;
    margin-left: auto;
  }
  
  /* Logo sticky oculto en modo normal */
  .menu-bar .col-auto:first-child {
    display: none;
  }
  
  /* Menú en segunda fila, full width */
  .menu-bar .col {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
  }
}

/* Sticky Logo - Hidden by default y SIN ocupar espacio */
.sticky-logo {
  opacity: 0;
  transform: translateX(-20px);
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  margin-right: 0;
  padding-left: 1rem;
  display: none; /* No ocupa espacio cuando no está sticky */
  align-items: center;
}

.sticky-logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.sticky-logo:hover .sticky-logo-img {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

a.nav-link, a.nav-link:hover {
  color: #ffffff !important;
}

/* Adjust menu alignment when sticky logo is visible */
.site-header.is-sticky .navbar-collapse .nav {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

/* Compact menu bar when sticky - single thin line full width */
.site-header.is-sticky .menu-bar {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  border-radius: 0 !important;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
  background: linear-gradient(90deg, var(--dark-blue) 0%, var(--primary-blue) 100%) !important;
  transform: translateY(0);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0.9;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Container para centrar el contenido dentro de la barra sticky full width */
.site-header.is-sticky .menu-bar > div {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

/* Asegurar que el row del navbar permita wrap para layout de 2 filas */
.site-header.is-sticky .menu-bar .row {
  flex-wrap: wrap !important;
  align-items: center !important;
  position: relative;
}

/* Logo column - oculta por defecto (solo la que contiene el logo sticky) */
.menu-bar .col-auto:first-child {
  display: none;
}

/* Toggle button column - visible en móviles siempre */
.menu-bar .col-auto.d-lg-none {
  display: flex !important;
}

/* Logo column en sticky - visible y en flujo normal */
.site-header.is-sticky .menu-bar .col-auto:first-child {
  display: flex !important;
  align-items: center;
  flex: 0 0 auto;
  order: 0;
}

/* Toggle button en sticky */
.site-header.is-sticky .menu-bar .col-auto.d-lg-none {
  order: 1;
}

/* Menu column - toma todo el ancho disponible y hace wrap en nueva línea */
.site-header.is-sticky .menu-bar .col {
  flex: 1 1 100%;
  width: 100%;
  order: 2;
}

/* Reduce nav link padding when sticky for thinner appearance */
.site-header.is-sticky .nav-link {
  padding: 0.4rem 0.8rem !important;
  font-size: 0.95rem;
}

/* Smaller logo when sticky */
.site-header.is-sticky .sticky-logo-img {
  height: 35px;
}

/* Toggle button alineado con logo en modo sticky */
.site-header.is-sticky .navbar-toggler {
  padding: 0.4rem 0.65rem;
}

/* Ajustes responsive para mantener el menú sticky en una línea */
/* Tablets y pantallas medianas (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .site-header.is-sticky .nav-link {
    padding: 0.4rem 0.45rem !important;
    font-size: 0.82rem;
  }
  
  .site-header.is-sticky .sticky-logo-img {
    height: 28px;
  }
  
  .site-header.is-sticky .menu-bar > div {
    padding-left: 2.5rem;
  }
}

/* Pantallas pequeñas de tablets (992px - 1023px) */
@media (min-width: 992px) and (max-width: 1023px) {
  .site-header.is-sticky .nav-link {
    padding: 0.4rem 0.5rem !important;
    font-size: 0.85rem;
  }
  
  .site-header.is-sticky .sticky-logo-img {
    height: 30px;
  }
  
  .site-header.is-sticky .menu-bar > div {
    padding-left: 3rem;
  }
}

/* Pantallas grandes (1200px - 1399px) - con columnas de Bootstrap */
@media (min-width: 1200px) and (max-width: 1399px) {
  .site-header.is-sticky .nav-link {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.88rem;
  }
  
  .site-header.is-sticky .sticky-logo-img {
    height: 32px;
  }
  
  .site-header.is-sticky .menu-bar > div {
    padding-left: 3.5rem;
  }
}

/* Pantallas extra grandes (1400px+) - spacing cómodo */
@media (min-width: 1400px) {
  .site-header.is-sticky .nav-link {
    padding: 0.4rem 0.95rem !important;
    font-size: 0.95rem;
  }
  
  .site-header.is-sticky .menu-bar > div {
    padding-left: 4rem;
  }
}

/* Breakpoint específico para iPads y tablets landscape (1024px - 1100px) */
@media (min-width: 1024px) and (max-width: 1100px) {
  .site-header.is-sticky .nav-link {
    padding: 0.4rem 0.5rem !important;
    font-size: 0.85rem;
  }
  
  .site-header.is-sticky .sticky-logo-img {
    height: 30px;
  }
  
  .site-header.is-sticky .menu-bar > div {
    padding-left: 3rem;
  }
}

/* Pantallas entre 1100px y 1199px */
@media (min-width: 1100px) and (max-width: 1199px) {
  .site-header.is-sticky .nav-link {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.88rem;
  }
  
  .site-header.is-sticky .menu-bar > div {
    padding-left: 3.25rem;
  }
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary-blue) !important;
  transform: translateY(-2px);
}

.dropdown-menu {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  z-index: 2000;
  margin-top: .4rem;
}

/* Hero Section */
.hero-section {
  /*position: relative;*/
  min-height: 200px;
  margin-top: 1rem;
  background: url('../../assets/img/slider-01.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  /*overflow: hidden;*/
  background-repeat: no-repeat;
}

.hero-section-productos {
  /*position: relative;*/
  min-height: 200px;
  margin-top: 1rem;
  background: url('../../assets/img/header_Dental.png');
  background-size: cover;
  background-position: 13% 170px;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  /*overflow: hidden;*/
  background-repeat: no-repeat;
}

.hero-section-servicios {
  /*position: relative;*/
  min-height: 300px;
  margin-top: 1rem;
  background: url('../../assets/img/header_Servicios.png');
  background-size: cover;
  background-position: 13% 170px;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  /*overflow: hidden;*/
  background-repeat: no-repeat;
}

.hero-section-licitaciones {
  /*position: relative;*/
  height: 200px !important;
  margin-top: 1rem;
  background: url('../../assets/img/header_Licitaciones.png');
  background-size: cover;
  background-position: 12% center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  /*overflow: hidden;*/
  background-repeat: no-repeat;
}

.hero-section-quienes-somos {
  /*position: relative;*/
  height: 200px !important;
  margin-top: 1rem;
  background: url('../../assets/img/header_Quienes_Somos.png');
  background-size: cover;
  background-position: 12% center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  /*overflow: hidden;*/
  background-repeat: no-repeat;
}


/* Container-width hero variant for index only */

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

.hero-section h1 {
  animation: fadeInUp 1s ease-out;
}

.hero-section .btn {
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Animations */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reveal-on-scroll (opt-in) */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card Styles */

.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
}

/* Brand and Client Logos */

.brand-logo, .client-logo {
  background: white;
  border-radius: 12px;
  transition: all 0.3s ease;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Product listing components */

.section-title {
  font-weight: 800;
  color: var(--dark-blue);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, var(--dark-blue), var(--primary-blue));
  margin-top: .5rem;
}

.product-card {
  background: #ffffff;
  border-radius: 14px;
  /*box-shadow: 0 6px 20px rgba(0,0,0,.08);*/
  overflow: hidden;
  border: 1px solid #eef1f4;
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  /*box-shadow: 0 12px 28px rgba(0,0,0,.12);*/
}

.product-thumb {
  background: #f8fafc;
  padding: 18px;
  border-bottom: 1px solid #eef1f4;
}

.product-body {
  padding: 16px 18px;
}

.btn-outline-primary {
  --bs-btn-color: var(--primary-blue);
  --bs-btn-border-color: var(--primary-blue);
  --bs-btn-hover-bg: var(--primary-blue);
  --bs-btn-hover-border-color: var(--primary-blue);
  --bs-btn-active-bg: var(--dark-blue);
  --bs-btn-active-border-color: var(--dark-blue);
  border-radius: 12px;
  padding: .35rem .9rem;
}

.brand-logo:hover, .client-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.brand-logo img, .client-logo img {
  max-width: 100%;
  height: auto;
  filter: grayscale(30%);
  transition: all 0.3s ease;
}

.brand-logo:hover img, .client-logo:hover img {
  filter: grayscale(0%);
}

/* Button Styles */

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  border: none;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 102, 178, 0.4);
}

.btn-light {
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-light:hover {
  background-color: #f8f9fa;
  color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-dark {
  background-color: var(--primary-blue);
  color: #fff !important;
}

.btn-dark:hover {
  background-color: var(--dark-blue);
}

/* Section Backgrounds */

.bg-light {
  background-color: #f8f9fa !important;
}

.bg-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)) !important;
}

.bg-dark {
  background: var(--dark-blue) !important;
}

/* Text Styles */

.text-primary {
  color: var(--primary-blue) !important;
}

.text-dark {
  color: var(--dark-blue) !important;
}

.text-info {
  color: var(--light-blue) !important;
}

.display-2, .display-4, .display-5, .display-6 {
  font-weight: 700;
}

/* Rounded Styles */

.rounded-4 {
  border-radius: 1.5rem !important;
}

/* Shadow Styles */

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Footer Styles */

footer {
  background: transparent !important;
}

footer a {
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--secondary-blue) !important;
  transform: scale(1.1);
}

/* Navbar Toggle Button - White Icon y centrado verticalmente */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  margin-left: auto;
}

.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%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.5rem;
  height: 1.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

/* Contenedor del navbar para alinear elementos verticalmente */
.menu-bar > div > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* Navbar collapse dentro de la columna */
.site-header.is-sticky .navbar-collapse {
  justify-content: center;
}

/* Menú interno */
.site-header.is-sticky .nav {
  flex-wrap: nowrap !important;
  white-space: nowrap;
  justify-content: center;
  gap: 0;
}

/* Ajustar dropdowns en modo sticky */
.site-header.is-sticky .dropdown-toggle::after {
  margin-left: 0.25rem;
  font-size: 0.7rem;
}

.site-header.is-sticky .nav-item {
  flex-shrink: 0;
}

/* Responsive Styles */

/* Large screens - better logo sizing y layout en línea */
@media (min-width: 992px) {
  .sticky-logo {
    margin-right: 2rem;
  }
  
  .sticky-logo-img {
    height: 45px;
  }
  
  /* Ocultar toggle button en pantallas grandes */
  .menu-bar .col-auto.d-lg-none {
    display: none !important;
  }
  
  /* En pantallas grandes, logo y menú en una sola fila */
  .site-header.is-sticky .menu-bar .row {
    flex-wrap: nowrap !important;
  }
  
  .site-header.is-sticky .menu-bar .col {
    flex: 1 1 auto;
    order: 0 !important;
  }
  
  /* Toggle button oculto, no afecta el order */
  .site-header.is-sticky .menu-bar .col-auto:first-child {
    order: 0 !important;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .display-4, .display-5, .display-6 {
    font-size: 2rem;
  }
}

/* Mobile Menu - Display in Columns (Vertical Stack) */
@media (max-width: 991.98px) {
  /* Padding adecuado en container-fluid para móviles */
  .menu-bar > .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Asegurar que el row no tenga overflow */
  .menu-bar .row {
    overflow: visible !important;
  }
  
  /* Toggle button visible y clickeable */
  .navbar-toggler {
    z-index: 1100;
    position: relative;
  }
  
  /* Navbar collapse - estilo para modo normal (no sticky) */
  .navbar-collapse {
    background: linear-gradient(90deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    padding: 1rem;
    margin-top: 0.5rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0 0 12px 12px;
  }
  
  .navbar-collapse .nav {
    flex-direction: column !important;
    width: 100%;
  }
  
  .nav-item {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .nav-link {
    display: block !important;
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-item:last-child .nav-link {
    border-bottom: none;
  }
  
  .dropdown-menu {
    background: rgba(0, 50, 90, 0.95) !important;
    border: none;
    box-shadow: none;
    width: 100%;
    margin-left: 1rem;
    backdrop-filter: blur(5px);
  }
  
  .dropdown-item {
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 0.5rem 1rem;
    font-weight: 500;
  }
  
  .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
  }
  
  .dropdown-item:active {
    background: rgba(255, 255, 255, 0.25) !important;
  }
  
  /* Smaller sticky logo on mobile */
  .sticky-logo-img {
    height: 32px;
  }
  
  .sticky-logo {
    margin-right: 0.5rem;
  }
  
  /* Even more compact sticky on mobile */
  .site-header.is-sticky .sticky-logo-img {
    height: 28px;
  }
  
  .site-header.is-sticky .menu-bar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    overflow: visible !important;
  }
  
  /* En móvil, layout de 2 filas: Logo+Toggle / Menu */
  .site-header.is-sticky .menu-bar > div {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .site-header.is-sticky .menu-bar .row {
    overflow: visible !important;
    flex-wrap: wrap !important;
  }
  
  /* Mantener órdenes en sticky móvil */
  .site-header.is-sticky .menu-bar .col-auto:first-child {
    order: 0 !important;
  }
  
  .site-header.is-sticky .menu-bar .col-auto.d-lg-none {
    order: 1 !important;
  }
  
  .site-header.is-sticky .menu-bar .col {
    order: 2 !important;
  }
  
  /* Menu móvil sticky - full width en segunda fila */
  .site-header.is-sticky .navbar-collapse {
    padding: 1rem !important;
    margin-top: 0.5rem;
    margin-left: 0;
    margin-right: 0;
    border-radius: 8px !important;
  }
  
  .site-header.is-sticky .navbar-collapse .nav {
    width: 100%;
  }
  
  .site-header.is-sticky .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .site-header.is-sticky .dropdown-menu {
    margin-left: 0;
    border-radius: 8px !important;
  }
}

/* Section Padding */

section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

/* Minimum Height Helper */

.min-vh-50 {
  min-height: 50vh;
}

/* Loading Animation */

.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Utility Classes */

.text-uppercase {
  letter-spacing: 2px;
  font-weight: 600;
}

/* Icon Styles */

.bi {
  vertical-align: middle;
}

/* Footer card styles */

.site-footer .footer-card {
  background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

/* Highlight card section (white rounded box over gray background) */

.highlight-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 2rem 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.site-footer hr {
  border-color: rgba(255,255,255,.25);
  opacity: .6 !important;
}

/* --- CARD PRINCIPAL --- */

.product-card {
  border: none;
  border-radius: 24px;
  overflow: hidden;
  background: var(--page-gray);
  /*box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);*/
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  /*box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);*/
}

/* --- Fila 1: IMAGEN --- */

.product-image {
  padding: 16px;
  background: #fff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* --- Fila 2: INFORMACIÓN --- */

.product-info {
  background: #fff;
  padding: 20px 24px;
  border-bottom-right-radius: 40px;
  border-bottom-right-radius: 40px;
}

.subtitle {
  color: #999;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.title {
  color: #003A79;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  line-height: 1.3;
}

/* --- Fila 3: BASE DIVIDIDA --- */

.product-base {
  display: flex;
  width: 100%;
  height: 70px;
}

/* 50% IZQUIERDA */

.left-curve {
  flex: 1;
  background: #fff;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 40px;
}

/* 50% DERECHA */

.right-footer {
  flex: 1;
  background: var(--page-gray);
  border-top-left-radius: 40px;
  border-bottom-right-radius: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- BOTÓN --- */

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #003A79;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.btn-more .icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #003A79;
  line-height: 19px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  margin-right: 4px;
}

.btn-more:hover {
  transform: translateY(-2px);
  color: #002b5c;
}

.btn-more:hover .icon {
  border-color: #002b5c;
}

  /* Controles dentro de toda el área del slide */
  #carouselExample .inner-controls {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    pointer-events: none; /* importante: deja clickeable solo los botones */
  }

  #carouselExample .inner-controls button {
    pointer-events: auto; /* para que SÍ funcionen los botones */
    background: rgba(0,0,0,0.35);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #carouselExample .inner-controls button:hover {
    background: rgba(0,0,0,0.55);
  }
  .carousel .container {
      padding-left:clamp(50px,2vw, 150px);
  }



  /* =========================
   MEGAMED: ALTURA EXACTA UNIFICADA (FORZADA)
   Pegar al FINAL del styles.css
   ========================= */

  :root{
    /* Ajusta SOLO este valor para subir/bajar todos los banners */
    --mm-hero-h: clamp(160px, 28vw, 180px);
  }

  /* Todos los banners tipo hero (incluye Contacto) */
  :is(
    .hero-section,
    .hero-section-productos,
    .hero-section-servicios,
    .hero-section-licitaciones,
    .hero-section-quienes-somos,
    .hero-section-contacto
  ){
    height: var(--mm-hero-h) !important;   /* altura EXACTA */
    min-height: 0 !important;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;                   /* centra vertical */
    padding: 2.5rem 1.25rem;
  }

  /* Overlay y contenido (para los que lo usan) */
  :is(
    .hero-section,
    .hero-section-productos,
    .hero-section-servicios,
    .hero-section-licitaciones,
    .hero-section-quienes-somos
  ) .hero-overlay{
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  :is(
    .hero-section,
    .hero-section-productos,
    .hero-section-servicios,
    .hero-section-licitaciones,
    .hero-section-quienes-somos
  ) .hero-content{
    position: relative;
    z-index: 1;
    width: 100%;
  }

  /* Licitaciones y Quienes Somos traen min-vh-50: lo neutralizamos */
  .hero-section-licitaciones .min-vh-50,
  .hero-section-quienes-somos .min-vh-50{
    min-height: 0 !important;
  }

  /* INICIO (slider): asegura altura idéntica */
  #carouselExample,
  #carouselExample .carousel-inner,
  #carouselExample .carousel-item{
    height: var(--mm-hero-h) !important;
    min-height: 0 !important;
  }
  #carouselExample .carousel-item > .hero-section{
    height: var(--mm-hero-h) !important;
    min-height: 0 !important;
  }

  /* Reduce márgenes que inflan visualmente */
  :is(
    .hero-section,
    .hero-section-productos,
    .hero-section-servicios,
    .hero-section-licitaciones,
    .hero-section-quienes-somos,
    .hero-section-contacto
  ) h1,
  :is(
    .hero-section,
    .hero-section-productos,
    .hero-section-servicios,
    .hero-section-licitaciones,
    .hero-section-quienes-somos,
    .hero-section-contacto
  ) h6{
    margin-bottom: .75rem !important;
    line-height: 1.05;
  }

  /* CONTACTO: el "banner" visible es el panel blanco, lo estiramos */
  .hero-section-contacto .bg-white.shadow-sm.rounded-4{
    width: 100%;
    height: var(--mm-hero-h) !important;
    display: flex;
    align-items: center;
  }
