/* ============================================================
   SIC CONSTRUCCIONES — Hoja de estilos
   Mobile-first. Paleta de marca extendida. Tipografía Inter.
   ============================================================ */

/* ---------- VARIABLES DE MARCA ---------- */
:root {
  /* Paleta SIC */
  --sic-teal: #16ac99;
  --sic-teal-dark: #128a7b;
  --sic-teal-tint: #e8f7f4;
  --sic-azul: #0095da;
  --sic-azul-dark: #0077b0;
  --sic-purpura: #7570b3;

  /* Neutros */
  --texto-principal: #1a1a1a;
  --texto-secundario: #6b7280;
  --texto-tenue: #9ca3af;
  --borde: #e5e7eb;
  --borde-fuerte: #d1d5db;
  --fondo: #ffffff;
  --fondo-suave: #fafafa;
  --fondo-seccion: #f5f5f4;

  /* Tipografía */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Espaciado y radios */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  /* Contenedor */
  --max-w: 1200px;
  --pad-x: 20px;
}

@media (min-width: 768px) {
  :root {
    --pad-x: 40px;
  }
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--texto-principal);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern', 'liga', 'ss01', 'cv11';
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- TIPOGRAFÍA ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--texto-principal);
}
h1 { font-size: 32px; }
h2 { font-size: 26px; letter-spacing: -0.018em; }
h3 { font-size: 19px; letter-spacing: -0.015em; }
h4 { font-size: 16px; font-weight: 500; }

@media (min-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 52px; letter-spacing: -0.025em; }
  h2 { font-size: 38px; }
  h3 { font-size: 22px; }
}

@media (min-width: 1024px) {
  h1 { font-size: 64px; }
}

p { color: var(--texto-secundario); }
strong { font-weight: 500; color: var(--texto-principal); }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sic-teal);
  display: inline-block;
  margin-bottom: 12px;
}

.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--texto-secundario);
}

@media (min-width: 768px) {
  .lead { font-size: 19px; }
}

/* ---------- CONTENEDOR ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 0.5px solid var(--borde);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo svg {
  width: 28px;
  height: auto;
}

.header__logo-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--texto-principal);
}

.header__logo-text span {
  font-weight: 400;
  color: var(--texto-secundario);
}

/* Nav móvil oculto por default */
.header__nav {
  display: none;
}

.header__nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--texto-principal);
  padding: 8px 14px;
  border-radius: var(--r-md);
  transition: all 0.15s ease;
}

.header__nav-link:hover {
  background: var(--sic-teal-tint);
  color: var(--sic-teal-dark);
}

.header__nav-link.active {
  color: var(--sic-teal-dark);
}

.header__cta {
  display: none;
  background: var(--texto-principal);
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: var(--r-md);
  transition: background 0.15s ease;
}

.header__cta:hover { background: #000; }

.header__menu-btn {
  background: none;
  border: 0.5px solid var(--borde);
  border-radius: var(--r-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-principal);
}

.header__menu-btn svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 900px) {
  .header__nav { display: flex; align-items: center; gap: 4px; }
  .header__cta { display: inline-block; }
  .header__menu-btn { display: none; }
}

/* Menú móvil desplegable */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 0.5px solid var(--borde);
  padding: 8px var(--pad-x) 16px;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--borde);
  color: var(--texto-principal);
}

.mobile-menu a:last-of-type { border-bottom: none; }

.mobile-menu .header__cta {
  display: block;
  text-align: center;
  margin-top: 16px;
  padding: 14px 16px;
  font-size: 15px;
}

/* ---------- BOTONES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--r-md);
  border: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--sic-teal);
  color: white;
}
.btn--primary:hover { background: var(--sic-teal-dark); }

.btn--dark {
  background: var(--texto-principal);
  color: white;
}
.btn--dark:hover { background: #000; }

.btn--ghost {
  background: transparent;
  color: var(--texto-principal);
  border: 0.5px solid var(--borde-fuerte);
}
.btn--ghost:hover { border-color: var(--texto-principal); }

.btn--lg { padding: 16px 28px; font-size: 16px; }

.btn svg { width: 18px; height: 18px; }

/* ---------- HERO ---------- */
.hero {
  padding: 56px 0 64px;
  background: var(--fondo);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { padding: 96px 0 112px; }
}

.hero__content {
  max-width: 720px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--sic-teal);
}

.hero .lead {
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

@media (min-width: 480px) {
  .hero__ctas { flex-direction: row; align-items: center; }
}

/* Hero secundario (páginas internas) */
.hero--inner {
  padding: 48px 0 56px;
  border-bottom: 0.5px solid var(--borde);
}

@media (min-width: 768px) {
  .hero--inner { padding: 72px 0 80px; }
}

.hero--inner h1 {
  font-size: 32px;
}

@media (min-width: 768px) {
  .hero--inner h1 { font-size: 44px; }
}

/* ---------- SECCIONES ---------- */
.section {
  padding: 64px 0;
}

@media (min-width: 768px) {
  .section { padding: 96px 0; }
}

.section--alt { background: var(--fondo-suave); }

.section__header {
  max-width: 720px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .section__header { margin-bottom: 56px; }
}

.section__header h2 {
  margin-bottom: 16px;
}

/* ---------- GRID DE CARDS ---------- */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.grid--2 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* Cards categoría de obra (inicio) */
.cat-card {
  background: white;
  border: 0.5px solid var(--borde);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: all 0.2s ease;
}

.cat-card:hover {
  border-color: var(--sic-teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 172, 153, 0.08);
}

.cat-card__icon {
  width: 44px;
  height: 44px;
  background: var(--sic-teal-tint);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sic-teal);
  margin-bottom: 20px;
}

