*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  transition: background-color 0.8s ease, opacity 0.8s ease;
  font-family: "Segoe UI", Calibri, sans-serif;
  color: #FFFFFF;
  overflow-x: hidden;
  font-size: 16px;
  background-color: #FFFFFF;
}

body.fade-out {
  opacity: 0;
  background-color: #000000;
  transition: opacity 0.8s ease;
}

.transicion-reloj {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: none;
}

.fade-out .transicion-reloj {
  display: block;
}

/* ==== SECCIONES GENERALES ==== */
.seccion-1 {
  width: 100%;
  clear: both;
  color: #fff;
  padding: 15px 0;
  background-color: #000000;
}

.seccion-2 {
  width: 100%;
  clear: both;
  background-color: #BBAEAE;
  color: #fff;
  padding: 7px 0;
}

.seccion-3 {
  width: 100%;
  clear: both;
  padding: 0;
  border: none;
  background-color: #BBAEAE;
}

.seccion-5,
.seccion-6,
.seccion-7,
.seccion-8 {
  width: 100%;
  clear: both;
  padding: 20px 0;
  color: #000000;
  text-align: center;
}

.seccion-8 .descripcion img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  display: inline-block;
  margin: 10px;
}

.seccion-4 {
  width: 100%;
  clear: both;
  padding: 20px 0;
  color: #000;
}

.seccion-9 {
	width: 100%;
	clear: both;
	padding: 10px 0;
	color: #000000;
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #666666;

}

.contenedor {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==== FLEX PARA SECCIONES ==== */
.seccion-1 .flex,
.seccion-2 .flex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.menu-izquierdo {
	display: flex;
	align-items: center;
	gap: 20px;
	float: left;
}

.menu-derecho {
	display: flex;
	align-items: center;
	gap: 20px;
	float: right;
}
.seccion-2 .flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* ==== CONTACTO (SECCIÓN 1) ==== */
.telefono,
.horario,
.email {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.icono {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icono img {
  width: 30px;
  height: 30px;
}

.icono-texto a {
	color: white;
	text-decoration: none;
}

.icono-texto {
	display: flex;
	align-items: center;
}

/* ==== LOGO Y MENÚ (SECCIÓN 2) ==== */
.logo {
	display: flex;
	align-items: center;
	margin-right: auto;
	width: 250px;
}

.logo img {
  height: 83px;
  display: block;
}

.quienes-somos,
.representante-de-opw,
.nuestros-proyectos,
.contactenos,
.nuestras-ventas {
  display: flex;
  align-items: center;
}

.quienes-somos a,
.representante-de-opw a,
.nuestros-proyectos a,
.nuestras-ventas a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 8px 12px;
}

/* ==== BOTÓN GENERAL (ENVIAR + CONTACTENOS) ==== */
.contacto-btn {
  position: relative;
  background-color: red;
  color: white;
  font-weight: bold;
  padding: 12px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: background-color 0.3s ease;
  width: 100%;
  text-align: center;

}

.contacto-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: rgba(179, 0, 0, 0.5); /* ← efecto translúcido */
  z-index: 0;
  transition: width 0.4s ease;
}

.contacto-btn:hover::before {
  width: 100%;
}

.contacto-btn span {
  position: relative;
  z-index: 2;
}

.contacto-btn:hover {
  color: white;
}

/* ==== ENLACES GENERALES ==== */
a:link,
a:visited {
  color: #FFFFFF;
  text-decoration: none;
}

a:hover {
  color: #FF0000;
}

a:active {
  color: #FFFFFF;
}

/* ==== SECCIONES INFERIORES ==== */
.titulo {
	width: 100%;
	float: left;
	height: auto;
	margin-bottom: 10px;
	text-align: center;
	font-weight: bold;
	color: #474746;
}

.descripcion {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.proyectos {
	width: 265px;
	color: #000;
	text-align: left;
	height: auto;
	padding-top: 0px;
	padding-right: 10px;
	padding-bottom: 0px;
	padding-left: 0px;
}

.proyectos ul {
  list-style: disc;
}

.proyectos li {
	list-style: disc;
	padding-bottom: 10px;
	padding-top: 5px;
}

/* ==== FORMULARIO ==== */
.formulario {
	width: 70%;
	max-width: 900px;
	color: #333;
	border-radius: 12px;
	margin-top: 20px;
	margin-right: auto;
	margin-bottom: 40px;
	margin-left: auto;
	padding-top: 20px;
	padding-right: 40px;
	padding-bottom: 30px;
	padding-left: 40px;
	border: 1px solid #CCCCCC;
}

.formulario h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #222;
}

.formulario label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #444;
}

.formulario input,
.formulario textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.formulario input:focus,
.formulario textarea:focus {
  border-color: #b30000;
  box-shadow: 0 0 0 3px rgba(179, 0, 0, 0.2);
  outline: none;
}

