/* =========================
   Smartlab Industries CSS
   ========================= */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* Color variables */
:root {
  --main-color: #004580;
  --accent-color: #00BFFF;
  --light-bg: #f4f4f4;
  --dark-bg: #222;
  --text-color: #333;
}

/* Basic reset */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-color);
}

/* Header / hero inside container */
#encabezado {
  background: linear-gradient(135deg, var(--main-color), #0069b3);
  border-radius: 12px;
  color: #fff;
  padding: 40px 20px;
  margin-top: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Small slogan above logo */
#encabezado .letter-spacing {
  letter-spacing: 0.12em;
}

/* Logo styles */
#logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  border-radius: 50% / 40%;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  max-width: 260px;
  margin: 0 auto 20px;
}

.logo-oval {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  border-radius: 50% / 40%;
  object-fit: contain;
}

/* Responsive headings */
h1.size-relative {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 10px 0;
  font-weight: 600;
}

h2.size-relative {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  margin: 10px 0;
  font-weight: 400;
}

h3.size-relative {
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  margin: 20px 0;
}

h4.size-relative {
  font-size: clamp(0.75rem, 1.8vw, 1rem);
  margin: 25px 0;
}

p.size-relative {
  font-size: clamp(1rem, 2vw, 1.1rem);
}

/* Main sections */
section {
  padding: 40px 15px;
}

/* Alternate section background within main container */
#container > section:nth-of-type(even) {
  background-color: #e8f0fa;
  border-radius: 8px;
}

/* Limit text width for readability */
section article {
  max-width: 960px;
  margin: 0 auto;
}

/* Typography tweaks */
section article p {
  line-height: 1.6;
  text-align: left;
}

.text-muted-light {
  color: #9fa7b0 !important;
}

/* Card tweaks (home cards, etc.) */
.card.bg-info,
.card.bg-primary {
  border-radius: 12px;
}

.card .card-title {
  font-weight: 600;
}

/* Custom buttons (without overriding Bootstrap) */
.btn-custom {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  padding: 10px 22px;
  font-size: 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-custom:hover {
  background-color: #0095c8;
  transform: translateY(-1px);
}

/* NO styles for generic button to avoid overriding .btn, .btn-primary */
/* Formularios: dejamos que .form-control de Bootstrap haga la mayor parte */
input[type="text"].form-control,
input[type="email"].form-control,
textarea.form-control {
  border-radius: 6px;
}

/* Footer (refuerza el look, pero respeta .footer.bg-dark del HTML) */
footer.footer {
  background-color: var(--dark-bg) !important;
}

/* Footer links */
footer.footer a {
  color: var(--accent-color);
  text-decoration: none;
}

footer.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  #encabezado {
    padding: 30px 15px;
  }

  #logo {
    width: 100px;
    height: 100px;
  }

  .card-group {
    display: block;
  }

  .card-group .card {
    margin-bottom: 15px;
  }
}
