body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.header {
  background-color: #103599;
  color: white;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title {
  font-size: 1.75rem;
  font-weight: bold;
}

.menu {
  position: relative; 
}

.dropdown-btn {
  font-size: 1.5rem;
  background-color: #55b71c;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
}

.dropdown-content {
  font-size: 1.5rem;
  display: none;
  position: absolute;
  right: 0;
  top: 29px;
  background-color: #103599;
  color: rgb(255, 255, 255);
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 0.375rem;
  z-index: 1;
}

.dropdown-content a {
  color: rgb(255, 255, 255);
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #55b71c;
}

.menu:focus-within .dropdown-content, .menu:hover .dropdown-content {
  display: block;
}

/* Mobile-First */
@media (max-width: 600px) {
  .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .dropdown-content {
    width: 100%;
  }
}


body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
}

.fondo {
  background-image: url('/images/servi24h.jpg');
  background-size: cover;
  background-position: center;
  width: auto;
  height: 33vh;
  position: relative;
}

.fondo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.contenido {
  position: relative;
  color: white;
  text-align: center;
  top: 0%;
  transform: translateY(-50%);
  padding: 0 20px;
}

.contenido h1 {
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .contenido h1 {
      font-size: 1.7rem;
  }
}

@media (min-width: 1024px) {
  .contenido h1 {
      font-size: 2.6rem;
  }
}

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: center;
  padding: 20px;
}


.service {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  transition: transform 0.3s;
}

.service:hover {
  transform: translateY(-10px);
}

.icon {
  font-size: 50px;
  margin-bottom: 10px;
  transition: transform 0.3s;
}

.service:hover .icon {
  transform: scale(1.2);
}

.description {
  font-size: 18px;
  color: #333;
}

@media(min-width: 600px) {
  .services {
      grid-template-columns: repeat(3, 1fr);
  }
}

/* Estilos base (mobile first) */
.seccion-animada {
  padding: 20px;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 10px;
  margin: 20px;
  overflow: hidden; /* Evita desbordamientos */
}

.titulo-animado {
  font-size: 1.5rem;
  color: #333;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.texto-animado {
  font-size: 1rem;
  color: #666;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out 0.5s, transform 1s ease-out 0.5s; /* Retraso de 0.5s */
}

/* Clase para activar la animación */
.seccion-animada.visible .titulo-animado,
.seccion-animada.visible .texto-animado {
  opacity: 1;
  transform: translateY(0);
}

/* Estilos para pantallas más grandes (responsive) */
@media (min-width: 768px) {
  .seccion-animada {
      padding: 40px;
      margin: 40px auto;
      max-width: 800px;
  }

  .titulo-animado {
      font-size: 2.5rem;
  }

  .texto-animado {
      font-size: 1.2rem;
  }
}

section {
  padding: 2rem;
  text-align: center;
}

img {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

h2, p {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contenedor principal para centrar el reloj */
.clock-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto; /* Ocupa toda la altura de la pantalla */
  margin: 10px 10px;
  padding: 0;
}

/* Estilos del reloj */
.clock {
  position: relative;
  width: 30vmin; /* Tamaño relativo al viewport */
  height: 30vmin;
  border: 5px solid #000;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* Sombra opcional */
}

/* Estilos comunes para las manecillas */
.hour-hand, .minute-hand, .second-hand {
  position: absolute;
  background-color: #000;
  transform-origin: bottom center;
  border-radius: 5px; /* Bordes redondeados */
}

/* Manecilla de las horas */
.hour-hand {
  width: 3%;
  height: 25%;
  top: 25%;
  left: 48.5%;
}

/* Manecilla de los minutos */
.minute-hand {
  width: 2%;
  height: 35%;
  top: 15%;
  left: 49%;
}

/* Manecilla de los segundos */
.second-hand {
  width: 1%;
  height: 40%;
  top: 10%;
  left: 49.5%;
  background-color: red;
}


.number {
  position: absolute;
  font-size: 2vmin;
  font-weight: bold;
  color: #000;
}

.number-12 { top: 5%; left: 50%; transform: translateX(-50%); }
.number-3 { top: 50%; right: 5%; transform: translateY(-50%); }
.number-6 { bottom: 5%; left: 50%; transform: translateX(-50%); }
.number-9 { top: 50%; left: 5%; transform: translateY(-50%); }


.faq-section {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
}

.faq-heading {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #333;
}

.faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: bold;
  color: #007BFF;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: #007BFF;
}

.faq-answer {
  display: none;
  padding-top: 10px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.faq-answer[aria-hidden="false"] {
  display: block;
}

/* Estilos para pantallas más grandes */
@media (min-width: 768px) {
  .faq-section {
      padding: 40px;
  }

  .faq-question {
      font-size: 1.2rem;
  }

  .faq-answer {
      font-size: 1rem;
  }
}

.call-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #103599;
  padding: 10px;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}


.call-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  font-size: 1.4rem;
  font-weight: bold;
  background-color: #be0a0a;
  color: #ffffff;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.call-button:hover {
  transform: scale(1.05);
  background-color: #a30808;
}

.call-button:focus {
  outline: 2px solid #FFD700;
}

.call-icon {
  margin-right: 8px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Estilos para pantallas más grandes */
@media screen and (min-width: 600px) {
  .call-button {
    padding: 12px 25px;
    font-size: 1.4rem;
  }
}


.location-container {
  max-width: 400px;
  margin: 20px auto;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
}

.btn:hover, .btn:focus {
  background-color: #0056b3;
  outline: none;
}

.location-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  display: none;
}

.location-list li {
  margin: 8px 0;
}

.location-list a {
  text-decoration: none;
  color: #007bff;
  font-size: 16px;
}

.location-list a:hover, .location-list a:focus {
  text-decoration: underline;
  outline: none;
}

/* Diseño responsive */
@media (min-width: 600px) {
  .location-container {
      max-width: 500px;
  }
}


.emergency-section {
  width: 90%;
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.box {
  padding: 20px;
  color: white;
  border-radius: 8px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

.emergencias {
  background-color: #d9534f;
}

.soluciones {
  background-color: #0275d8;
}

/* Responsive: En pantallas grandes, los bloques estarán en fila */
@media (min-width: 600px) {
  .emergency-section {
      display: flex;
      flex-direction: row;
  }

  .box {
      width: 50%;
  }
}


.services-electricista {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.service-electricista {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 300px;
}

.service-electricista img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .services-electricista {
    flex-direction: row;
    justify-content: space-around;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


.imagen-alicante {
  max-width: 369px;
  max-height: 369px;
}

