/* SECCIÓN HERO */
.hero {
  position: relative;
  background-color: #1d2d44;
  color: #ffffff;
  padding: 7rem 2rem;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/imagenempresa.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.2rem;
  color: #f1f1f1;
  position: relative;
  z-index: 1;
}

.btn-contacto {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #b88a2b;
  color: #ffffff;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 1;
}

.btn-contacto:hover {
  background-color: #96721f;
}

/* FRANJA INDICADOR UF */
.franja-indicador {
  background-color: #b88a2b;
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.5rem 0;
  font-weight: bold;
  font-size: 1rem;
  border-top: 2px solid #b88a2b;
  position: relative;
}

.franja-movimiento {
  display: inline-block;
  padding-left: 100%;
  animation: desplazamiento 30s linear infinite;
}

.indicador-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 3rem;
  white-space: nowrap;
}

@keyframes desplazamiento {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.franja-indicador:hover .franja-movimiento {
  animation-play-state: paused;
}

/* SECCIÓN QUIÉNES SOMOS */
.nosotros {
  background-color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
}

.nosotros h2 {
  font-size: 2rem;
  color: #1d2d44;
  margin-bottom: 1.5rem;
}

.nosotros p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  color: #333;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* ==== SECCIÓN SERVICIOS DEL INDEX CON IMÁGENES DE FONDO ==== */
.servicios {
  background-color: #f4f4f4;
  padding: 4rem 2rem;
  text-align: center;
}

.servicios h2 {
  font-size: 2rem;
  color: #1d2d44;
  margin-bottom: 2rem;
}

.servicios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}

.servicio {
  position: relative;
  color: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 320px;
  flex: 1 1 320px;
  min-height: 320px;
  box-shadow: 0 4px 12px rgba(216, 184, 6, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  cursor: default;
  transition: transform 0.3s ease;
  background-size: cover;
  background-position: center;
}

.servicio:hover {
  transform: translateY(-5px);
}

.servicio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
  border-radius: 12px;
}

.servicio h3,
.servicio p {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem 0;
}

.servicio h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem; 
  font-weight: bold;
}

.servicio p {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* Imagenes de fondo para cada servicio */
.servicio:nth-child(1) {
  background-image: url('assets/contabilidadgeneral.jpg');
}
.servicio:nth-child(2) {
  background-image: url('assets/auditoriaexterna.jpg');
}
.servicio:nth-child(3) {
  background-image: url('assets/asesoriatributaria.jpg');
}

/* Botón Ver Más centrado y más abajo */
.btn-ver-mas {
  background-color: #d8b806;
  color: #1d2d44;
  padding: 0.5rem 1.2rem;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  align-self: center;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.btn-ver-mas:hover {
  background-color: #b88a2b;
  color: white;
}

/* RESPONSIVO */
/* Tablets */
@media (max-width: 1024px) {
  .hero {
    padding: 5rem 1.5rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn-contacto {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .servicio {
    max-width: 45%;
  }
}

/* Móviles */
@media (max-width: 600px) {
  .hero {
    padding: 4rem 1rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .btn-contacto {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .servicios-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .servicio {
    max-width: 100%;
    padding: 1.5rem;
    min-height: auto;
  }
}

/* Estilo para el selector de idioma */
#language-select {
  appearance: none;           
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #1d2d44; /* Fondo azul */
  color: white;
  border: none;
  padding: 4px 24px 4px 8px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#language-select:hover, 
#language-select:focus {
  background-color: #1d2d44;
  outline: none;
}
