* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden; /* Esto mata el scroll horizontal rebelde */
  width: 100%;
}

/* General Styles */
body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  color: #333333; /* Texto oscuro para fondo blanco */
  line-height: 1.6;
  background-color: #ffffff; /* Fondo blanco */
  text-align: left;
  font-size: 1.5rem;
}

/* Header se queda oscuro para que el logo resalte */
header {
  background-color: #1c1c1c;
  padding: 2.5rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid #444;
  position: relative;
  transition: background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-logo {
  max-width: 25%;
  height: auto;
}

header h1 {
  font-family: "Lora", serif;
  font-weight: 700;
  font-size: 1.75rem;
  margin: 0;
  color: #edba6e;
}

.hero {
  background-image: url("img/lady.webp");
  height: 37.5rem;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6); /* Sombra más fuerte para contraste */
  animation: fadeIn 3s forwards;
  text-align: center;
}

.hero h2 {
  font-size: 3.5rem;
  font-family: "Lora", serif;
  font-weight: 700;
  margin: 0;
  opacity: 0;
  color: #ffffff;
  animation: fadeIn 3s forwards;
}

.hero .whatsapp-button {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  font-size: 1.25rem;
  color: #ffffff;
  background-color: #25d366;
  border: none;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  text-decoration: none;
  animation: fadeIn 3s forwards;
}

.hero .whatsapp-button i {
  margin-right: 0.5rem;
}

/* Sección Clientes (Empresas) */
#empresas {
  text-align: center;
  margin: 50px 0;
  color: #b88b4a; /* Dorado más oscuro para leerse bien en blanco */
  font-family: "Lora", serif;
  font-size: 2rem;
}

.empresas-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-empresa {
  width: 150px;
  height: auto;
  margin-bottom: 0.5rem;
}

.logo-title {
  font-family: "Lora", serif;
  font-weight: bold;
  color: #b88b4a;
  font-size: 1.2rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.logo-description {
  font-family: "Roboto", sans-serif;
  color: #444444; /* Gris oscuro */
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Secciones Full Width (Conócenos y Contacto) */
.full-width-section {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 0;
}

.left-content,
.right-content {
  flex: 1 1 50%;
  box-sizing: border-box;
}

.about-us {
  padding: 3.75rem;
  max-width: 56.25rem;
  margin: auto;
  font-size: 1.25rem;
  color: #b88b4a;
}

.about-us h2,
.about-us h3 {
  color: #222222; /* Títulos negros */
  font-family: "Lora", serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.625rem;
}

.about-us h3.white-text {
  color: #222222; /* Forzado a oscuro */
}

.about-us h3.other-color {
  color: #b88b4a;
}

.about-us p {
  color: #444444; /* Párrafos gris oscuro */
  font-size: 1.5rem;
  margin: 0.625rem 0;
}

.contact-info {
  padding-left: 6.25rem;
  padding-top: 1.5rem;
}

.contact-info a {
  color: #b88b4a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #222222;
  text-decoration: underline;
}

.contact-info h4 {
  font-size: 3rem !important;
  margin-bottom: 0.625rem;
  color: #b88b4a;
}

.contact-info h3 {
  font-size: 3rem !important;
  margin-bottom: 0.625rem;
  color: #222222; /* Título negro */
}

.contact-info p {
  font-size: 2rem !important;
  margin: 0.3125rem 0;
  color: #444444; /* Texto gris oscuro */
}

/* Servicios Section - Fondo Gris Claro para separar */
.servicios-section {
  padding: 2.5rem 1.25rem;
  background-color: #f4f4f4; 
}

.servicios-section h3 {
  text-align: center;
  color: #222222;
  margin: 0 auto;
  font-size: 3rem;
  padding-top: 6rem;
}

.servicios-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.servicio-item {
  flex: 1 1 calc(33.333% - 1.25rem);
  background-color: #ffffff; /* Tarjeta blanca */
  padding: 1.25rem;
  margin: 0.625rem;
  border-radius: 0.3125rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Sombra suave */
  padding-left: 40px; /* Ajustado para que no quede tan lejos */
  padding-right: 40px;
}

.servicio-item h4 {
  color: #b88b4a;
  margin-bottom: 0.625rem;
}

.servicio-item p {
  color: #555555;
  line-height: 1.6;
}

.servicio-item ul {
  list-style-type: disc;
  padding-left: 1.25rem;
}

.servicio-item ul li {
  margin-bottom: 0.625rem;
  color: #555555;
}

.servicio-item h5 {
  color: #b88b4a;
}

/* Footer (Mantenido oscuro para estilo profesional) */
footer {
  background-color: #1c1c1c;
  padding: 2.5rem 1.25rem;
  text-align: left;
}

.footer-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  max-width: 75rem;
  margin: auto;
}

.footer-left,
.footer-right {
  flex: 1;
}

.footer-left p,
.footer-left a {
  margin: 0.3125rem 0;
  font-size: 0.875rem;
  color: #b3b3b3;
}

.footer-left a {
  display: block;
  margin-top: 0.9375rem;
  color: #f5f5f5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-left a:hover {
  text-decoration: underline;
  color: #b3b3b3;
}

.footer-logo-text {
  display: flex;
  align-items: center;
}

.footer-logo {
  max-width: 10.9375rem;
  height: auto;
  margin-right: 0.625rem;
}

.commitment-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #b3b3b3;
  margin: 0;
}

