@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic&display=swap');

@font-face {
  font-family: 'Open Sans Italic';
  src: url('OpenSans-Italic.ttf') format('truetype');
  font-style: italic;
}

body {
  font-family: 'Open Sans', sans-serif; 
  font-size: 16px;
  margin: 0;
  padding: 0;
  background-color: #171717;
  overflow-x: hidden;
}

header {
  background-color: #171717;
  padding: 0.15rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0.125rem;
  position: relative;
  border-bottom: 1px solid #F0F0F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: 'Open Sans', sans-serif; 
}

.logo-container {
  flex: 1;
  display: flex;
  align-items: center;
}

.logo-container .logo-image {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}

/* Hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 1rem;
  z-index: 11;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background-color: #ffffff;
  margin: 4px 0;
  transition: 0.4s;
}

.header-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: absolute;
  top: 35%;
  right: 1%;
  font-size: 1.2rem;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0 1.5rem;
  padding: 0;
  align-items: center;
}

header nav ul li {
  position: relative;
  display: flex;
  align-items: center;
}

header nav ul li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 400;
  transition: color 0.3s ease;
  display: inline-block;
}

header nav ul li a:hover {
  color: #007BFF;
}

header nav ul li a.nav-contacto {
  background-color: #FFD700 !important;
  color: #000 !important;
  padding: 8px 16px !important;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(255, 215, 0, 0.25);
}

header nav ul li a.nav-contacto:hover {
  background-color: #FFC700 !important;
  color: #000 !important;
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
  transform: translateY(-1px);
}

header nav ul li:hover > ul.dropdown {
  display: block;
}

header nav ul .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 25%;
  transform: translateX(-50%);
  background-color: rgb(85, 84, 84);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  list-style: none;
  border-radius: 0.5rem;
  overflow: hidden;
  z-index: 10;
  min-width: 160px;
}

header nav ul .dropdown li {
  padding: 0.5rem 1.5rem;
  transition: background-color 0.3s ease;
}

header nav ul .dropdown li:hover {
  background-color: #505050;
}

.column ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.column li {
  color: rgb(98, 98, 98);
  font-family: Italic_Raleway, sans-serif;
  font-style: italic;
}

.container {
  display: flex;
  flex-direction: column;
  padding: 0.2rem;
}

.container h2 {
  display: flex;
  justify-content: center;
  font-size: 2rem;
  letter-spacing: 0.25rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .header-container {
    position: static;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .header-container ul {
    display: none;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #171717;
    border-top: 1px solid #333;
  }

  .header-container ul.show {
    display: flex;
  }

  .header-container ul li {
    width: 100%;
  }

  .header-container ul li a {
    padding: 1rem;
    display: block;
    width: 100%;
  }

  .header-container ul .dropdown {
    position: static;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    background-color: #2c2c2c;
    padding: 0;
  }

  .header-container ul li:hover > .dropdown {
    display: block;
  }

  .header-container ul .dropdown li a {
    padding-left: 2rem;
  }
}

/* Espacio de soluciones */
/* Código base (tu código actual) */
.solutions-container {
  padding: 2rem;
  text-align: center;
  color: #ddd;
}

.solutions-container h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #eee;
  font-family: 'Open Sans', sans-serif; 
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.grid-item {
  text-decoration: none;
}

.solution-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 300px;
  background-size: cover;
  background-position: center;
  color: #eee;
  padding: 1rem;
  border: 2px solid #555;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.solution-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* overlay para mejor contraste */
  z-index: 1;
}

.tile-logo,
.solution-tile h3,
.solution-tile p {
  position: relative;
  z-index: 2;
}

.tile-logo {
  height: 100%;
  width: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.solution-tile h3,
.solution-tile p {
  margin: 0;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 0.5rem;
  border-radius: 5px;
  text-align: center;
  margin-top: 0.5rem;
  color: #eee;
}

/* Efectos hover con sombra de color */
.column-1 .solution-tile:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(252, 209, 22, 0.8);
  border-color: #FCD116;
}

.column-2 .solution-tile:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 56, 168, 0.8);
  border-color: #0038A8;
}

.column-3 .solution-tile:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(206, 17, 38, 0.8);
  border-color: #CE1126;
}

/* --- Media Queries para responsividad --- */

/* Tablets y pantallas medianas */
@media (max-width: 900px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .solution-tile {
    height: 250px;
  }
  .solution-tile h3,
  .solution-tile p {
    font-size: 0.9rem;
  }
}

/* Móviles y pantallas pequeñas */
@media (max-width: 600px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
  .solution-tile {
    height: 220px;
  }
  .solution-tile h3,
  .solution-tile p {
    font-size: 0.85rem;
  }
}


/* Estilo para el footer */

footer {
  background-color: #2c2c2c;
  padding: 2rem 1rem;
  color: #bbb;
  font-family: 'Segoe UI', sans-serif;
}

.main-footer {
  background-color: #121212;
  color: #ffffff;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.footer-brand {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand img {
  height: 90px;
  margin-bottom: 0.3rem;
}

.company-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #f0f0f0;
  margin: 0;
}

.footer-links,
.footer-contact {
  flex: 1 1 200px;
  min-width: 180px;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #ffcc00;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 0.3rem;
}

.footer-links ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links ul li a:hover {
  color: #007bff;
}

.footer-contact p {
  margin: 0.3rem 0;
  line-height: 1.4;
  color: #ddd;
  font-size: 1rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #888;
}

/* Responsive */

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-brand,
  .footer-links,
  .footer-contact {
    flex: none;
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}

.footer-links ul li a,
.footer-contact a {
  color: #f9c74f; /* Un amarillo cálido y amigable */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-contact a:hover {
  color: #f9844a; /* Naranja suave para el hover */
  text-decoration: underline;
}


/* Burbuja flotante de WhatsApp */

.whatsapp-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  background-image: url('../images/whatsapp.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1000;
  animation: bubble-float 4s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.whatsapp-bubble:hover {
  transform: scale(1.1);
}


@keyframes bubble-float {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-15px, -10px); }
  50%  { transform: translate(15px, -20px); }
  75%  { transform: translate(-10px, 10px); }
  100% { transform: translate(0, 0); }
}
