/***************Paleta de Colores Corporativos***************/
:root {
  --azul-50: #f0faff;
  --azul-100: #e0f3fe;
  --azul-200: #bae9fd;
  --azul-300: #7cd9fd;
  --azul-400: #37c6f9;
  --azul-500: #0dafea;
  --azul-600: #0198d7;
  --azul-700: #0270a2;
  --azul-800: #065f86;
  --azul-900: #0b4f6f;
  --azul-950: #083249;
}

/***************Home***************/
body {
  background-color: var(--azul-50);
}

.navbar {
  background: var(--azul-300);
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  background: var(--azul-100);
  padding: 15px 35px 15px 25px;
  border-radius: 0 50px 50px 0;
  margin: 0;
  display: flex;
  align-items: center;
  order: 1;
}

.navbar-brand img {
  max-width: 150px;
  height: auto;
}

.navbar-collapse {
  justify-content: flex-start;
  order: 2;
  flex-grow: 0;
  margin-right: auto;
}

.navbar-nav {
  flex-direction: row;
  align-items: center;
  padding: 0 20px;
  margin: 0;
}

.navbar-nav .nav-item {
  position: relative;
  margin: 0 3px;
}

.navbar-nav .nav-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%) skewX(-12deg);
  width: 1px;
  height: 20px;
  background: linear-gradient(to bottom, transparent, #cbd5e1, transparent);
}

.navbar-nav .nav-link {
  color: var(--azul-950);
  font-weight: 500;
  font-size: 13px;
  padding: 25px 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e88e5, #42a5f5);
  border-radius: 3px 3px 0 0;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #1e88e5;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-nav .dropdown-menu {
  background-color: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  margin-top: 0;
  padding: 8px 0;
}

.navbar-nav .dropdown-item {
  color: #475569;
  padding: 12px 24px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.navbar-nav .dropdown-item:hover {
  background-color: #f1f5f9;
  color: #1e88e5;
  padding-left: 28px;
}

img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.intro {
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  justify-content: center;
  margin: 2%;
  margin-left: 12%;
  margin-right: 12%;
}

h1 {
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}

.carousel-item {
  background-color: #f5f5f5; /* Fondo gris claro para los espacios vacíos */
  height: 450px;
}

.carousel-item img {
  width: 100%;
  height: 450px;
  min-height: 350px; /* Altura mínima para imágenes pequeñas */
  object-fit: scale-down; /* Escala la imagen manteniendo proporciones pero llenando más espacio */
}

.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 100px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4); /* Fondo gris traslúcido */
  border-radius: 8px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.6);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.container {
  margin-top: 20px;
}

/***************Productos Showcase (Zigzag)***************/
.productos-showcase {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.producto-row {
  display: flex;
  align-items: stretch;
  gap: 30px;
  margin-bottom: 40px;
}

.producto-row.reverse {
  flex-direction: row-reverse;
}

.producto-imagen {
  flex: 1;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.producto-imagen img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.producto-texto {
  flex: 1.2;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.producto-texto h2 {
  color: var(--azul-500);
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 700;
}

.producto-texto p {
  color: #555;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.btn-producto {
  display: inline-block;
  background: linear-gradient(135deg, var(--azul-500) 0%, var(--azul-600) 100%);
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.btn-producto:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(13, 175, 234, 0.4);
  color: #ffffff;
  text-decoration: none;
}

/* Responsive Zigzag */
@media (max-width: 768px) {
  .producto-row,
  .producto-row.reverse {
    flex-direction: column;
  }

  .producto-imagen img {
    min-height: 220px;
  }

  .producto-texto {
    padding: 30px 25px;
  }

  .producto-texto h2 {
    font-size: 24px;
  }

  .producto-texto p {
    font-size: 15px;
  }
}

.banner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  padding: 30px 20px;
  background: transparent;
  flex-wrap: wrap;
}

.banner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--azul-100);
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  padding: 25px 20px;
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  color: #333;
  font-size: 18px;
}

.banner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  border-color: #1e88e5;
}

.banner-item img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.banner-item i {
  font-size: 24px;
  margin-bottom: 10px;
}

.follow-us {
  text-align: center;
  margin-top: 30px;
}
.social-icons {
  list-style: none;
  padding: 0;
}
.social-icons li {
  display: inline-block;
  margin-right: 10px;
}
.social-icons li:last-child {
  margin-right: 0;
}
.social-icons a {
  display: block;
  width: 50px;
  height: 50px;
  text-align: center;
  color: #fff;
  line-height: 30px;
  border-radius: 50%;
}

