/* ===========================================================
   Coltit — Anodizado de Titanio para Implantes Quirúrgicos
   =========================================================== */

:root {
  --navy: #002751;
  --navy-soft: #0a3a6e;
  --blue: #0096ff;
  --green: #53bf67;
  --amber: #ffc53e;
  --paper: #f5f8fb;
  --white: #ffffff;
  --ink: #10233d;
  --ink-soft: #4a5c72;
  --line: #dfe6ee;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.1;
  margin: 0;
}

/* Signature: three-bar wing accent, echoing the C-icon in the logo */
.wing-accent {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 34px;
}
.wing-accent span {
  height: 5px;
  border-radius: 3px;
}
.wing-accent span:nth-child(1) { background: var(--blue); width: 100%; }
.wing-accent span:nth-child(2) { background: var(--green); width: 74%; }
.wing-accent span:nth-child(3) { background: var(--amber); width: 48%; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-soft);
  margin-bottom: 18px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.brand img {
  height: 68px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--green);
  color: var(--navy);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(83, 191, 103, 0.35); }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}
.btn-outline:hover { border-color: var(--navy); }

.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); }

.header-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s ease;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu .container a:last-child { border-bottom: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  padding: 88px 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 150, 255, 0.14), transparent 65%);
}

.hero .container {
  position: relative;
  display: block;
  max-width: 760px;
}

.hero-copy,
.hero-visual { min-width: 0; }

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

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

.hero p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  display: block;
}
.hero-stat .alloy {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  margin-left: 4px;
}
.hero-stat .label {
  font-size: 13px;
  color: var(--ink-soft);
}

.hero-visual {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 39, 81, 0.25);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #f3f3f3;
}

.hero-visual-caption { padding: 26px 32px 32px; }

.hero-visual .caption-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.hero-visual .caption-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 17px;
  margin-bottom: 10px;
}
.hero-visual .caption-text {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ===== Sections ===== */
section { padding: 88px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 16.5px;
}

/* ===== Servicios ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(0, 39, 81, 0.28);
}

.service-card .icon-bar {
  width: 40px;
  height: 6px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.service-card:nth-child(1) .icon-bar { background: var(--blue); }
.service-card:nth-child(2) .icon-bar { background: var(--green); }
.service-card:nth-child(3) .icon-bar { background: var(--amber); }
.service-card:nth-child(4) .icon-bar { background: var(--navy-soft); }

.service-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}

/* ===== Banner ===== */
.banner { padding: 0 0 88px; }
.banner-main { padding: 48px 0 88px; }
.banner-img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

/* ===== Por qué elegirnos ===== */
#por-que { padding: 32px 0 88px; }

.why {
  background: var(--navy);
  color: var(--white);
  border-radius: 28px;
  margin: 0 24px;
  max-width: calc(var(--container) - 0px);
  margin-left: auto;
  margin-right: auto;
}

.why .container { padding-top: 0; padding-bottom: 0; }

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 72px 0;
}

.why h2 { color: var(--white); }
.why .section-head p { color: rgba(255, 255, 255, 0.72); }

.why-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.why-item {
  display: flex;
  gap: 18px;
}

.why-item .bar {
  flex: none;
  width: 5px;
  border-radius: 4px;
}
.why-item:nth-child(1) .bar { background: var(--blue); }
.why-item:nth-child(2) .bar { background: var(--green); }
.why-item:nth-child(3) .bar { background: var(--amber); }

.why-item h3 {
  color: var(--white);
  font-size: 17px;
  margin-bottom: 6px;
}
.why-item p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14.5px;
  margin: 0;
}

/* ===== Colores disponibles ===== */
.colors-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: center;
}
.colors-copy p {
  color: var(--ink-soft);
  font-size: 16.5px;
  margin-bottom: 16px;
}
.colors-chart {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  justify-content: center;
}
.colors-chart img {
  max-width: 220px;
  width: 100%;
}

/* ===== Nosotros ===== */
.about .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.about-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.about-card .num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
}
.about-card .label {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.about-body p {
  color: var(--ink-soft);
  font-size: 16.5px;
  margin-bottom: 18px;
}

.next-line {
  margin-top: 28px;
  padding: 16px 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.next-line .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}
.next-line strong { color: var(--navy); }

/* ===== Contacto ===== */
.contact {
  background: var(--paper);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 56px;
}

.contact h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.contact p.lead { color: var(--ink-soft); margin-bottom: 30px; }

.contact-actions { display: flex; flex-direction: column; gap: 14px; }
.contact-actions .btn { justify-content: flex-start; width: 100%; padding: 16px 22px; font-size: 16px; }

.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  border-left: 1px solid var(--line);
  padding-left: 48px;
}

.detail-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.detail-row .dot {
  margin-top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.detail-row:nth-child(1) .dot { background: var(--blue); }
.detail-row:nth-child(2) .dot { background: var(--green); }
.detail-row:nth-child(3) .dot { background: var(--amber); }

.detail-row .k {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 3px;
}
.detail-row .v {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  font-size: 16px;
}

/* ===== Footer ===== */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer img { height: 24px; }
.site-footer .copy {
  font-size: 13.5px;
  color: var(--ink-soft);
}
.footer-tag {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-inner { grid-template-columns: 1fr; padding: 56px 24px; }
  .why { margin: 0 16px; }
  .about .container { grid-template-columns: 1fr; }
  .colors-inner { grid-template-columns: 1fr; }
  .colors-inner .colors-chart { order: -1; }
  .contact-inner { grid-template-columns: 1fr; padding: 36px; }
  .contact-details { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-cta .btn-outline { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  section { padding: 64px 0; }
  .hero-stats { gap: 22px; }
  .site-footer .container { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
