/* ===== ELKAR S.A. — estilos ===== */
/* Sistema minimalista: paleta reducida, tipografía como protagonista,
   una sola acción principal por sección, sin sombras ni degradés innecesarios. */

:root {
  --ink: #10182a;
  --ink-soft: #38445a;
  --paper: #ffffff;
  --paper-2: #f6f6f4;
  --line: #e3e3df;
  --line-dark: rgba(255,255,255,0.14);
  --muted: #6b7280;
  --muted-light: #9aa3b2;
  --accent: #e8622c;
  --accent-ink: #c94f1f;
  --whatsapp: #25d366;
  --whatsapp-ink: #1ebe5b;
  --header-gray: #c2c2c2;
  --radius: 3px;
  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  line-height: 1.7;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }

h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 800;
  background: linear-gradient(120deg, #3f74b8 0%, #0f2a54 38%, #5a92cf 58%, #132c58 78%, #4c81c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #14284f;
  -webkit-text-fill-color: transparent;
}
h2.light {
  background: none;
  -webkit-text-fill-color: var(--paper);
  color: var(--paper) !important;
}

h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }

/* Subtítulos de la sección Servicios: mismo tratamiento de azul metalizado */
#servicios .mini-card h3 {
  font-weight: 700;
  background: linear-gradient(120deg, #3f74b8 0%, #0f2a54 40%, #5a92cf 65%, #132c58 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #14284f;
  -webkit-text-fill-color: transparent;
}

p { margin: 0 0 1rem; color: var(--muted); }

a { color: inherit; }

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

.section { padding: 112px 0; position: relative; }
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: var(--accent);
}
.section-alt { background: var(--paper-2); }

.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.section-tag.light { color: #f0a483; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
h2.center { max-width: 760px; }
.mission-lead { max-width: 600px; }
.light { color: #c6cddb !important; }
h2.light, h3.light { color: var(--paper) !important; }

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.9rem;
}
.eyebrow-row .rule { width: 28px; height: 1px; background: var(--accent); display: inline-block; }

/* ===== BOTONES ===== */
/* Un único estilo sólido para la acción principal, y un link con flecha para todo lo secundario. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: var(--accent);
  color: var(--paper);
  border: 1px solid var(--accent);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--paper);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--paper); }

.btn-ghost-dark {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost-dark:hover { border-color: var(--ink); }

.btn-whatsapp {
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: var(--paper);
}
.btn-whatsapp:hover { background: var(--whatsapp-ink); border-color: var(--whatsapp-ink); }
.btn-whatsapp svg { width: 18px; height: 18px; fill: var(--paper); flex-shrink: 0; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow:hover { color: var(--accent); }

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s ease;
}
.inline-link:hover { color: var(--accent-ink, var(--accent)); }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-gray);
  border-bottom: 1px solid rgba(16,24,42,0.14);
}

.site-header .container { max-width: 1520px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand { flex-shrink: 0; }
.brand img { height: 90px; width: auto; display: block; }

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 22px;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 1.3rem;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.nav-cta {
  color: var(--ink);
  font-weight: 600;
  border: 1px solid rgba(16,24,42,0.35);
  padding: 10px 22px;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.main-nav a.nav-cta:hover { border-color: var(--ink); background: rgba(16,24,42,0.06); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  color: var(--paper);
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(16,24,42,0.92) 0%, rgba(16,24,42,0.75) 45%, rgba(16,24,42,0.4) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 100px;
}
.hero-text { max-width: 620px; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 { color: var(--paper); font-size: clamp(2rem, 4vw, 3rem); }
.hero-lead { color: #d4d9e4; font-size: 1.08rem; max-width: 480px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 32px; }
.hero-actions .link-arrow { color: #e7eaf0; }

.scroll-hint {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 32px;
  background: none;
  border: none;
  color: #aab2c3;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.scroll-hint i { display: block; width: 1px; height: 30px; background: rgba(255,255,255,0.35); }

/* ===== PATRÓN DE TARJETA MÍNIMA ===== */
/* Un solo patrón reutilizado en Misión, Equipo, Servicios y Proceso:
   sin sombra ni caja, solo un filete superior y tipografía. */
.mini-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0;
}
.mini-card {
  padding: 28px 28px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-right: 28px;
}
.mini-index {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.mini-card h3 { margin-bottom: 8px; }
.mini-card p { font-size: 0.92rem; margin: 0; }
.mini-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.mini-card li { margin-bottom: 6px; font-size: 0.92rem; }

.mini-grid.on-dark .mini-card { border-top-color: var(--line-dark); }
.mini-grid.on-dark .mini-card h3 { color: var(--paper); }
.mini-grid.on-dark .mini-card p,
.mini-grid.on-dark .mini-card li { color: #b9c0cf; }

.principios-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.principios-grid .mini-card { padding-top: 20px; }
.principios-grid h3 { font-size: 1rem; margin-bottom: 8px; }
.principios-grid p { font-size: 0.88rem; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 96px;
}
.about-image img { border-radius: var(--radius); }
blockquote {
  border-left: 2px solid var(--accent);
  margin: 1.75rem 0 0;
  padding: 0.2rem 0 0.2rem 1.3rem;
  font-style: italic;
  color: var(--ink);
  font-weight: 500;
  font-size: 1.02rem;
}

.mission { text-align: left; }

/* ===== EQUIPO ===== */
.team-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 40px 28px;
}
.team-card { border-top: 1px solid var(--line); padding-top: 24px; }
.team-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
}
.team-card h3 { margin-bottom: 4px; }
.team-role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.team-bio { font-size: 0.92rem; margin: 0; }
.team-email { font-size: 0.85rem; margin: 10px 0 0; }
.team-email a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.team-email a:hover { color: var(--accent); border-color: var(--accent); }

