/* ===== Sentias Corp — Estilos ===== */

:root {
  --navy: #001038;
  --navy-2: #001848;
  --navy-3: #003070;
  --ink: #101010;
  --gray-bg: #f0f0f0;
  --white: #ffffff;
  --muted: #4a4a55;
  --border: #e2e2ea;
  /* Ocre tomado del logo (marca.png): letras GRUPO / A y líneas divisorias */
  --ochre: #a87838;
  --ochre-dark: #6b4a1b;
  --ochre-light: #e9ce93;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 16, 56, 0.10);
  --maxw: 1120px;
  --header-height: 260px;
  --section-height: auto;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--navy); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Site Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 16px; padding-bottom: 16px;
}
.brand { display: flex; align-items: center; }
/* Marca legible: a 185 px de alto la tagline (mayúsculas de 28 px en el PNG
   de 517 px) se imprime en pantalla a ~10 px; GRUPO ~18 px y SENTIAS ~55 px. */
.brand-logo { height: 185px; width: auto; }

.main-nav { border-top: 1px solid var(--border); }
.main-nav .container { padding-top: 8px; padding-bottom: 8px; }
.nav-list { display: flex; gap: 14px; list-style: none; }
.nav-list a {
  color: var(--ink); font-weight: 500; font-size: 0.95rem;
  padding: 6px 14px; border: 1px solid transparent; border-radius: 8px;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
/* Resaltado elegante: fondo azul de marca, letra blanca, borde ocre */
.nav-list a:hover,
.nav-list a.is-active {
  background: var(--navy); color: var(--white); border-color: var(--ochre);
  box-shadow: 0 2px 6px rgba(0, 16, 56, 0.28), inset 0 0 0 1px rgba(233, 206, 147, 0.22);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switcher { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lang-btn {
  border: none; background: transparent; cursor: pointer;
  padding: 6px 12px; font-size: 0.85rem; font-weight: 600; color: var(--muted);
}
.lang-btn.is-active { background: var(--navy); color: var(--white); }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-3); color: var(--white); }
.btn-secondary { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-secondary:hover { background: var(--navy); color: var(--white); }

/* Botón ocre metálico en alto relieve */
.btn-ochre {
  background: linear-gradient(180deg, var(--ochre-light) 0%, var(--ochre) 48%, var(--ochre-dark) 100%);
  color: var(--navy); border: 1px solid var(--ochre-dark);
  box-shadow: 0 3px 8px rgba(0, 16, 56, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.65),
              inset 0 -2px 0 rgba(0, 0, 0, 0.28);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-ochre:hover {
  color: var(--navy);
  background: linear-gradient(180deg, #f4dca6 0%, #b98a44 48%, #7a5520 100%);
  box-shadow: 0 6px 14px rgba(0, 16, 56, 0.40),
              inset 0 1px 0 rgba(255, 255, 255, 0.70),
              inset 0 -2px 0 rgba(0, 0, 0, 0.28);
}

.nav-toggle {
  display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); display: block; }

/* ===== Main ===== */
main {
  padding-top: var(--header-height);
  min-height: calc(100vh - 40px); /* Fuerza al contenido a estirarse hasta el footer */
  display: flex;
  flex-direction: column;
}
main section {
  flex: 1;
  height: var(--section-height, auto);
  overflow-y: auto;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #002048 100%);
  color: var(--white);
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero-inner { max-width: 800px; }
.hero-title { font-size: clamp(1.9rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero-subtitle { font-size: clamp(1.05rem, 2vw, 1.25rem); opacity: 0.92; margin-bottom: 24px; }
.hero-tags { font-size: 0.9rem; letter-spacing: 0.5px; opacity: 0.8; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-primary { background: var(--white); color: var(--navy); }
.hero .btn-primary:hover { background: var(--gray-bg); }

/* ===== Secciones ===== */
.section { padding: 80px 0; position: relative; }
/* Separador ocre en alto relieve entre secciones */
.section::before,
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(180deg, var(--ochre-light), var(--ochre) 55%, var(--ochre-dark));
  box-shadow: 0 2px 4px rgba(0, 16, 56, 0.20);
}
.section-alt { background: var(--gray-bg); }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.section-lead { font-size: 1.15rem; font-weight: 500; margin-bottom: 16px; }
.section-text { font-size: 1.05rem; color: var(--muted); max-width: 820px; }

/* ===== Propuesta de Valor ===== */
.propuesta-header { text-align: center; margin-bottom: 56px; }
.badge {
  display: inline-block; background: var(--ochre-light); color: var(--ochre-dark);
  font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em;
  padding: 6px 16px; border-radius: 20px; text-transform: uppercase;
  margin-bottom: 16px;
}
.propuesta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px; margin-top: 40px;
}
.propuesta-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.propuesta-item:hover {
  transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0, 16, 56, 0.14);
  border-color: var(--ochre-light);
}
.propuesta-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white); margin-bottom: 22px; box-shadow: 0 6px 20px rgba(0, 16, 56, 0.25);
}
.propuesta-icon svg { width: 32px; height: 32px; }
.propuesta-item-title { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.propuesta-item-text { font-size: 0.95rem; color: var(--muted); line-height: 1.6; }

/* ===== Qué Hacemos ===== */
.hacemos-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.hacemos-content { padding: 20px 0; }
.hacemos-destacado {
  background: var(--gray-bg); border-radius: var(--radius);
  padding: 32px; margin-bottom: 32px; border-left: 4px solid var(--ochre);
}
.hacemos-subtitle {
  font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 12px;
}
.hacemos-capacidades { display: grid; gap: 20px; }
.capacidad-item {
  padding: 20px; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); transition: all .2s ease;
}
.capacidad-item:hover { border-color: var(--ochre-light); box-shadow: 0 4px 16px rgba(0, 16, 56, 0.08); }
.capacidad-item h4 { font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.capacidad-item p { font-size: 0.95rem; color: var(--muted); line-height: 1.5; }
.hacemos-diagrama {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white); padding: 40px; border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 16, 56, 0.20);
}
.diagrama-title {
  font-size: 1.1rem; font-weight: 600; margin-bottom: 24px; text-align: center;
  color: var(--ochre-light);
}
.flow-vertical {
  list-style: none; padding: 0; margin: 0;
}
.flow-vertical li {
  display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start;
}
.flow-vertical li:last-child { margin-bottom: 0; }
.flow-num {
  background: var(--ochre); color: var(--navy); font-weight: 700;
  width: 32px; height: 32px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.9rem;
}
.flow-text { flex: 1; }
.flow-text strong { display: block; font-size: 1rem; margin-bottom: 4px; color: var(--white); }
.flow-text span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); display: block; }