/***************Navbar Mobile***************/
@media (max-width: 991px) {
  .navbar {
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .navbar-brand {
    padding: 10px 25px 10px 20px;
    border-radius: 0 50px 50px 0;
    order: 1;
    margin-right: auto;
    margin-left: 0;
  }

  .navbar-brand img {
    max-width: 120px;
  }

  .navbar-toggler {
    background-color: #f1f5f9;
    border: 2px solid #333;
    border-radius: 10px;
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    margin-left: auto;
    order: 2;
    transition: all 0.3s ease;
  }

  .navbar-toggler:hover {
    background-color: #e2e8f0;
  }

  .navbar-toggler-icon {
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23475569' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    order: 3;
    width: 100%;
  }

  .navbar-nav {
    flex-direction: column;
    width: 100%;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border: none;
    margin: 0;
  }

  .navbar-nav .nav-item {
    margin: 2px 0;
    width: 100%;
    text-align: center;
  }

  .navbar-nav .nav-item:not(:last-child)::after {
    display: none;
  }

  .navbar-nav .nav-link {
    padding: 15px 20px;
    display: block;
    color: #475569;
    border-radius: 10px;
    transition: all 0.2s ease;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background-color: #f1f5f9;
    color: #1e88e5;
  }

  .navbar-nav .dropdown-menu {
    text-align: center;
    background-color: #f8f9fa;
    border: none;
    box-shadow: none;
    border-radius: 10px;
    margin: 5px 0;
  }

  .navbar-nav .dropdown-item {
    color: #475569;
    padding: 12px 20px;
  }

  .navbar-nav .dropdown-item:hover {
    background-color: #e2e8f0;
    color: #1e88e5;
  }
}

/***************Nosotros***************/
.nosotros-showcase {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.nosotros-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

.nosotros-card.principal {
  text-align: center;
}

.nosotros-card h1 {
  color: var(--azul-500);
  font-size: 36px;
  margin-bottom: 25px;
  font-weight: 700;
}

.nosotros-card h2 {
  color: var(--azul-500);
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 700;
}

.nosotros-card p {
  color: #555;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.mision-vision-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.mision-vision-container .nosotros-card {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .mision-vision-container {
    grid-template-columns: 1fr;
  }

  .nosotros-card {
    padding: 30px 25px;
  }

  .nosotros-card h1 {
    font-size: 28px;
  }

  .nosotros-card h2 {
    font-size: 24px;
  }
}

/***************Páginas de Productos***************/
.pagina-producto {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.pagina-producto h1 {
  color: var(--azul-500);
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
}

.pagina-producto .descripcion-producto {
  color: #555;
  font-size: 18px;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 40px;
}

.productos-grid {
  background: #ffffff;
  border-radius: 20px;
  padding: 60px 40px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-text {
  color: #999;
  font-size: 18px;
  font-style: italic;
}

@media (max-width: 768px) {
  .pagina-producto h1 {
    font-size: 32px;
  }

  .pagina-producto .descripcion-producto {
    font-size: 16px;
  }

  .productos-grid {
    padding: 40px 20px;
  }
}

/* Móviles pequeños */
@media (max-width: 320px) {
  .logo {
    margin-top: 25%;
    margin-bottom: 10%;
  }
  h1 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1rem;
  }
  .intro p {
    font-size: 16px;
  }
}

/* Móviles */
@media (min-width: 321px) and (max-width: 480px) {
  .logo {
    margin-top: 20%;
    margin-bottom: 8%;
  }
  h1 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  .intro p {
    font-size: 19px;
  }
}

/* Carrusel responsive */
@media (max-width: 480px) {
  .carousel-item,
  .carousel-item img {
    height: 220px;
    min-height: 180px;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .carousel-item,
  .carousel-item img {
    height: 300px;
    min-height: 250px;
  }
}

/* Flechas del carrusel en móviles */
@media (max-width: 576px) {
  .carousel-control-prev,
  .carousel-control-next {
    width: 35px;
    height: 60px;
    border-radius: 5px;
  }

  .carousel-control-prev {
    left: 5px;
  }

  .carousel-control-next {
    right: 5px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 16px;
    height: 16px;
  }
}

/* Banner Mobile - Diseño horizontal compacto */
@media (max-width: 600px) {
  .banner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 15px;
  }

  .banner-item {
    flex-direction: row;
    width: 100%;
    max-width: 320px;
    min-width: unset;
    padding: 15px 20px;
    gap: 15px;
    text-align: left;
    font-size: 15px;
  }

  .banner-item img {
    width: 45px;
    height: 45px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .banner-item p {
    margin: 0;
    line-height: 1.3;
  }
}

/* Tablets - Grid 2x2 centrado */
@media (min-width: 601px) and (max-width: 767px) {
  .banner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 25px 20px;
    max-width: 500px;
    margin: 0 auto;
  }

  .banner-item {
    max-width: none;
    min-width: unset;
    padding: 20px 15px;
    font-size: 14px;
  }

  .banner-item img {
    width: 50px;
    height: 50px;
  }
}

/* Desktops pequeños */
@media (min-width: 768px) and (max-width: 991px) {
  .logo {
    margin-top: 15%;
    margin-bottom: 6%;
  }
  h1 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  .intro p {
    font-size: 20px;
  }
  .carousel-item img {
    height: 450px;
  }
}

/* Desktops grandes */
@media (min-width: 992px) and (max-width: 1024px) {
  .logo {
    margin-top: 8%;
    margin-bottom: 4%;
  }
  .intro p {
    font-size: 30px;
  }
}

@media (min-width: 1025px) {
  .logo {
    margin-top: 0%;
    margin-bottom: 0%;
  }
  .intro p {
    font-size: 30px;
  }
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
