/* ============================================================
   TURIS Cleaning Services — Banner de cookies (RGPD/ePrivacy)
   Paleta verde Turis.
   ============================================================ */
:root {
  --tc-green: #2C5F3F;
  --tc-green-deep: #142e1d;
  --tc-coral: #E89B7C;
  --tc-paper: #FAFAF7;
}

.tc-cc {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 9998;
  max-width: 960px;
  margin: 0 auto;
  background: rgba(20, 46, 29, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 20px 24px;
  color: #fff;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 12px 48px rgba(0,0,0,0.35);
  transform: translateY(calc(100% + 40px));
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.tc-cc.open { transform: translateY(0); }
.tc-cc p { margin: 0; color: rgba(255,255,255,.82); }
.tc-cc h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.tc-cc a { color: var(--tc-coral); text-decoration: underline; }
.tc-cc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tc-cc-btn {
  font: inherit; font-weight: 600;
  padding: 10px 18px; border-radius: 10px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.22);
  background: transparent; color: #fff;
  transition: background .2s, border-color .2s, transform .2s, color .2s;
  white-space: nowrap;
}
.tc-cc-btn:hover { border-color: var(--tc-coral); color: var(--tc-coral); }
.tc-cc-btn.primary { background: #fff; color: var(--tc-green-deep); border-color: #fff; }
.tc-cc-btn.primary:hover { color: var(--tc-green-deep); transform: translateY(-1px); }

@media (max-width: 720px) {
  .tc-cc { grid-template-columns: 1fr; padding: 16px 18px; left: 12px; right: 12px; bottom: 12px; }
  .tc-cc-actions { justify-content: space-between; }
  .tc-cc-btn { flex: 1; padding: 10px 12px; font-size: 13px; }
}

.tc-cc-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 24, 16, 0.74);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; transition: opacity .3s;
}
.tc-cc-modal.open { display: flex; opacity: 1; }
.tc-cc-modal-card {
  background: var(--tc-green-deep);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  max-width: 560px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  color: #fff; font-family: "DM Sans", system-ui, sans-serif;
  padding: 32px;
}
.tc-cc-modal-card h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.tc-cc-modal-card > p { margin: 0 0 24px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.6; }
.tc-cc-row { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.tc-cc-row:last-of-type { border-bottom: 1px solid rgba(255,255,255,0.1); }
.tc-cc-row-body { flex: 1; }
.tc-cc-row-body strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.tc-cc-row-body span { color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.55; display: block; }
.tc-cc-row-body .badge {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: rgba(232,155,124,0.18); color: var(--tc-coral);
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.tc-cc-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.tc-cc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.tc-cc-switch .track { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,0.15); transition: background .2s; cursor: pointer; }
.tc-cc-switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.tc-cc-switch input:checked ~ .track { background: var(--tc-green); }
.tc-cc-switch input:checked ~ .track::after { transform: translateX(20px); }
.tc-cc-switch input:disabled ~ .track { opacity: 0.5; cursor: not-allowed; }
.tc-cc-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; justify-content: flex-end; }

.tc-cc-reopen {
  position: fixed; left: 18px; bottom: 18px; z-index: 9997;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--tc-green); color: #fff;
  border: none; cursor: pointer; font-size: 22px; line-height: 1;
  box-shadow: 0 6px 20px rgba(20,46,29,0.4);
  opacity: 0; transform: translateY(10px) scale(0.9);
  transition: opacity .3s, transform .3s;
}
.tc-cc-reopen.show { opacity: 1; transform: none; }
.tc-cc-reopen:hover { transform: translateY(-2px); }
@media (max-width: 560px) { .tc-cc-reopen { width: 42px; height: 42px; font-size: 19px; } }

/* Páginas legales */
.legal-page { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 110px); background: var(--paper); }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(30px, 4.5vw, 46px); margin: 0 0 8px; }
.legal-updated { color: var(--carbon-50); font-size: 13.5px; margin: 0 0 36px; }
.legal-page h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.4vw, 26px); margin: 38px 0 12px; color: var(--green); letter-spacing: -0.02em; }
.legal-page h3 { font-size: 16px; font-weight: 600; margin: 22px 0 8px; }
.legal-page p, .legal-page li { font-size: 15.5px; line-height: 1.7; color: var(--carbon-70); }
.legal-page ul { padding-left: 20px; margin: 10px 0; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--green); border-bottom: 1px solid currentColor; }
.legal-page strong { color: var(--carbon); }
.legal-fill { background: #fff5e9; border: 1px dashed var(--coral); border-radius: 6px; padding: 2px 7px; font-weight: 600; color: #9a5a3a; }
.legal-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--cream); font-weight: 600; color: var(--carbon); }