@media (max-width: 860px) {
  .hacemos-wrapper { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== Servicios ===== */
.block-title { font-size: 1.25rem; font-weight: 700; color: var(--navy-3); margin: 40px 0 20px; }
.block-title:first-of-type { margin-top: 24px; }

.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px; margin-bottom: 32px;
}
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,16,56,0.15); }
.card-title { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card-text { font-size: 0.95rem; color: var(--muted); }

/* ===== Diferencial ===== */
.flow {
  display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 28px;
}
.flow li {
  background: var(--white); border: 1px solid var(--border); border-radius: 30px;
  padding: 10px 20px; font-weight: 600; color: var(--navy); font-size: 0.95rem;
}
.flow li::after { content: " →"; color: var(--navy-3); margin-left: 4px; }
.flow li:last-child::after { content: ""; }

/* ===== Beneficios ===== */
.benefits { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 14px; margin-top: 24px; }
.benefits li { background: var(--gray-bg); border-radius: 10px; padding: 16px 20px; font-weight: 500; }

/* ===== Sectores ===== */
.sectors { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.sectors li { font-size: 1rem; }
.sectors strong { color: var(--navy); }

/* ===== Pasos ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 20px; margin-top: 28px; }
.steps li { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step-num { display: inline-block; font-weight: 800; color: var(--navy-3); font-size: 1.4rem; margin-bottom: 8px; }
.steps h4 { font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.steps p { font-size: 0.9rem; color: var(--muted); }

/* ===== CTA ===== */
.section-cta { background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: var(--white); text-align: center; }
.section-cta .section-title { color: var(--white); }
.section-cta .section-text { color: rgba(255,255,255,0.9); margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.section-cta .btn-primary { background: var(--white); color: var(--navy); }
.section-cta .btn-primary:hover { background: var(--gray-bg); }
.section-cta .btn-secondary { border-color: var(--white); color: var(--white); }
.section-cta .btn-secondary:hover { background: var(--white); color: var(--navy); }

/* ===== Contacto ===== */
.contact-grid { display: grid; gap: 24px; }
.contact-brand { font-weight: 700; color: var(--navy); font-size: 1.15rem; margin-bottom: 14px; }
.contact-list { list-style: none; display: grid; gap: 10px; }
.contact-list li { font-size: 1rem; }
.contact-list span:first-child { font-weight: 600; color: var(--muted); }

/* ===== Footer ===== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  height: 40px;            /* Fijado estrictamente a 40px */
  padding: 4px 0;          /* Ajuste de espacio interno vertical */
  width: 100%;
  border-top: 1px solid var(--ochre-dark); /* Línea decorativa sutil */
}

.footer-inner {
  display: flex;
  flex-direction: column;  /* Apila las dos frases de forma vertical */
  justify-content: center; /* Centra el conjunto de textos verticalmente */
  align-items: center;     /* Centra los textos de forma horizontal */
  gap: 2px;                /* Control estricto del espacio entre ambas líneas */
  height: 100%;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.contact-legal {
  font-size: 0.65rem;      /* Tipografía ligeramente menor para jerarquía */
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.1;
  text-align: center;
  margin-top: 0;           /* Resetea márgenes externos heredados */
}

.footer-brand { 
  font-weight: 600; 
  font-size: 0.85rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand span { color: var(--ochre); }
.footer-tagline { 
  font-size: 0.72rem;      /* Escala pequeña ideal para el alto de 40px */
  color: var(--ochre-light);
  font-weight: 600;
  line-height: 1.1;        /* Ajuste fino para evitar colisiones tipográficas */
  text-align: center;
  opacity: 1;              /* Remueve opacidades previas para máxima legibilidad */
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  :root { --header-height: 145px; }
  .brand-logo { height: 110px; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    display: none; padding: 16px 24px;
  }
  .main-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 14px; }
  .nav-toggle { display: flex; }
  .hero { padding: 48px 0; }
  .section { padding: 56px 0; }
}
