:root {
  --brand: #0f766e;
  --brand-accent: #0d645e;
  --brand-soft: #e7f1f0;
  --brand-contrast: #ffffff;
  --brand-sidebar: #0b1f1d;
  --brand-sidebar-hover: #123230;

  --bg: #f4f6f8;
  --surface: #ffffff;
  --border: #e5e9ee;
  --text: #0f172a;
  --text-muted: #64748b;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 10px 30px -12px rgba(16, 24, 40, 0.12);
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(120deg, var(--brand), var(--brand-accent));
  color: var(--brand-contrast);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  box-shadow: 0 6px 20px -12px rgba(2, 18, 17, 0.5);
}

.site-header .brand {
  color: var(--brand-contrast);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-header .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  padding: 8px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  flex-shrink: 0;
}
.site-header .brand-mark svg { width: 100%; height: 100%; }

.site-header .login-link {
  color: var(--brand-contrast);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.15s ease, transform 0.1s ease;
}

.site-header .login-link:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.site-header .tagline {
  margin: 0;
  opacity: 0.9;
  flex-basis: 100%;
  font-size: 0.95rem;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.container h2 {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.back-link:hover { color: var(--brand); }

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(15, 118, 110, 0.25);
}

.service-card a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.service-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.service-price {
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.service-card p { margin: 0.6rem 0 0; color: var(--text-muted); }

.meta {
  color: var(--text-muted);
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.5rem;
}

.meta li { display: flex; gap: 0.4rem; }

.stars { color: #f59e0b; letter-spacing: 0.1em; }

.reviews {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.reviews li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.reviews p { margin: 0.5rem 0 0; }

/* Video embebido (YouTube/Vimeo) y galerías de servicios/productos. */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  margin: 1rem 0;
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.media-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}
.media-gallery img {
  max-width: 100%;
  max-height: 320px;
  border-radius: var(--radius-sm, 8px);
  object-fit: cover;
}
.card-thumb {
  display: block;
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius-sm, 8px);
  object-fit: cover;
  margin: 0.5rem 0;
}
.media-thumb {
  max-width: 120px;
  max-height: 90px;
  border-radius: var(--radius-sm, 8px);
  object-fit: cover;
}

/* Contenido enriquecido de descripciones (organización/servicios). */
.rich-text img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm, 8px);
}
.rich-text ul, .rich-text ol { padding-left: 1.5rem; margin: 0.5rem 0; }
.rich-text blockquote {
  margin: 0.5rem 0;
  padding: 0.25rem 1rem;
  border-left: 3px solid var(--brand, #0f766e);
  color: #555;
}
