:root {
  --rojo: #d62828;
  --negro: #222;
  --gris: #f4f4f4;
}

body {
  font-family: "Arial", sans-serif;
  margin: 0;
  background-color: var(--gris);
  color: var(--negro);
  line-height: 1.6;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white; /* Fondo blanco */
  padding: 10px 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Le da una sombrita suave debajo */
}


.logo {
  height: 90px;
}
nav {
  background-color: #fff;
  padding: 10px 0;
  text-align: center;
  font-family: Arial, sans-serif;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 15px;
}

.nav-menu a, 
.dropbtn {
  color: black;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
  font-weight: bold;
  transition: background 0.3s;
  cursor: pointer;
}

.nav-menu a:hover,
.dropbtn:hover {
  color: red;
}

/* Estilo desplegable */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  z-index: 1;
  border-radius: 6px;
}

.dropdown-content li {
  border-bottom: 1px solid #ddd;
}

.dropdown-content li:last-child {
  border-bottom: none;
}

.dropdown-content a {
  padding: 10px 15px;
  display: block;
  color: black;
}

.dropdown-content a:hover {
  background-color: #f5f5f5;
  color: red;
}

/* Mostrar el submenú al pasar el cursor */
.dropdown:hover .dropdown-content {
  display: block;
}


.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('fuga.jpg') center/cover no-repeat;
  min-height: 20vh; /* ocupa el 85% del alto de la ventana */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 40px 20px;
}

.hero-text h1 {
  font-size: 2.8em;
  color: white;
}

.hero-text p {
  font-size: 1.2em;
  color: white;
  max-width: 700px;
  margin: 10px auto 0;
}
.foto-zonescan {
  display: block;
  max-width: 400px;
  margin: 20px auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.foto-zonescan850 {
  display: block;
  max-width: 400px; /* cambia el tamaño máximo, por ejemplo 400px o 600px */
  width: 90%;       /* se ajusta automáticamente al tamaño del contenedor */
  height: auto;     /* mantiene las proporciones originales */
}
.slider {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 1s ease;
}

.slides img {
  width: 100%;
  flex-shrink: 0;
}

/* Flechas */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.prev { left: 10px; }
.next { right: 10px; }

.slider2 {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  overflow: hidden;
}

.slides2 {
  display: flex;
  transition: transform 1s ease;
}

.slides2 img {
  width: 100%;
  flex-shrink: 0;
}

/* Flechas */
.prev2, .next2 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}

.prev2:hover, .next2:hover {
  background-color: rgba(0,0,0,0.8);
}

.prev2 { left: 10px; }
.next2 { right: 10px; }


section {
  padding: 60px 10%;
  background-color: white;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h2 {
  color: var(--rojo);
  border-left: 5px solid var(--rojo);
  padding-left: 10px;
}
.section {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.section.active {
  display: block;
  opacity: 1;
}

/* Para que el header y el footer siempre se vean */
header.header,
footer.footer {
  position: relative;
  z-index: 1000;
}

.contacto-container {
  display: flex;
  justify-content: center; /* centra los ítems horizontalmente */
  align-items: flex-start;
  flex-wrap: wrap; /* permite que se ajusten en pantallas pequeñas */
  gap: 40px; /* espacio entre los bloques */
  margin-top: 40px;
  text-align: center;
}

.contacto-item {
  background: #111; /* Fondo negro */
  color: white; /* Texto blanco */
  border-radius: 8px;
  padding: 20px;
  width: 250px;
}

.icono {
  font-size: 2em;
  color: var(--rojo); /* Ícono rojo */
  margin-bottom: 10px;
}

.contacto-item h3 {
  color: white; /* Títulos blancos */
  margin-bottom: 10px;
}

.contacto-item p,
.contacto-item a {
  color: white; /* Texto y enlaces blancos */
  font-size: 1em;
  text-decoration: none;
}

.contacto-item a:hover {
  color: var(--rojo); /* Efecto hover rojo */
}


.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.contact-form label {
  font-weight: 600;
  color: #555;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #c00;
  outline: none;
}

.contact-form button {
  background-color: #c00;
  color: white;
  font-size: 1em;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 150px;
  align-self: flex-start;
}

.contact-form button:hover {
  background-color: #a00;
}

.footer {
  text-align: center;
  background-color: #111;
  color: white;
  padding: 20px;
}
/* Botón flotante de WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 50px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  font-weight: bold;
  text-decoration: none;
  font-size: 15px;
  z-index: 1000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
}
