/* InmueblesEnRegla – Paleta neutral (negro / gris + dorado) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --primary: #1a1a1a;
  --primary-dark: #0a0a0a;
  --primary-mid: #2d2d2d;
  --primary-light: #404040;
  --accent: #c4a35a;
  --accent-soft: #f7f1e3;
  --accent-hover: #b08d45;
  --success: #059669;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --bg: #f7f7f5;
  --bg-alt: #eeeeeb;
  --card: #ffffff;
  --text: #141414;
  --text-muted: #6b6b6b;
  --border: #e4e4e0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 10px 20px -5px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 20px 40px -10px rgba(0, 0, 0, 0.06);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-light); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent); }

/* Header */
.header {
  background: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  padding: 0.85rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: white;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo:hover { color: white; }
.logo svg { width: 34px; height: 34px; flex-shrink: 0; }
.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  align-items: center;
}
.nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.15s;
}
.nav a:hover { color: white; }
.nav-cta {
  background: var(--accent) !important;
  color: #141414 !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(196, 163, 90, 0.3);
  transition: all 0.2s ease !important;
}
.nav-cta:hover {
  background: var(--accent-hover) !important;
  color: #141414 !important;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(196, 163, 90, 0.12), transparent),
    linear-gradient(165deg, #141414 0%, #1f1f1f 45%, #2a2a2a 100%);
  color: white;
  padding: 4rem 1.5rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.2vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
  position: relative;
}
.hero h1 br { display: block; content: ''; }
.hero h1 em,
.hero h1 .highlight {
  font-style: normal;
  font-weight: 800;
  color: var(--accent);
}
.hero p,
.hero-desc {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  opacity: 0.82;
  line-height: 1.6;
  position: relative;
  font-weight: 400;
  color: white;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: var(--font);
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--accent);
  color: #141414;
  box-shadow: 0 2px 10px rgba(196, 163, 90, 0.35);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196, 163, 90, 0.45);
  color: #141414;
}
.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.65);
  color: white;
}
.container .btn-outline,
.action-bar .btn-outline {
  color: var(--primary);
  border-color: var(--border);
  background: white;
}
.container .btn-outline:hover,
.action-bar .btn-outline:hover {
  background: var(--bg-alt);
  border-color: #d0d0cc;
  color: var(--primary-dark);
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  position: relative;
}

/* Main */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
  padding: 0.35rem;
  background: var(--bg-alt);
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
}
.tab {
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  background: transparent;
  border: none;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
  font-family: var(--font);
  white-space: nowrap;
}
.tab.active {
  background: var(--card);
  color: var(--primary);
  box-shadow: var(--shadow);
}
.tab:hover:not(.active) {
  color: var(--text);
  background: rgba(255,255,255,0.6);
}

/* Checklist */
.checklist { display: grid; gap: 0.75rem; }
.check-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}
.check-item:hover {
  box-shadow: var(--shadow-md);
  border-color: #d0d0cc;
}
.check-item.done {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.check-item.done h3 {
  text-decoration: line-through;
  opacity: 0.7;
}
.check-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--success);
  cursor: pointer;
  border-radius: 6px;
}
.check-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.check-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.check-item .badge {
  font-size: 0.7rem;
  font-weight: 650;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.badge-obligatorio { background: #fef2f2; color: #b91c1c; }
.badge-recomendado { background: #f7f1e3; color: #8a6d2b; }
.badge-autonómico { background: #f0f0ee; color: #404040; }
.details {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  display: none;
  line-height: 1.55;
}
.check-item.open .details { display: block; }
.toggle-details {
  background: none;
  border: none;
  color: var(--primary-light);
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 600;
  margin-top: 0.35rem;
  padding: 0;
  font-family: var(--font);
}
.toggle-details:hover { color: var(--accent); }

/* Progress */
.progress-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.progress-bar-container {
  background: var(--border);
  border-radius: 999px;
  height: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #059669, #34d399);
  width: 0%;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 999px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.card-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f0f0ee, #e4e4e0);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

/* CTA */
.cta {
  background:
    radial-gradient(ellipse 70% 80% at 50% 120%, rgba(196, 163, 90, 0.15), transparent),
    linear-gradient(165deg, #141414 0%, #2a2a2a 100%);
  color: white;
  border-radius: 20px;
  padding: 2.75rem 2rem;
  text-align: center;
  margin: 3rem 0;
  box-shadow: var(--shadow-lg);
}
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 0.65rem;
  letter-spacing: -0.03em;
}
.cta p {
  opacity: 0.85;
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
}
.cta .btn-primary {
  background: var(--accent);
  color: #141414;
}
.cta .btn-primary:hover {
  background: var(--accent-hover);
  color: #141414;
}

/* Footer */
.footer {
  background: #141414;
  color: #9a9a9a;
  padding: 3rem 1.5rem 1.75rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer h4 {
  color: white;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.footer a {
  color: #9a9a9a;
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer a:hover { color: white; }
.footer-bottom {
  max-width: 1120px;
  margin: 2.25rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.8rem;
  color: #6b6b6b;
}

/* Cookie */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #141414;
  color: #e4e4e0;
  padding: 1.1rem 1.25rem;
  z-index: 9999;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.35);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cookie-content {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-content p {
  flex: 1;
  min-width: 240px;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  color: #c4c4c0;
}
.cookie-content a { color: var(--accent); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 0.55rem; flex-shrink: 0; }

/* Utility */
.hidden { display: none !important; }
.mt-2 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: 1rem; }
.text-center { text-align: center; }

/* Action + share */
.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}
.btn-action { padding: 0.7rem 1.25rem; font-size: 0.9rem; }
.share-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.share-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: none;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.share-whatsapp { background: #25D366; }
.share-telegram { background: #2AABEE; }
.share-twitter { background: #141414; }
.share-copy { background: #2d2d2d; }
.share-native { background: #404040; }
.copy-feedback {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 600;
}

/* Google review */
.btn-google-review {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  border-radius: 999px;
  padding: 0.6rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}
.btn-google-review:hover {
  background: #f8f9fa;
  border-color: #c6c6c6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  color: #1f1f1f;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .nav { width: 100%; gap: 1rem; }
  .check-item { grid-template-columns: auto 1fr; }
  .check-item .badge { grid-column: 2; justify-self: start; }
  .tabs { width: 100%; overflow-x: auto; }
  .hero { padding: 3rem 1.25rem 3.5rem; }
  .cookie-content { flex-direction: column; align-items: stretch; }
  .cookie-buttons { width: 100%; }
  .cookie-buttons .btn { flex: 1; }
}