.cat-card__icon svg { width: 22px; height: 22px; }

.cat-card h3 { margin-bottom: 8px; }

.cat-card p { font-size: 14px; }

/* Cards de valores (por qué SIC) */
.valor {
  border-top: 2px solid var(--sic-teal);
  padding-top: 24px;
}

.valor__num {
  font-size: 12px;
  font-weight: 500;
  color: var(--sic-teal);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.valor h3 { margin-bottom: 12px; }

.valor p { font-size: 15px; }

/* ---------- OBRAS (portafolio) ---------- */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid var(--borde);
}

.filtro-btn {
  background: white;
  border: 0.5px solid var(--borde);
  color: var(--texto-secundario);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.filtro-btn:hover {
  border-color: var(--texto-principal);
  color: var(--texto-principal);
}

.filtro-btn.active {
  background: var(--texto-principal);
  border-color: var(--texto-principal);
  color: white;
}

.obras-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .obras-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .obras-grid { grid-template-columns: repeat(3, 1fr); }
}

.obra-card {
  background: white;
  border: 0.5px solid var(--borde);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.2s ease;
}

.obra-card:hover {
  border-color: var(--borde-fuerte);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.obra-card__img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--sic-teal-tint) 0%, #d8efe9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sic-teal);
  position: relative;
}

.obra-card__img svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.obra-card__img::after {
  content: 'IMAGEN PRÓXIMAMENTE';
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--sic-teal-dark);
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 8px;
  border-radius: var(--r-sm);
}

.obra-card__body {
  padding: 16px 18px 20px;
}

.obra-card__cat {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sic-azul);
  margin-bottom: 6px;
}

.obra-card__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.3;
}

.obra-card__meta {
  font-size: 13px;
  color: var(--texto-tenue);
  font-variant-numeric: tabular-nums;
}

/* ---------- LISTA DE CAPACIDADES ---------- */
.capacidades-list {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .capacidades-list { grid-template-columns: repeat(2, 1fr); gap: 40px 48px; }
}

.capacidad-item {
  border-top: 0.5px solid var(--borde);
  padding-top: 24px;
}

.capacidad-item h3 { margin-bottom: 10px; }
.capacidad-item p { font-size: 14px; }

/* ---------- EMPRESA — datos fiscales ---------- */
.datos-fiscales {
  background: var(--fondo-suave);
  border: 0.5px solid var(--borde);
  border-radius: var(--r-lg);
  padding: 28px 24px;
}

@media (min-width: 768px) {
  .datos-fiscales { padding: 40px; }
}

.datos-fiscales h3 {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--texto-secundario);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.datos-fiscales dl {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .datos-fiscales dl { grid-template-columns: max-content 1fr; gap: 12px 32px; }
}

.datos-fiscales dt {
  font-size: 13px;
  color: var(--texto-tenue);
  font-weight: 500;
}

.datos-fiscales dd {
  font-size: 15px;
  font-weight: 500;
  color: var(--texto-principal);
  font-variant-numeric: tabular-nums;
}

/* ---------- CONTACTO ---------- */
.contact-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.3fr 1fr; gap: 64px; }
}

.contact-info h3 {
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--texto-secundario);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.contact-info__item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-info__icon {
  width: 36px;
  height: 36px;
  background: var(--sic-teal-tint);
  color: var(--sic-teal);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__icon svg { width: 18px; height: 18px; }

.contact-info__label {
  font-size: 12px;
  color: var(--texto-tenue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.contact-info__value {
  font-size: 15px;
  font-weight: 500;
  color: var(--texto-principal);
}

/* Formulario */
.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--texto-principal);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--texto-principal);
  background: white;
  border: 0.5px solid var(--borde-fuerte);
  border-radius: var(--r-md);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sic-teal);
  box-shadow: 0 0 0 3px var(--sic-teal-tint);
}

.form-field textarea { min-height: 120px; resize: vertical; }

.form-field--row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .form-field--row { grid-template-columns: 1fr 1fr; }
}

/* ---------- CTA SECCIÓN ---------- */
.cta-section {
  background: var(--texto-principal);
  color: white;
  padding: 64px 0;
}

@media (min-width: 768px) {
  .cta-section { padding: 96px 0; }
}

.cta-section h2 {
  color: white;
  margin-bottom: 16px;
  max-width: 600px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  max-width: 600px;
  margin-bottom: 32px;
}

.cta-section .btn--primary { background: var(--sic-teal); }
.cta-section .btn--primary:hover { background: var(--sic-teal-dark); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--fondo-suave);
  padding: 56px 0 32px;
  border-top: 0.5px solid var(--borde);
}

.footer__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer__brand svg { width: 28px; height: auto; }

.footer__brand-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer__brand-text span {
  font-weight: 400;
  color: var(--texto-secundario);
}

.footer__razon {
  font-size: 13px;
  color: var(--texto-secundario);
  line-height: 1.5;
  max-width: 320px;
}

.footer h4 {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--texto-tenue);
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 14px;
  color: var(--texto-principal);
  transition: color 0.15s;
}

.footer__links a:hover { color: var(--sic-teal); }

.footer__bottom {
  border-top: 0.5px solid var(--borde);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--texto-tenue);
}

/* ---------- ANIMACIÓN SUTIL DE ENTRADA ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lead, .hero__ctas {
    animation: fadeUp 0.6s ease-out backwards;
  }
  .hero h1 { animation-delay: 0.05s; }
  .hero .lead { animation-delay: 0.15s; }
  .hero__ctas { animation-delay: 0.25s; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- UTILIDADES ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
