/* Reset básico */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #000;
  background: #fff;
  line-height: 1.4;
}
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }

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

/* HEADER */
.site-header {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: stretch;
  background: #2b87da;
}
.header-col { padding: 20px; display: flex; align-items: center; }
.header-logo { justify-content: right; }
.header-text {
  justify-content: center;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  color: #000; 
}
.header-contact {
  background: #000;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.contact-email { color: #2b87da; text-decoration: none; }
.contact-tel { color: #fff; text-decoration: none; }
.contact-email:hover, .contact-tel:hover { text-decoration: underline; }

/* SECCIÓN 1 */
.section-profile { padding: 30px 0; }
h1 {
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  font-size: 40px;
  color: #000;
  margin: 0 0 24px;
}
h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 3px solid #000;
}
.profile-row {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 30px;
}
.profile-photo { flex: 0 0 190px; width: 190px; }
.profile-photo img { width: 190px; height: auto; border-radius: 20px;}
.profile-info { flex: 1; min-width: 0; }

.profile-info ul, .academic-row ul {
  margin: 0;
  padding-left: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  list-style: disc;
}
.profile-info li, .academic-row li { margin-bottom: 6px; }

/* SECCIÓN 2 */
.col-riesgos{
  margin-bottom: 30px;
}
.col-ambiente-laboral{
  margin-bottom: 11px;
}
.col-consultora{
  margin-bottom: 40px;
}
.col-compresores{
  margin-bottom: 54px;
}
.section-services {
  background: linear-gradient(to bottom, #2b87da, #ffffff);
  padding: 40px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}
.service-col img {
  width: 133px;
  height: auto;
  margin: 0 auto 14px;
}
.service-col h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  margin: 0 0 0 10px;
  text-align: center;
}
.service-col ul {
  margin-top: 30px;
  padding-left: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  list-style: disc;
}
.service-col li { margin-bottom: 10px; }

/* FOOTER */
.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  background: #2b87da;
  padding: 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #000; /* negro: mejor contraste sobre #2b87da */
}
.footer-social { display: flex; gap: 12px; align-items: center; }
.footer-social img { width: 32px; height: 32px; }

/* WHATSAPP FIJO */
.whatsapp-fixed {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  width: 60px;
  height: 60px;
}
.whatsapp-fixed img { width: 60px; height: 60px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .site-header { grid-template-columns: 1fr 1fr; }
  .header-text { grid-column: 1 / -1; order: 3; }
}

@media (max-width: 640px) {
  h1 { font-size: 30px; }
  .site-header { grid-template-columns: 1fr; }
  .header-logo { justify-content: center; }
  .header-text { order: 0; font-size: 18px; }
  .header-contact { align-items: center; text-align: center; }
  .profile-row { flex-direction: column; align-items: center; }
  .profile-info { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; text-align: center; }
}
