/* Styles for Baceda & Company – Sistemas Industriales
 *
 * This stylesheet defines the base appearance for the multi‑page site. It
 * combines the original dark metallic theme with a green, metallic override
 * to give the pages a fresh industrial feel. At the bottom of this file
 * you will find override rules that swap the grey background for a green
 * gradient and provide simple styling helpers for hero and feature images.
 */

/* === Base dark metallic theme === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Colours */
  --bg-dark: #111318;
  --bg-metal: #2a2f37;
  --bg-metal-light: #3a414c;
  --accent: #2ac4ff;
  --accent-soft: #7ee0ff;
  --text-main: #f5f7fb;
  --text-muted: #a5adba;
  /* UI */
  --border-soft: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --radius-lg: 20px;
  --radius-xl: 26px;
  --transition-fast: 0.18s ease-out;
  --max-width: 1120px;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  /* Default dark metallic gradient (overridden later) */
  background:
    radial-gradient(circle at 0 0, #555b66 0, transparent 55%),
    radial-gradient(circle at 100% 0, #4a5059 0, transparent 55%),
    linear-gradient(145deg, #1b1f25, #272d35 45%, #181b20 90%);
  background-color: #20242b;
  min-height: 100vh;
}

body::before {
  /* Subtle texture overlay */
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.06) 0,
      transparent 18%,
      transparent 82%,
      rgba(0, 0, 0, 0.4) 100%
    );
  mix-blend-mode: soft-light;
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(8, 10, 15, 0.92), rgba(8, 10, 15, 0.82));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.brand-top {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.brand-bottom {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
}

.main-nav a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-muted);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.main-nav a.active {
  background: radial-gradient(circle at 0 0, #2df0ff, #1996d4);
  color: #020309;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(74, 255, 255, 0.5);
}

/* Responsive navigation toggle (hidden in this static build) */
.nav-toggle {
  display: none;
}

/* Footer */
.site-footer {
  background: linear-gradient(to top, #12161b, #171c23);
  color: var(--text-muted);
  padding: 2rem 0;
  font-size: 0.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.footer-grid h4 {
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.footer-bottom {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.7rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.2rem;
  z-index: 60;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #020309;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  border: none;
}

.whatsapp-float:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
}

/* Section styles */
.page {
  padding-top: 0;
}

.page-hero {
  padding: 3.5rem 0 2rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.4));
  text-align: center;
}

.page-content {
  padding: 2rem 0;
}

.two-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.two-columns > div {
  flex: 1;
  min-width: 280px;
}

.services-grid article {
  margin-bottom: 2rem;
}

/* === Dark metallic overrides === */

/* Replace green background with a dark metallic gradient. The pattern combines
   radial gradients to add a subtle vignette and a linear gradient for depth. */
body {
  background:
    radial-gradient(circle at 0 0, #555b66 0, transparent 55%),
    radial-gradient(circle at 100% 0, #4a5059 0, transparent 55%),
    linear-gradient(145deg, #1b1f25, #272d35 45%, #181b20 90%);
  background-color: #20242b;
  color: var(--text-main);
}

/* Darker panels remain dark to stand out on the metallic background */
.page-hero,
.strip,
.strip-dark {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.4));
}

/* Hero and feature images maintain consistent styling */
.hero-image,
.feature-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.65);
  display: block;
}

/* === Icon styling and enhanced lists === */

/* Headings that include Font Awesome icons use inline-flex to align the icon
   with text. The icons themselves receive a soft 3D look with shadows and
   rounded backgrounds to stand out against the dark theme. */
h1 > i,
h2 > i,
h3 > i,
h4 > i {
  margin-right: 0.5rem;
  display: inline-block;
  font-size: 1.2em;
  line-height: 1;
  color: var(--accent-soft);
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6), inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}

/* Check list style: remove default bullets and add a check-circle icon before each item.
   Requires Font Awesome Free to be loaded in the page head. */
ul.check-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

ul.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
}

ul.check-list li::before {
  content: "\f058"; /* fa-solid fa-circle-check unicode */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--accent-soft);
  font-size: 1rem;
}

/* === Service Slider ===
   A horizontal carousel that cycles through the main service areas with icons
   and descriptions. Icons can be images or Font Awesome icons styled to
   resemble 3D badges. */
.service-slider {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 12, 15, 0.6), rgba(5, 7, 10, 0.9));
  padding: 2rem 0;
}

.service-slides {
  display: flex;
  width: 400%;
  animation: slide 28s ease-in-out infinite;
}

.service-slide {
  flex: 0 0 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
  color: var(--text-main);
}

.service-slide h3 {
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.service-slide p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 260px;
}

.service-slide-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 0.6rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #2b3037, #171b20);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6), inset 0 -4px 6px rgba(0, 0, 0, 0.6);
}

/* When the icon is an image, override the circular badge styling */
.service-slide img.service-slide-icon {
  background: none;
  box-shadow: none;
  width: 90px;
  height: 90px;
  border-radius: 0;
}

.service-slide i.service-slide-icon {
  font-size: 2.2rem;
  color: var(--accent-soft);
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-25%);
  }
  45% {
    transform: translateX(-25%);
  }
  50% {
    transform: translateX(-50%);
  }
  70% {
    transform: translateX(-50%);
  }
  75% {
    transform: translateX(-75%);
  }
  95% {
    transform: translateX(-75%);
  }
  100% {
    transform: translateX(0);
  }
}

/* === Modern services grid with 3D icons === */
.services-modern {
  padding: 3rem 0;
  background: linear-gradient(180deg, rgba(12, 15, 19, 0.92), rgba(6, 9, 12, 0.97));
}

.services-modern .section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service-item {
  background: rgba(23, 28, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.68);
}

.service-item-icon {
  width: 90px;
  height: 90px;
  margin-bottom: 0.8rem;
}

.service-item h3 {
  margin: 0.3rem 0 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
}

.service-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 260px;
  margin: 0 auto;
}

/* === Cards section styling (Líneas de trabajo principales) === */
.cards-section {
  padding: 3rem 0;
  background: linear-gradient(180deg, rgba(12, 15, 19, 0.92), rgba(6, 9, 12, 0.97));
}

.cards-section .section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  /* Slightly lighter background and border for better contrast on dark pages */
  background: rgba(32, 38, 46, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.2rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.68);
}

.card-icon {
  align-self: center;
  width: 72px;
  height: 72px;
  margin-bottom: 0.8rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
}

.card p {
  flex-grow: 1;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.card-link {
  align-self: flex-start;
  font-size: 0.93rem;
  color: var(--accent-soft);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.card-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* === Ecosistema / Subdomains section styling === */
.subdomains {
  padding: 3rem 0;
  background: linear-gradient(180deg, rgba(12, 15, 19, 0.92), rgba(6, 9, 12, 0.97));
}

.subdomain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.sub-card {
  /* Slightly lighter background and border for better contrast on dark pages */
  background: rgba(32, 38, 46, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.sub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.68);
}

.sub-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}

.sub-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  flex-grow: 1;
}

.sub-card a {
  color: var(--accent-soft);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.sub-card a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* === Holiday greeting banner === */
.holiday-banner {
  padding: 2.5rem 1.5rem;
  margin: 2rem 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.holiday-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}

.holiday-image img {
  max-width: 280px;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease;
}

.holiday-image img:hover {
  transform: scale(1.05);
}

.holiday-message h2 {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
  color: var(--accent-soft);
}

.holiday-message p {
  max-width: 500px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text-main);
  margin: 0 auto;
}