/* Botones y Utilidades */
button {
  background-color: #2e2e2e;
  color: white;
  border: none;
  padding: 0.625rem 1.25rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
  background-color: #444;
  transform: scale(1.05);
}

#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  right: 1.875rem;
  z-index: 99;
  font-size: 1.125rem;
  border: none;
  outline: none;
  background-color: #b88b4a;
  color: white;
  cursor: pointer;
  padding: 0.9375rem;
  border-radius: 0.25rem;
  transition: background-color 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: #444;
}

h4, h3 {
  font-family: "Lora", serif;
  font-size: 3rem;
}

h5 {
  font-size: 2rem;
}

.about-us {
  padding-left: 6.25rem;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  header {
    padding: 1rem;
  }

  .header-logo {
    max-width: 50%;
  }

  header h1 {
    font-size: 1.25rem;
  }

  .hero {
    height: 250px;
  }

  .hero h2 {
    font-size: 1.5rem;
    padding: 0 1rem;
  }

  .hero .whatsapp-button {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .full-width-section {
    flex-direction: column;
  }

  .left-content,
  .right-content {
    flex: 1 1 100%;
  }

  .about-us,
  .contact-info {
    padding: 1.5rem;
    padding-left: 1.5rem; /* Override desktop padding */
  }

  .about-us h2,
  .about-us h3,
  .contact-info h3 {
    font-size: 1.75rem !important;
  }

  .about-us h4 {
    font-size: 1.5rem;
  }

  .about-us p,
  .contact-info p {
    font-size: 1rem !important;
  }

  .contact-info h4 {
    font-size: 1.25rem !important;
  }

  .about-us h3.other-color {
    font-size: 1.5rem !important;
  }

  .servicios-section h3 {
    font-size: 1.75rem;
    padding-top: 3rem;
  }

  .servicios-content {
    flex-direction: column;
  }

  .servicio-item {
    flex: 1 1 100%;
    padding: 1rem;
    margin: 0.5rem 0;
  }

  .servicio-item h4 {
    font-size: 1.25rem;
  }

  .servicio-item h5 {
    font-size: 1.1rem;
  }

  #empresas {
    font-size: 1rem;
  }

  .empresas-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .logo-item {
    margin-bottom: 1rem;
  }

  .logo-empresa {
    width: 100px;
  }

  .logo-title {
    font-size: 1rem;
  }

  .logo-description {
    font-size: 0.8rem;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-left,
  .footer-right {
    text-align: center;
    margin-bottom: 1rem;
  }

  .footer-logo {
    max-width: 50%;
    margin: 0 auto 1rem;
  }

  .footer-logo-text {
    flex-direction: column;
    align-items: center;
  }

  #scrollToTopBtn {
    right: 1rem;
    bottom: 1rem;
    padding: 0.5rem;
    font-size: 1rem;
  }
}