/* VOLTIX - Sitio web profesional */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f7;
  --surface: #ffffff;
  --text: #151515;
  --muted: #5d5d63;
  --primary: #c1121f;
  --primary-dark: #9f0e19;
  --black: #0b0b0d;
  --black-soft: #151518;
  --border: #e7e7ea;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --container: 1180px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

:where(a, button):focus-visible {
  outline: 3px solid rgba(193, 18, 31, 0.35);
  outline-offset: 2px;
}

strong {
  color: var(--black);
}

h1, h2, h3, p, li, a, span {
  overflow-wrap: break-word;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus {
  left: 0.5rem;
}

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

.section {
  padding: 5rem 0;
}

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

.section-dark {
  background: linear-gradient(135deg, #0b0b0d 0%, #19191d 100%);
  color: #f3f3f4;
}

.section-head {
  max-width: 720px;
  margin-bottom: 2.5rem;
}
.section-head h2 {
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.2;
  color: var(--black);
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}
.eyebrow-light {
  color: #ff8a93;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  font-size: 0.98rem;
  transition: color 0.2s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--black);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(900px 300px at 90% -10%, rgba(193, 18, 31, 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-content h1 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--black);
}
.hero-text {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 62ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--black);
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-highlights li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 0.5rem;
  vertical-align: middle;
}

.hero-panel .panel-card {
  background: linear-gradient(160deg, #111114 0%, #1b1b20 100%);
  color: #f5f5f6;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.panel-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff8a93;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.panel-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
  line-height: 1.2;
}
.panel-card p {
  margin: 0 0 1.5rem;
  color: #cfcfd6;
}
.panel-metrics {
  display: grid;
  gap: 1rem;
}
.panel-metrics div {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.panel-metrics strong {
  display: block;
  color: #fff;
  margin-bottom: 0.15rem;
}
.panel-metrics span {
  color: #b8b8c2;
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-dark);
  color: #fff;
}
.btn-secondary {
  background: #fff;
  color: var(--black);
  border-color: #d9d9de;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

/* Cards & grids */
.grid {
  display: grid;
  gap: 1.25rem;
}
.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.works-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}
.advantages-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 0 rgba(0,0,0,0.02);
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--black);
}
.card p {
  margin: 0;
  color: var(--muted);
}

.service-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(193, 18, 31, 0.08);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.service-card .icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.service-card:hover {
  border-color: rgba(193, 18, 31, 0.25);
  box-shadow: var(--shadow);
}

.work-card {
  padding: 0;
  overflow: hidden;
}
.work-visual {
  height: 170px;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.work-visual span {
  background: rgba(0,0,0,0.35);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}
.work-visual-1 { background: linear-gradient(135deg, #1a1a1f 0%, #3a3a42 50%, #c1121f 130%); }
.work-visual-2 { background: linear-gradient(135deg, #c1121f 0%, #7a0b14 60%, #151518 120%); }
.work-visual-3 { background: linear-gradient(135deg, #222228 0%, #444452 40%, #8f0d17 130%); }
.work-body {
  padding: 1.25rem 1.4rem 1.4rem;
}

.advantage-card {
  border-top: 3px solid var(--primary);
}

/* Gallery / Especialidades */
.gallery-card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(193, 18, 31, 0.2);
}
.gallery-media {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
}
.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
}
.gallery-card:hover .gallery-media img {
  transform: scale(1.03);
}
.gallery-body {
  padding: 1.2rem 1.3rem 1.35rem;
}
.gallery-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  color: var(--black);
}
.gallery-body p {
  margin: 0;
  color: var(--muted);
}
.gallery-note {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Contact */
.section-dark .section-head h2,
.section-dark h2,
.section-dark h3 { color: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.contact-text {
  color: #d6d6dc;
  font-size: 1.05rem;
  max-width: 60ch;
}
.contact-actions { margin: 1.5rem 0 1rem; }
.contact-note { color: #b8b8c2; margin: 0; }
.contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-card h3 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.contact-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff9aa3;
  margin-bottom: 0.15rem;
  font-weight: 700;
}
.contact-list a {
  color: #fff;
  text-decoration: none;
}
.contact-list a:hover { color: #ffd7db; }
.small-note {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: #a7a7b2;
}

/* Nosotros / Trayectoria */
.trajectory-intro {
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary);
}
.trajectory-highlight {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--black);
}
.trajectory-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 70ch;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0 0;
  position: relative;
  display: grid;
  gap: 1.25rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--border) 0%, rgba(193, 18, 31, 0.35) 100%);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1rem;
  align-items: start;
}
.timeline-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #d9d9de;
  box-shadow: 0 0 0 4px var(--bg-alt);
  position: relative;
  z-index: 1;
  margin-top: 0.15rem;
}
.timeline-item-current .timeline-marker {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--bg-alt), 0 0 0 8px rgba(193, 18, 31, 0.12);
}
.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.timeline-year {
  margin: 0 0 0.2rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.timeline-content h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--black);
}
.timeline-content p {
  margin: 0;
  color: var(--muted);
}
.timeline-item-current .timeline-content {
  border-color: rgba(193, 18, 31, 0.25);
  box-shadow: 0 8px 24px rgba(193, 18, 31, 0.08);
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  gap: 1rem;
}
.footer-brand {
  margin: 0;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--black);
}
.footer-inner > div p { margin: 0.2rem 0 0; color: var(--muted); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.footer-links a:hover { color: var(--primary); }
.footer-copy {
  margin: 0.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-copy a { color: var(--primary); text-decoration: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 4.5rem 0 3.5rem; }
  .hero-grid { gap: 2rem; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .advantages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .section { padding: 3.5rem 0; }
  .section-head { margin-bottom: 2rem; }
  .section-head p { font-size: 1rem; }
  .brand-logo { height: 40px; }
  .timeline::before { left: 14px; }
  .timeline-item { grid-template-columns: 30px 1fr; gap: 0.85rem; }
  .timeline-marker { width: 30px; height: 30px; }
  .timeline-content { padding: 1.1rem 1.1rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 20px rgba(0,0,0,0.06);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
  }
  .site-nav li a {
    display: block;
    padding: 0.9rem 0.4rem;
    border-bottom: 1px solid #f0f0f2;
  }
  .site-nav li:last-child a { border-bottom: 0; }
  .header-inner { position: relative; }
  .services-grid,
  .works-grid,
  .gallery-grid,
  .advantages-grid { grid-template-columns: 1fr; }
  .gallery-grid { gap: 1.25rem; }
  .hero { padding: 3.5rem 0 2.75rem; }
  .hero-text { font-size: 1rem; }
  .hero-panel .panel-card { padding: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .contact-card { padding: 1.25rem; }
  .btn { width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  .hero { padding: 3rem 0 2.25rem; }
  .hero-content h1 { font-size: clamp(1.85rem, 8vw, 2.3rem); }
  .hero-text { font-size: 0.98rem; margin-bottom: 1.4rem; }
  .hero-highlights { font-size: 0.92rem; gap: 0.6rem 1rem; }
  .hero-panel .panel-card { padding: 1.25rem; }
  .panel-card h2 { font-size: 1.35rem; }
  .section-head h2 { font-size: clamp(1.55rem, 6vw, 1.9rem); }
  .card { padding: 1.25rem; }
  .gallery-body { padding: 1rem 1.05rem 1.1rem; }
  .timeline-content { padding: 1rem; }
  .contact-list { gap: 0.85rem; }
  .footer-links { gap: 0.75rem 1rem; }
  .brand-logo { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
