/* ============================= */
/* ESTILOS GLOBALES */
/* ============================= */
body {
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}
h1, h2, h3 {
  font-family: 'Libre Baskerville', serif;
}
ul {
  padding-left: 20px;
}

.responsive-img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border-radius: 8px;
}

.oculto {
  margin: 0;
  padding: 0;
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* ============================= */
/* POPUP DE NOTIFICACIÓN */
/* ============================= */
.popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  border-radius: 5px;
  color: #333;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease, top 0.5s ease;
}

.popup.show {
  display: block;
}

.popup.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.popup.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.popup.fade-in {
  opacity: 1;
  top: 40px;
}

.popup.fade-out {
  opacity: 0;
  top: 20px;
}

/* ============================= */
/* NAVBAR / HEADER */
/* ============================= */
.navbar {
  position: relative;
  top: 0;
  width: 100%;
  background: #4A6695;
  z-index: 1000;
}

.container {
  max-width: 960px;
  margin: auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-container{
  max-width: 1200px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: bold;
  font-size: 1.6rem;
}

.logo img {
  height: 100px;
  width: auto;
  border-radius: 5px;
  border: solid;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
}

/* ============================= */
/* INICIO / HERO */
/* ============================= */
.hero {
  padding: 0;
  margin-bottom: 0;
  background: #f9f9f9;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
  gap: 40px;
}

.hero-text {
  flex: 1 1 500px;
  min-width: 300px;
}

.hero-text .h2-inicio {
  font-size: 2.5rem;
  color: #000;
  margin-bottom: 20px;
}

.hero-text h2 {
  margin-top: 20px;
}

.hero-image {
  flex: 1 1 500px;
  min-width: 300px;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ============================= */
/* SERVICIOS */
/* ============================= */
#servicios {
  padding: 60px 40px;
  background: #f0f0f0;
  width: 100%;
  box-sizing: border-box;
}

#servicios h2 {
  text-align: center;
  color: #000;
  margin-bottom: 40px;
  font-size: 2rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.servicios-grid a{
  text-decoration: none;
}
.servicio {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 30px;
  border-radius: 10px;
  gap: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.servicio .icono {
  font-size: 50px;
  flex-shrink: 0;
  margin-top: 5px;
}

.servicio.dark {
  background-color: #4A6695;
  color: #f9f9f9;
  cursor: pointer;
}

.servicio.dark .icono {
  color: white;
}

.servicio.claro {
  background-color: #f9f9f9;
  color: #333;
  cursor: pointer;
}

.servicio.claro .icono {
  color: #4A6695;
}

.servicio h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
}

.servicio p {
  margin: 0;
  line-height: 1.5;
}

/* ============================= */
/* NOSOTROS */
/* ============================= */
#nosotros {
  padding: 60px 20px;
  background: #f9f9f9;
  width: 100%;
  box-sizing: border-box;
}

#nosotros h2 {
  text-align: center;
  color: #000;
  font-size: 2rem;
  margin-bottom: 40px;
}

.nosotros-contenido {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
}

.nosotros-texto {
  flex: 1 1 500px;
  min-width: 300px;
  font-size: 1.2rem;
  line-height: 1.6;
}

.nosotros-texto strong {
  font-size: 1.4rem;
  display: block;
  margin: 1rem 0;
}

.nosotros-imagen {
  flex: 1 1 400px;
  min-width: 250px;
  text-align: center;
}

.nosotros-imagen img {
  max-width: 75%;
  height: auto;
  border-radius: 10px;
}

/* ============================= */
/* SLIDER */
/* ============================= */
.slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  max-width: 1200px;
  margin: auto;
}

.slides {
  display: flex;
  transition: transform 0.3s ease;
}

.slide {
  flex: 0 0 20%;
  box-sizing: border-box;
  padding: 5px;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.controls button {
  pointer-events: all;
  background-color: rgba(0,0,0,0);
  border: none;
  color: white;
  font-size: 3rem;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
}

.indicator-bar {
  display: flex;
  justify-content: center;
  margin: 10px;
}

.indicator {
  width: 40px;
  height: 6px;
  background-color: #ccc;
  margin: 0 5px;
  border-radius: 2px;
  transition: background-color 0.3s;
  cursor: pointer;
}

.indicator.active {
  background-color: #4a6695;
}

/* ============================= */
/* CONTACTO */
/* ============================= */
.contacto {
  background: #f0f0f0;
  padding: 30px 0;
}

section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
  background: #f9f9f9;
  margin-bottom: 20px;
  border-radius: 10px;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

form button {
  padding: 10px 20px;
  margin-bottom: 10px;
  background: #4A6695;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background: #003366;
}

iframe {
  width: 100%;
  height: 300px;
  border: none;
  margin-top: 20px;
}

/* ============================= */
/* BOTONES FLOTANTES / WHATSAPP */
/* ============================= */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.fab {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #4A6695;
  color: white;
  font-size: 24px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab:hover {
  background-color: #003366;
  transform: scale(1.1);
}
.fab:active, #scrollToTop:active {
  background-color: #4A6695;
}
#scrollToTop {
  display: none;
}

.fab.whatsapp i {
  font-size: 30px !important;
  display: flex !important;
  background-color: #25D366;
  color: white;
}

.fab.whatsapp:hover {
  background-color: #1ebe5d;
}

/* ============================= */
/* FOOTER */
/* ============================= */
footer {
  text-align: center;
  padding: 20px;
  background: #4A6695;
  color: white;
}

/* ============================= */
/* MEDIA QUERIES (RESPONSIVE) */
/* ============================= */
@media (max-width: 768px) {
  .hero-content,
  .nosotros-contenido {
    /* flex-direction: column; */
    padding: 50px 20px 30px;
    text-align: center;
  }

  .hero-text,
  .hero-image,
  .nosotros-texto {
    text-align: center;
  }

  .hero-text ul{
    list-style-type: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #4A6695;
    padding-bottom: 10px;
    flex-direction: column;
    display: none;
  }

  .nav-menu.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }

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

  section {
    padding: 20px;
    margin: 0px 10px;
  }

  form button {
    width: 100%;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .servicio {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .servicio .icono {
    margin: 0 0 10px 0;
  }

  .servicios-grid a:nth-child(3) {
    order: 4;
  }

  .servicios-grid a:nth-child(4) {
    order: 3;
  }
  #nosotros h2 {
    margin-bottom: 0px;
  }
}
@media (max-width: 576px) {
  .navbar-container{
    padding-right: 20px;
  }
  .nosotros-imagen img {
    max-width: 100%;
  }
}

.slide {
  flex: 0 0 calc(100% / 5); 
}
@media (max-width: 1200px) {
  .slide {
    flex: 0 0 calc(100% / 4);
  }
}

@media (max-width: 979px) {
  .slide {
    flex: 0 0 calc(100% / 3);
  }
}

@media (max-width: 600px) {
  .slide {
    flex: 0 0 calc(100% / 2);
  }
}
