/* ==========================================================================
   INSTITUTO OCULAR CLARIDAD — HOJA DE ESTILOS BASE Y MAQUETACIÓN
   Estilo: Industrial Técnico Preciso & Editorial Médico
   ========================================================================== */

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

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--color-text, #141414);
  background-color: var(--color-bg, #FAF9F6);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--color-accent, #C9A227);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* ==========================================================================
   TIPOGRAFÍA TÉCNICA
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-primary, #141414);
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.badge-eyebrow {
  display: inline-block;
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent, #C9A227);
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
  padding: 0.35rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* ==========================================================================
   ESTRUCTURA Y CONTENEDORES
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-sm {
  max-width: 840px;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--color-muted, #5A5E63);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.text-center {
  text-align: center;
}

.bg-surface {
  background-color: var(--color-surface, #FFFFFF);
  border-top: 1px solid #ECEBE6;
  border-bottom: 1px solid #ECEBE6;
}

/* ==========================================================================
   ENCABEZADO Y NAVEGACIÓN PRINCIPAL
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #E6E4DD;
  transition: box-shadow 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1.5rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand-mark:hover {
  color: inherit;
  opacity: 0.9;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-primary, #141414);
  line-height: 1.1;
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--color-muted, #5A5E63);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #DDD;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary, #141414);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  background: radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.08) 0%, transparent 60%);
  border-bottom: 1px solid #ECEBE6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-muted, #5A5E63);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-visual {
  position: relative;
}

.hero-img-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(20, 20, 20, 0.15);
  border: 1px solid #D8D6CE;
  background: #141414;
}

.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  filter: contrast(1.05);
}

.hero-overlay-tag {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(20, 20, 20, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-accent, #C9A227);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-overlay-tag strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.hero-overlay-tag span {
  font-size: 0.78rem;
  color: var(--color-accent, #C9A227);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   PAGE HEADER (PÁGINAS INTERNAS)
   ========================================================================== */

.page-header {
  padding-top: 4rem;
  padding-bottom: 3.5rem;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.03) 0%, transparent 100%);
  border-bottom: 1px solid #ECEBE6;
  text-align: center;
}

.page-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 0.75rem;
}

.page-lead {
  font-size: 1.15rem;
  color: var(--color-muted, #5A5E63);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER TÉCNICO
   ========================================================================== */

.site-footer {
  margin-top: auto;
  background-color: var(--color-primary, #141414);
  color: #D2D4D7;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  border-top: 2px solid var(--color-secondary, #2B2B2B);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.brand-mark--light strong {
  color: #FFFFFF;
}

.brand-mark--light small {
  color: #9A9Ea3;
}

.footer-desc {
  font-size: 0.9rem;
  color: #8E9399;
  margin-top: 1.25rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  font-size: 1rem;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background-color: var(--color-accent, #C9A227);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: #A3A7AD;
}

.footer-links a:hover {
  color: var(--color-accent, #C9A227);
  padding-left: 4px;
}

.footer-hours li {
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  border-bottom: 1px dashed #2B2B2B;
  padding-bottom: 0.4rem;
}

.footer-hours strong {
  color: #FFFFFF;
}

.footer-address p {
  font-size: 0.88rem;
  color: #A3A7AD;
  margin-bottom: 0.6rem;
  font-style: normal;
}

.footer-address a {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid #2B2B2B;
  font-size: 0.8rem;
  color: #72767D;
}