.formulario textarea {
  resize: vertical;
  min-height: 120px;
}

.requerido::after {
  content: " *";
  color: red;
}



/* ==== BOTONES FLOTANTES ==== */
.boton-flotante, .boton-whatsapp {
  position: fixed;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  font-size: 24px;
}

.boton-flotante {
  bottom: 80px;
  background-color: red;
  color: white;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.boton-flotante.mostrar {
  opacity: 1;
  visibility: visible;
}

.boton-whatsapp {
  bottom: 20px;
  background-color: #25d366;
  z-index: 999;
}

.boton-whatsapp img {
  width: 26px;
  height: auto;
}

/* ==== IMÁGENES DE SECCIÓN 6 Y 8 ==== */
.seccion-6 .descripcion img,
.seccion-8 .descripcion img {
  width: 15%;
  height: auto;
  object-fit: contain;
  display: inline-block;
}
.enviar-btn {
  position: relative;
  background-color: red;
  color: white;
  font-weight: bold;
  padding: 12px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: background-color 0.3s ease;
  width: 30%;
  text-align: center;
}

.enviar-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: rgba(179, 0, 0, 0.5); /* efecto translúcido */
  z-index: 0;
  transition: width 0.4s ease;
}

.enviar-btn:hover::before {
  width: 100%;
}

.enviar-btn span {
  position: relative;
  z-index: 2;
}

.enviar-btn:hover {
  color: white;
}

@media screen and (max-width: 768px) {
  /* Contenedor general para móviles */
  .contenedor.flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }



  
  /* Menú y secciones */
  .menu-izquierdo,
  .menu-derecho,
  .telefono,
  .horario,
  .email {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .logo img {
    width: 100%;
    max-width: 220px;
    height: auto;
  }

  .representante-de-opw,
  .quienes-somos,
  .nuestros-proyectos,
  .contactenos,
  .nuestras-ventas {
    margin: 5px 0;
  }

  .descripcion,
  .descripcion-1,
  .descripcion-2,
  .descripcion-3,
  .descripcion-4,
  .descripcion-5,
  .descripcion-6,
  .descripcion-7,
  .descripcion-8,
  .descripcion-9,
  .proyectos {
    width: 100% !important;
    max-width: 100%;
    text-align: center;
    margin: 0 auto 20px;
  }

  .proyectos {
    margin-bottom: 10px;
  }

  /* Formulario */
  .formulario {
    width: 95%;
    padding: 0 10px;
  }

  .formulario input,
  .formulario textarea {
    width: 100%;
  }

  .enviar-btn {
    width: 90%;
  }

  /* Logos de socios */
  .seccion-8 .descripcion img {
    max-width: 40%;
    margin: 8px;
  }

  /* Botones flotantes */
  .boton-flotante,
  .boton-whatsapp {
    right: 15px;
    width: 50px;
    height: 50px;
  }

  .boton-whatsapp img {
    width: 100%;
    height: auto;
  }

  /* Slider */
  .slider .slide {
    background-position: center;
    background-size: cover;
  }

  .nav {
    padding: 10px;
  }

  .descripcion p {
    line-height: 1.6;
  }

  /* Botón flotante subir */
  #btnSubir {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: red;
    color: white;
    border: none;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }

  /* =========================================
     SECCIÓN 1 — TELÉFONO / HORARIO / CORREO
     Estilo OPW aplicado a EURO en móviles
  ========================================== */
  .seccion-1 .contenedor.flex {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .seccion-1 .telefono,
  .seccion-1 .horario,
  .seccion-1 .email {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .seccion-1 .icono {
    flex-shrink: 0;
  }

  .seccion-1 .icono img {
    width: 30px;
    height: auto;
  }

  .seccion-1 .icono-texto {
    color: white;
    line-height: 1.2;
  }

  .seccion-1 a {
    text-decoration: none;
    color: white;
  }

   .seccion-8 .descripcion img {
    width: 22.5vw !important;  /* Toma 45% del ancho de la pantalla */
    max-width: none !important;
    height: auto !important;
    display: inline-block !important;
    margin: 10px !important;
  }

  .seccion-8 .descripcion {
    text-align: center !important;
  } 

  
  .formulario {
    padding-bottom: 20px; /* opcional para no dejar espacio excesivo abajo */
  }

  .enviar-btn {
    margin-top: 10px !important;  /* Súbelo: antes podía estar en 30px o más */
    margin-bottom: 10px !important;
    display: block;
    width: 100%; /* opcional para botón más amplio en móviles */
  }

  .menu-derecho {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }

  .menu-derecho .quienes-somos,
  .menu-derecho .nuestros-proyectos {
    flex: 0 0 45%;
    margin: 5px;
    text-align: center;
  }
  

}
