/* LoveWall — shared design system (base.css)
   Tokens + buttons + inputs + testimonial/video cards.
   Matches marketing-psicologos.es: teal palette, system fonts, 0.5rem buttons
   and bordered cards with a soft shadow. */

:root {
  /* "teal" palette of marketing-psicologos.es (css/palettes.json).
     White on --accent has low contrast: use --accent-dark for small text
     and links. */
  --accent: #00bdcb;
  --accent-dark: #009aad;
  --accent-light: #e0f7fa;
  --hero-bg: #f0fdfe;
  --star: #f2b136;
  --hl-bg: #fdf0c3;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --input-bg: #f1f2f5;
  --radius: 0.75rem;
  --radius-btn: 0.5rem;
  --shadow-card: 0 1px 6px rgba(0, 0, 0, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent-dark);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius-btn);
  padding: 16px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.05s ease;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary:disabled:hover {
  background: var(--accent);
}

.btn-secondary {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 15px 16px;
  background: #fff;
  color: #374151;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #d7d9e0;
}

/* ---------- Inputs ---------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  outline: none;
  transition: box-shadow 0.15s ease;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(0, 189, 203, 0.3);
}

/* ---------- Headings ---------- */
h1 {
  margin: 0 0 8px;
  color: #0b0b0f;
  font-weight: 800;
  font-size: 34px;
  line-height: 1.2;
}

/* ---------- Stars (5 inline SVG stars) ---------- */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 0;
}

.stars svg {
  width: 22px;
  height: 22px;
  fill: var(--star);
}

.stars[data-rating] svg.off {
  fill: #d7d9e0;
}

/* ---------- Testimonial text card ---------- */
.t-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.t-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.t-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--input-bg);
}

.t-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.t-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.3;
}

.t-card .stars {
  margin-bottom: 12px;
}

.t-text {
  font-size: 17px;
  line-height: 1.65;
  color: #1f2937;
}

.t-text mark,
mark {
  background: var(--hl-bg);
  padding: 1px 3px;
  border-radius: 4px;
  color: inherit;
}

.t-date {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Video card ---------- */
.v-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.v-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.v-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.v-overlay .stars svg {
  width: 16px;
  height: 16px;
}

.v-name {
  margin-top: 6px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.v-tagline {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  line-height: 1.3;
}

.v-play {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.v-play:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.v-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--text);
}