/* ===== MODALIDADES ===== */
.modalidades-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.check-list li:first-child { border-top: 1px solid var(--line); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}
.modalidades-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.modalidades-card h3 { margin-bottom: 10px; }
.modalidades-card .btn { margin-top: 8px; }

/* ===== CONTACTO ===== */
.cta-section {
  background: var(--ink);
  color: var(--paper);
}
.contact-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin: 32px 0 64px;
}
.contact-actions .link-arrow { color: #d4d9e4; }
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-dark);
}
.contact-item {
  padding: 24px 24px 24px 0;
  border-right: 1px solid var(--line-dark);
}
.contact-item:last-child { border-right: none; }
.contact-item strong { color: var(--paper); display: block; margin-bottom: 6px; font-size: 0.98rem; overflow-wrap: anywhere; }
.contact-item strong a { color: inherit; text-decoration: none; }
.contact-item strong a:hover { color: var(--accent); }
.contact-item p { margin: 0; color: #97a1b5; font-size: 0.88rem; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  color: #97a1b5;
  border-top: 1px solid var(--line-dark);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 40px;
  padding: 72px 24px 48px;
}
.footer-wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--paper);
  margin: 0 0 12px;
}
.footer-tagline { max-width: 380px; color: #7c869c; font-size: 0.92rem; }
.footer-col h4 {
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.footer-col p { margin: 0 0 10px; }
.footer-col a { color: #97a1b5; text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { color: #97a1b5; text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 22px 24px;
}
.footer-copy { font-size: 0.8rem; margin: 0; color: #5c6579; }

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; padding: 56px 24px 36px; }
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--whatsapp);
  color: var(--paper);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 90;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}
.whatsapp-float:hover { background: var(--whatsapp-ink); }
.whatsapp-float svg { width: 26px; height: 26px; fill: var(--paper); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 64px; }
  .modalidades-grid { grid-template-columns: 1fr; gap: 40px; }
  .mini-card { margin-right: 0; }
}

@media (max-width: 1080px) {
  .brand img { height: 72px; }
  .main-nav a { font-size: 1.3rem; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-gray);
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid rgba(16,24,42,0.14);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a.nav-cta { align-self: flex-start; padding: 10px 20px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .contact-item { border-right: none; border-bottom: 1px solid var(--line-dark); }
}
