/* ==========================================================================
   CLÍNICA DERMA LUMIÈRE — HOJA DE ESTILOS BASE Y MAQUETACIÓN
   Identidad: Neocorporativo Geométrico (Libre Baskerville + Source Sans 3)
   ========================================================================== */

*, *::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: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--color-text, #1D1D1B);
  background-color: var(--color-bg, #F9F8F6);
  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, #E76F51);
}

ul, ol {
  list-style: none;
}

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

/* ==========================================================================
   TIPOGRAFÍA NEOCORPORATIVA GEOMÉTRICA
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary, #242423);
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1rem;
}

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

.badge-eyebrow {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent, #E76F51);
  background: rgba(231, 111, 81, 0.1);
  border: 1px solid rgba(231, 111, 81, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  margin-bottom: 1.15rem;
}

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

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

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

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

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

.section-lead {
  font-size: 1.12rem;
  color: var(--color-muted, #6C757D);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

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

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

/* ==========================================================================
   CABECERA COMPACTA (72px)
   ========================================================================== */

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

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

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

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

.brand-text strong {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-primary, #242423);
  line-height: 1.15;
}

.brand-text small {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  color: var(--color-secondary, #52796F);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border, #E3E1DC);
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 4px;
}

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

/* ==========================================================================
   HERO SECTION ASIMÉTRICO
   ========================================================================== */

.hero-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  background: radial-gradient(circle at 90% 15%, rgba(231, 111, 81, 0.08) 0%, transparent 55%);
  border-bottom: 1px solid var(--color-border, #E3E1DC);
}

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

.hero-title {
  font-size: clamp(2.3rem, 3.8vw, 3.3rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

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

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

.hero-trust-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background-color: var(--color-surface, #FFFFFF);
  border: 1px solid var(--color-border, #E3E1DC);
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(36, 36, 35, 0.04);
  max-width: fit-content;
}

.trust-badge-icon {
  width: 28px;
  height: 28px;
  background-color: rgba(82, 121, 111, 0.15);
  color: var(--color-secondary, #52796F);
  font-weight: 800;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.trust-badge-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--color-primary, #242423);
}

.trust-badge-info span {
  font-size: 0.78rem;
  color: var(--color-muted, #6C757D);
}

.hero-card-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 45px -15px rgba(36, 36, 35, 0.18);
  border: 1px solid var(--color-border, #E3E1DC);
  background-color: #242423;
}

.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.hero-img-floating-tag {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(36, 36, 35, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  padding: 0.9rem 1.25rem;
  border-left: 3px solid var(--color-accent, #E76F51);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-img-floating-tag strong {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.92rem;
}

.hero-img-floating-tag small {
  font-size: 0.8rem;
  color: var(--color-accent, #E76F51);
  font-weight: 600;
}

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

.page-header {
  padding-top: 4rem;
  padding-bottom: 3.5rem;
  background: linear-gradient(180deg, rgba(231, 111, 81, 0.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--color-border, #E3E1DC);
}

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

.page-lead {
  font-size: 1.15rem;
  color: var(--color-muted, #6C757D);
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  margin-top: auto;
  background-color: var(--color-primary, #242423);
  color: #D6D8D5;
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  border-top: 3px solid var(--color-secondary, #52796F);
}

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

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

.brand-mark--light small {
  color: var(--color-accent, #E76F51);
}

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

.footer-license-badge {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--color-secondary, #52796F);
  background: rgba(82, 121, 111, 0.15);
  border: 1px solid rgba(82, 121, 111, 0.3);
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
}

.footer-heading {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
  position: relative;
  padding-bottom: 0.45rem;
}

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

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

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

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

.footer-hours li {
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  padding-bottom: 0.35rem;
}

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

.footer-note {
  font-size: 0.78rem;
  color: var(--color-accent, #E76F51);
  margin-top: 0.75rem;
}

.footer-address p {
  font-size: 0.88rem;
  color: #A3A79F;
  margin-bottom: 0.5rem;
  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 rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: #7D8278;
}
