/* ----------------------------
   Reset y tipografía
---------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  scroll-behavior: smooth;
  background: #f4f4f4;
}

/* ----------------------------
   Variables de color
---------------------------- */
:root {
  --color-azul: #0033a0;
  --color-rojo: #e30613;
  --color-blanco: #ffffff;
  --color-gris: #f4f4f4;
  --color-footer: #111827;
}

/* ----------------------------
   Contenedores
---------------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ----------------------------
   Header
---------------------------- */
header {
  background: var(--color-blanco);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo img {
  height: 160px;
}

nav {
  position: relative;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 25px;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--color-azul);
  font-weight: 900;
  transition: color 0.3s;
  font-size: 19px;
}

.nav-menu li a:hover {
  color: var(--color-rojo);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: var(--color-azul);
  border-radius: 3px;
}

/* ----------------------------
   Slider
---------------------------- */
.slider {
  position: relative;
  overflow: hidden;
  height: 80vh;
}

.slides {
  height: 100%;
  position: relative;
}

.slide {
  min-width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-blanco);
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.slide-content h2 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.slide-content p {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--color-rojo);
  color: var(--color-blanco);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn:hover {
  background: var(--color-azul);
  transform: scale(1.05);
}

/* Slider controls */
.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
  box-sizing: border-box;
}

.slider-controls span {
  font-size: 2rem;
  color: var(--color-blanco);
  cursor: pointer;
  user-select: none;
  transition: color 0.3s;
}

.slider-controls span:hover {
  color: var(--color-rojo);
}

/* ----------------------------
   Secciones y Cards
---------------------------- */
.servicios {
  padding: 60px 0;
  background: var(--color-gris);
  text-align: center;
}

.servicios h2 {
  margin-bottom: 40px;
  color: var(--color-azul);
  font-size: 2.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  background: var(--color-blanco);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card i {
  margin-bottom: 15px;
  color: var(--color-rojo);
}

.card h3 {
  color: var(--color-azul);
  margin-bottom: 15px;
}

/* ----------------------------
   Formularios
---------------------------- */
.form-section {
  padding: 60px 0;
  text-align: center;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-blanco);
  padding: 30px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.form-section h2 {
  margin-bottom: 30px;
  color: var(--color-azul);
  font-size: 2.5rem;
}

form {
  display: flex;
  flex-direction: column;
}

form input,
form textarea {
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 50px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: all 0.3s;
  width: 100%;
  background: #f9f9f9;
}

form textarea {
  min-height: 120px;
  resize: none;
}

form input:focus,
form textarea:focus {
  border-color: var(--color-rojo);
  outline: none;
  box-shadow: 0 0 8px rgba(227, 6, 19, 0.5);
  background: #fff;
}

form .btn {
  background: var(--color-rojo);
  color: var(--color-blanco);
  border-radius: 50px;
  font-weight: 600;
  padding: 15px 0;
  font-size: 1.1rem;
  transition: all 0.3s;
}

form .btn:hover {
  background: var(--color-azul);
  transform: scale(1.05);
}

/* ----------------------------
   Mapa
---------------------------- */
.map-section {
  padding: 60px 0;
  text-align: center;
}

.map-section iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 15px;
}

/* ----------------------------
   Footer
---------------------------- */
footer {
  background: var(--color-footer);
  color: var(--color-blanco);
  padding: 50px 0 20px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 20px;
}

.footer-col h3 {
  margin-bottom: 15px;
  color: var(--color-rojo);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--color-blanco);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--color-rojo);
}

.fb-icon img {
  width: 40px;
  height: 40px;
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
  font-size: 0.9rem;
}

.social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: #3b5998; /* azul Facebook */
  border-radius: 50%;
  transition: transform 0.3s, filter 0.3s;
}

.social-icon:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

/* ----------------------------
   WhatsApp flotante
---------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: pulse 2s infinite;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

/* ----------------------------
   Responsive
---------------------------- */
@media (max-width: 992px) {
  .nav-menu {
    flex-direction: column;
    position: absolute;
    top: 65px;
    right: 0;
    background: var(--color-blanco);
    width: 200px;
    padding: 15px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-menu li {
    margin: 15px 0;
  }

  .hamburger {
    display: flex;
  }

  .slide-content h2 {
    font-size: 2rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 25px;
  }

  .form-container {
    padding: 20px 20px;
  }
}

@media (max-width: 576px) {
  .slide-content h2 {
    font-size: 1.6rem;
  }

  .slide-content p {
    font-size: 0.9rem;
  }

  .cards {
    gap: 15px;
  }

  .card {
    padding: 20px;
  }
}

/* Sección del mapa */
.map-section {
  padding: 60px 0;
  background: #f4f4f4;
  text-align: center;
  border-radius: 15px;
  margin: 40px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-section h2 {
  font-size: 2.5rem;
  color: var(--color-azul);
  margin-bottom: 15px;
  position: relative;
}

.map-section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--color-rojo);
  margin: 10px auto 0;
  border-radius: 2px;
}

.map-section p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
}

.map-wrapper {
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.map-wrapper iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 15px;
}

.map-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .map-section h2 {
    font-size: 2rem;
  }
  .map-wrapper iframe {
    height: 300px;
  }
}

.map-section p {
  font-size: 1.1rem;
  color: var(--color-azul);
  font-weight: 500;
  margin-bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #e6f0ff; /* fondo suave */
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.map-section p:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Agregar ícono con pseudo-elemento si quieres */
.map-section p::before {
  content: "📍";
  font-size: 1.3rem;
}
