/* === ESTILO CORPORATIVO INMECSUTEC === */
:root {
  --azul-principal: #002244;
  --celeste-suave: #d0eaff;
  --celeste: #a7d2f9;
  --celeste-intenso: #6aaee3;
  --fondo-gris: #f0f2f5;
  --blanco: #ffffff;
  --sombra: rgba(0, 0, 0, 0.1);
}

/* === VIDEO DE FONDO (si se usa) === */
#background-video {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  object-fit: cover;
}

/* === BASE GENERAL === */
body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--fondo-gris);
  color: #333;
  margin: 0;
  padding: 0;
}

/* ========== ENCABEZADO ========== */
header {
  background-color: var(--azul-principal);
  color: var(--blanco);
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px var(--sombra);
}

header .logo img {
  max-height: 60px;
}

nav {
  margin-top: 10px;
}

nav a {
  color: var(--blanco);
  margin: 0 12px;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

nav a:hover,
nav a.active {
  background-color: var(--celeste-intenso);
}

/* ========== CONTENIDO ========== */
main {
  max-width: 1100px;
  margin: 30px auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  box-shadow: 0 2px 6px var(--sombra);
}

h1, h2 {
  color: var(--azul-principal);
  margin-bottom: 15px;
  text-align: center;
}

/* === BLOQUES DESTACADOS - FONDOS TRANSPARENTES === */
.card {
  background-color: rgba(255, 255, 255, 0.55); /* fondo blanco con transparencia */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 6px var(--sombra);
  margin-bottom: 30px;
}

.resaltado {
  background-color: rgba(80, 131, 173, 0.7); /* celeste con transparencia */
  border: 1px solid var(--celeste-intenso);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 1px 4px var(--sombra);
}


/* ========== PIE DE PÁGINA ========== */
footer {
  background-color: var(--azul-principal);
  color: var(--blanco);
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9rem;
  margin-top: 60px;
}

/* ========== SERVICIOS: CARRUSEL HORIZONTAL ========== */
.servicios-horizontal {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 15px 5px;
  scroll-behavior: smooth;
}

.servicios-horizontal::-webkit-scrollbar {
  height: 8px;
}
.servicios-horizontal::-webkit-scrollbar-thumb {
  background-color: var(--celeste-intenso);
  border-radius: 4px;
}

/* === CUADRO DE SERVICIO === */
.cuadro-servicio {
  background-color: var(--celeste);
  border: 2px solid var(--celeste-intenso);
  border-radius: 10px;
  min-width: 260px;
  max-width: 300px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 2px 8px var(--sombra);
  transition: transform 0.3s;
}

.cuadro-servicio:hover {
  transform: scale(1.04);
}

/* === TITULO DEL SERVICIO === */
.titulo-servicio {
  font-weight: bold;
  background-color: var(--celeste-intenso);
  color: var(--blanco);
  padding: 12px 10px;
  border-radius: 10px 10px 0 0;
  font-size: 0.92rem;
  text-align: center;
  text-transform: uppercase;
}

/* ========== GRÁFICOS Y ESTADÍSTICAS ========== */
.graficos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.grafico-barras,
.graficos-circulares {
  flex: 1 1 400px;
  max-width: 420px;
}

.grafico-barras img,
.graficos-circulares img {
  width: 100%;
  border-radius: 6px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.grafico-barras img:hover,
.graficos-circulares img:hover {
  transform: scale(1.58);
  cursor: zoom-in;
}

/* ========== CARRUSEL DE IMÁGENES ========== */
.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--celeste-suave);
  padding: 15px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 30px;
}

.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.carousel__item {
  flex: 0 0 200px;
  height: 200px;
  background-color: #799bff;
  border-radius: 8px;
  box-shadow: 0 2px 6px var(--sombra);
  transition: transform 0.3s;
}

.carousel__item:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Botones del carrusel */
.carousel__btn {
  background-color: #326bde;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 12px;
  font-weight: bold;
  cursor: pointer;
}

.carousel__btn:hover {
  background-color: #264db4;
}

/* ========== MODAL DE IMAGEN ========== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  text-align: center;
}

.modal-imagen {
  max-width: 90%;
  max-height: 80vh;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px #fff;
}

.modal .cerrar {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* ========== CUADRO DE SERVICIO CON DETALLE HOVER ========== */
.cuadro-servicio-hover {
  position: relative;
  width: 260px;
  background-color: #a7d2f9;
  border: 2px solid #6aaee3;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 6px var(--sombra);
}

.cuadro-servicio-hover:hover {
  transform: scale(1.03);
}

.cuadro-servicio-hover .titulo-servicio {
  padding: 15px;
  font-weight: bold;
  font-size: 0.9rem;
  color: #002244;
  background-color: transparent;
  cursor: pointer;
}

.cuadro-servicio-hover .hover-detalle {
  position: absolute;
  top: -290px;
  left: 0;
  width: 260px;
  background-color: #e7f4fc;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: all 0.3s ease;
  z-index: 99;
}

.cuadro-servicio-hover:hover .hover-detalle {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hover-detalle img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.hover-detalle p {
  font-size: 0.82rem;
  color: #002244;
  text-align: justify;
  margin: 0;
  max-height: 140px;
  overflow-y: auto;
}

/* ========== BOTÓN AGENDAR VISITA ========== */
.btn-agendar {
  background-color: #002244;
  color: white;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 25px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s;
}
.btn-agendar:hover {
  background-color: #6aaee3;
  color: #002244;
}

/* ========== LISTAS CON TEXTO ========== */
.descripcion-detallada {
  font-size: 0.9rem;
  color: #222;
  line-height: 1.5;
}

.descripcion-detallada ul {
  padding-left: 20px;
  margin-top: 10px;
}

.descripcion-detallada ul li {
  list-style: disc;
  margin-bottom: 6px;
}


/* === PROMOCIONES INTERNAS === */
.promociones {
  width: 100%;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.promo-container {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.promo-track {
  display: flex;
  transition: transform 0.6s ease;
  width: 100%;
}

.promo-slide {
  flex: 0 0 100%;
  height: 280px;
  position: relative;
}

.promo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  padding: 10px 14px;
  font-size: 32px;
  cursor: pointer;
  z-index: 2;
}

.promo-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.promo-btn.prev { left: 10px; }
.promo-btn.next { right: 10px; }


/* Modal fondo oscuro */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

/* Contenedor del contenido del modal */
.modal-contenido {
  background-color: #f4f8ff;
  margin: 5% auto;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Botón cerrar */
.cerrar {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.cerrar:hover {
  color: red;
}

/* Formulario ordenado en 2 columnas */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Inputs estilo limpio */
.form-grid input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.btn-agendar {
  background-color: #3056d3;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-agendar:hover {
  background-color: #1d3cb2;
}
