:root {
  --bg: #f7f7f7;
  --bg-alt: #ffffff;
  --text: #1f1f1f;
  --muted: #666666;
  --accent: #d7614d;       /* coral cálido para botones/enlaces/detalles */
  --accent-soft: #f6d5cb;  /* versión suave, por si la necesitas en el futuro */
  --border-soft: #dddddd;
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.04);
  --radius: 0.9rem;
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
h1,
h2,
h3 {
  font-family: "Lora", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Ajustes suaves de tamaños para seguir minimalista */
.hero-text h1 {
  font-weight: 600;
}

.hero-sidebox h2 {
  font-weight: 600;
}

/* Contenedor */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header fijo */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 247, 247, 0.96);
  border-bottom: 1px solid rgba(221, 221, 221, 0.9);
  backdrop-filter: blur(8px);
}

/* Cabecera centrada, logo arriba */
.header-inner.header-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem 0.9rem;
}

/* Logo solo, centrado */
.brand-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-logo {
  height: 90px; /* valor grande para leer el lema */
}

/* Fila de navegación + idioma */
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 80%;
}

/* Navegación centrada debajo del logo */
.main-nav {
  display: flex;
  gap: 0.9rem;
  font-size: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--accent);
  background: var(--accent-soft);
}

/* Selector de idioma */
.lang-switch {
  font-size: 0.85rem;
}

.lang-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* Espaciado del main */
main {
  padding: 2.5rem 0 3rem;
}

/* HERO */
.hero {
  padding: 2rem 0 2.5rem;
}

/* Hero layout: dos columnas y mejor alineación en escritorio */
.hero-inner {
  display: grid;
  gap: 1.75rem;
}

.hero-text h1 {
  font-size: 1.7rem;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.hero-subtitle {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease,
              box-shadow 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

/* Base: blanco y negro */
.btn-primary {
  background: #000000;
  color: #ffffff;
  border-color: var(--text);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent);   /* coral */
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--accent-soft);  /* coral clarito */
  color: var(--text);
  border-color: var(--accent);
}

/* Benefits hero */
.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-benefits li {
  background: #ffffff;
  border-radius: 0.8rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  border-left: 3px solid var(--accent);
  margin-bottom: 0.5rem;
}

/* Cajita lateral */
.hero-sidebox {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.hero-sidebox h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.hero-sidebox-note {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Mini pulse debajo de la cajita */
.hero-pulse {
  margin-top: 0.9rem;
  margin-left: 0.9rem;  
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.pulse-text {
  white-space: normal;
}

.pulse-emoji {
  color: var(--text); /* negro por defecto */
  animation: heroStarColor 1.8s ease-in-out infinite;
}

@keyframes heroStarColor {
  0%   { color: var(--text); }    /* negro */
  33%  { color: var(--accent); }  /* coral */
  100% { color: var(--text); }    /* vuelve a negro */
}

/* Secciones generales */
.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.9);
}

.section h2 {
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sec-icon {
  font-size: 0.9em;
  color: var(--accent);   /* coral */
}

.section h3 {
  font-size: 1.02rem;            /* antes ~1.0–1.05 */
  margin-top: 1.2rem;
  margin-bottom: 0.55rem;
}

.section-intro {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

/* Grid de tarjetas (services) */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

/* Grid de sectores: siempre 2×2 en escritorio */
.card-grid-2 {
  display: grid;
  gap: 1.25rem;
}

/* Tarjetas */
.card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.card p {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.card ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
}

/* Contacto */
.contact-email {
  font-weight: 500;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-privacy {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Offset para cabecera sticky al hacer scroll a secciones */
#home,
#services,
#sectors,
#about,
#contact {
  scroll-margin-top: 160px;
}

/* Responsive */
@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    align-items: center;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  main {
    padding-top: 3rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner.header-centered {
    padding: 0.6rem 0.75rem 0.8rem;
  }

  .nav-row {
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .pulse-text {
    white-space: normal;
  }
}
