/* ==========================================================================
 * EcoRadar Urbà · portada comercial (index.html). Fa servir la barra i els botons de portal.css.
 * ========================================================================== */

.pt { background: #f8fafc; }
.pt-saltar { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; background: #fff; border-radius: 8px; }
.pt-saltar:focus { left: 12px; }
.pt-marca { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: #0f172a; line-height: 1.1; }
/* portal.css fixa 40×40 i ombra a totes les imatges de la marca: el logotip apaïsat de Kawaru en queda fora. */
.portal-brand img.pt-kawaru { height: 30px; width: auto; object-fit: contain; border-radius: 0; box-shadow: none; margin-left: 14px; padding-left: 14px; border-left: 1.5px solid rgba(15, 81, 50, 0.2); }

.pt-menu { display: flex; gap: 4px; }
.pt-menu a { padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #334155; text-decoration: none; }
.pt-menu a:hover { color: #0f5132; background: #f0fdf4; }

/* Botons propis de la portada (més grans i amb més contrast que els del portal). */
.pt-ctes { display: flex; flex-wrap: wrap; gap: 12px; }
.pt-boto { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-size: 16px; font-weight: 700; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; }
.pt-boto-fort { background: #34d399; color: #062417; box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35); }
.pt-boto-fort:hover { background: #6ee7b7; transform: translateY(-2px); }
.pt-boto-clar { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.pt-boto-clar:hover { background: rgba(255, 255, 255, 0.18); }
.pt-boto-verd { background: linear-gradient(135deg, #047857 0%, #065f46 100%); color: #fff; box-shadow: 0 8px 22px rgba(4, 120, 87, 0.3); }
.pt-boto-verd:hover { transform: translateY(-2px); }
.pt-boto:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pt-boto-verd:focus-visible { outline-color: #10b981; }

/* --- Hero --- */
.pt-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 15%, rgba(52, 211, 153, 0.28), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(14, 165, 233, 0.22), transparent 60%),
    linear-gradient(160deg, #062417 0%, #0b3b27 45%, #0f5132 100%);
}
.pt-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.18;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.pt-hero-in { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 72px 24px 84px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.pt-xip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #d1fae5; margin-bottom: 22px; }
.pt-punt { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25); animation: pulse-dot 2s infinite; }
.pt-hero h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.07; letter-spacing: -0.035em; font-weight: 800; margin-bottom: 22px; }
.pt-hero h1 em { font-style: normal; color: #6ee7b7; }
.pt-hero-sub { font-size: 18px; line-height: 1.6; color: #d1fae5; max-width: 560px; margin-bottom: 32px; }
.pt-garanties { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 14px; color: #a7f3d0; }
.pt-garanties li::before { content: "✓"; margin-right: 8px; color: #34d399; font-weight: 800; }

.pt-hero-visual { position: relative; margin: 0; }
.pt-finestra { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12); transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.pt-finestra-barra { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.pt-finestra-barra i { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.pt-finestra-barra i:nth-child(1) { background: #f87171; } .pt-finestra-barra i:nth-child(2) { background: #fbbf24; } .pt-finestra-barra i:nth-child(3) { background: #34d399; }
.pt-finestra-barra span { margin-left: 10px; font-size: 12px; color: #64748b; font-weight: 600; }
.pt-finestra img { display: block; width: 100%; height: auto; }
.pt-flotant { position: absolute; display: flex; flex-direction: column; padding: 12px 16px; border-radius: 14px; background: #fff; color: #0f172a; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28); font-size: 12px; }
.pt-flotant strong { font-size: 15px; }
.pt-flotant span { color: #64748b; font-weight: 600; }
.pt-flotant::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; }
.pt-flotant-a { left: -28px; bottom: 56px; padding-left: 20px; }
.pt-flotant-a::before { background: #f97316; }
.pt-flotant-b { right: -14px; top: -18px; padding-left: 20px; }
.pt-flotant-b::before { background: #ef4444; }
.pt-hero-visual figcaption { margin-top: 18px; font-size: 13px; color: #a7f3d0; text-align: right; }

/* --- Franja de fonts --- */
.pt-fonts { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 26px 24px; text-align: center; }
.pt-fonts p { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #64748b; margin-bottom: 14px; }
.pt-fonts ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; max-width: 1100px; margin: 0 auto; }
.pt-fonts li { padding: 7px 14px; border-radius: 999px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: 14px; font-weight: 700; color: #334155; }

/* --- Seccions --- */
.pt-seccio { max-width: 1180px; margin: 0 auto; padding: 88px 24px 0; }
.pt-estret { max-width: 860px; }
.pt-pretitol { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #059669; margin-bottom: 10px; }
.pt-seccio > h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; color: #0f172a; max-width: 820px; margin-bottom: 36px; }
.pt-centre { text-align: center; margin-top: 36px; }
.pt-nota { margin-top: 20px; font-size: 14px; color: #64748b; }
.pt-nota a { color: #047857; font-weight: 700; }

.pt-reptes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pt-repte { position: relative; padding: 30px 28px; border-radius: 20px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05); overflow: hidden; }
.pt-repte::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; }
.pt-repte-calor::before { background: linear-gradient(90deg, #f97316, #ef4444); }
.pt-repte-aigua::before { background: linear-gradient(90deg, #0ea5e9, #2563eb); }
.pt-repte-aire::before { background: linear-gradient(90deg, #10b981, #14b8a6); }
.pt-icona { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-size: 24px; margin-bottom: 16px; }
.pt-repte-calor .pt-icona { background: #fff7ed; } .pt-repte-aigua .pt-icona { background: #eff6ff; } .pt-repte-aire .pt-icona { background: #ecfdf5; }
.pt-repte h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; color: #0f172a; }
.pt-repte p { font-size: 15px; color: #475569; line-height: 1.6; }
.pt-exemple { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #e2e8f0; font-size: 14px !important; font-weight: 600; color: #0f5132 !important; }

/* Mostres del producte: text + captura, alternades */
.pt-mostra { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; margin-bottom: 72px; }
.pt-mostra-inv .pt-mostra-text { order: 2; }
.pt-mostra-text h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: #0f172a; margin-bottom: 12px; }
.pt-mostra-text > p { font-size: 17px; color: #475569; line-height: 1.6; margin-bottom: 18px; }
.pt-llista { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pt-llista li { position: relative; padding-left: 30px; font-size: 15px; color: #334155; font-weight: 600; }
.pt-llista li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #d1fae5; color: #047857; font-size: 12px; font-weight: 800; }
.pt-captura { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 30px 60px -24px rgba(15, 81, 50, 0.35); }
.pt-captura img { display: block; width: 100%; height: auto; }

/* Xifres */
.pt-xifres { max-width: 1180px; margin: 16px auto 0; padding: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #062417 0%, #0f5132 100%); box-shadow: 0 24px 50px -20px rgba(6, 36, 23, 0.6); }
.pt-xifres div { display: flex; flex-direction: column; gap: 6px; }
.pt-xifres div + div { border-left: 1px solid rgba(255, 255, 255, 0.14); padding-left: 24px; }
.pt-xifres strong { font-size: 44px; font-weight: 800; line-height: 1; color: #6ee7b7; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pt-xifres span { font-size: 14px; color: #d1fae5; line-height: 1.45; }

/* Per a qui */
.pt-perfils { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pt-perfils article { padding: 24px; border-radius: 18px; background: #fff; border: 1px solid #e2e8f0; }
.pt-perfils h3 { font-size: 17px; font-weight: 800; color: #0f5132; margin-bottom: 8px; }
.pt-perfils p { font-size: 14px; color: #475569; line-height: 1.55; }

/* Passos */
.pt-passos { list-style: none; counter-reset: pas; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.pt-passos li { counter-increment: pas; position: relative; padding: 64px 22px 24px; border-radius: 18px; background: #fff; border: 1px solid #e2e8f0; }
.pt-passos li::before { content: counter(pas); position: absolute; left: 22px; top: 20px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #047857; color: #fff; font-weight: 800; }
.pt-passos strong { display: block; font-size: 17px; color: #0f172a; margin-bottom: 6px; }
.pt-passos span { font-size: 14px; color: #475569; line-height: 1.5; }

/* Municipis en servei */
.pt-municipis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pt-municipi { border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05); }
.pt-municipi-cap { padding: 26px 26px 22px; color: #fff; background: linear-gradient(135deg, #0f5132 0%, #1e3a8a 100%); }
.pt-municipi-cap-b { background: linear-gradient(135deg, #065f46 0%, #0e7490 100%); }
.pt-municipi-cap span { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #a7f3d0; }
.pt-municipi-cap h3 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0; }
.pt-municipi-cap p { font-size: 14px; color: #d1fae5; }
.pt-municipi ul { list-style: none; padding: 20px 26px 24px; display: flex; flex-direction: column; gap: 8px; }
.pt-municipi li { font-size: 15px; color: #334155; font-weight: 600; padding-left: 22px; position: relative; }
.pt-municipi li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: #10b981; }

/* Preguntes */
.pt-faq { display: flex; flex-direction: column; gap: 12px; }
.pt-faq details { border-radius: 16px; background: #fff; border: 1px solid #e2e8f0; padding: 0 22px; }
.pt-faq summary { cursor: pointer; list-style: none; padding: 20px 30px 20px 0; position: relative; font-size: 17px; font-weight: 700; color: #0f172a; }
.pt-faq summary::-webkit-details-marker { display: none; }
.pt-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; color: #047857; }
.pt-faq details[open] summary::after { content: "–"; }
.pt-faq details p { padding: 0 0 20px; font-size: 15px; color: #475569; line-height: 1.6; }
.pt-faq summary:focus-visible { outline: 3px solid #10b981; outline-offset: 4px; border-radius: 6px; }

/* CTA final */
.pt-final { max-width: 1180px; margin: 96px auto 0; padding: 52px 56px; border-radius: 28px; display: flex; align-items: center; justify-content: space-between; gap: 32px; color: #fff; background: radial-gradient(600px 300px at 90% 0%, rgba(52, 211, 153, 0.3), transparent 60%), linear-gradient(135deg, #062417 0%, #0f5132 100%); }
.pt-final h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 10px; }
.pt-final p { font-size: 17px; color: #d1fae5; }
.pt-final .pt-ctes { flex-shrink: 0; }

.pt-peu { max-width: 1180px; margin: 72px auto 0; padding: 32px 24px 40px; border-top: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; color: #64748b; }
.pt-peu-marques { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pt-peu-marques img { height: 30px; width: auto; object-fit: contain; }
.pt-peu nav { display: flex; gap: 18px; }
.pt-peu a { color: #475569; font-weight: 600; text-decoration: none; }
.pt-peu a:hover { color: #0f5132; }

/* --- Adaptatiu --- */
@media (max-width: 1100px) {
  .pt-menu { display: none; }
  .pt-perfils, .pt-passos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .pt-hero-in { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; }
  .pt-finestra { transform: none; }
  .pt-flotant-a { left: 12px; } .pt-flotant-b { right: 12px; }
  .pt-reptes { grid-template-columns: 1fr; }
  .pt-mostra { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .pt-mostra-inv .pt-mostra-text { order: 0; }
  .pt-xifres { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: 24px; margin-right: 24px; }
  .pt-xifres div:nth-child(3) { border-left: 0; padding-left: 0; }
  .pt-final { flex-direction: column; align-items: flex-start; margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 640px) {
  .pt-kawaru { display: none; }
  .pt-hero-in { padding: 40px 16px 56px; }
  .pt-hero-sub { font-size: 16px; }
  .pt-ctes, .pt-ctes .pt-boto { width: 100%; justify-content: center; }
  .pt-flotant { display: none; }
  .pt-seccio { padding: 64px 16px 0; }
  .pt-fonts { padding: 22px 16px; }
  .pt-fonts li { font-size: 13px; padding: 6px 12px; }
  .pt-perfils, .pt-passos, .pt-municipis { grid-template-columns: 1fr; }
  .pt-xifres { grid-template-columns: 1fr; margin-left: 16px; margin-right: 16px; padding: 28px 24px; }
  .pt-xifres div + div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 18px; }
  .pt-xifres strong { font-size: 38px; }
  .pt-final { margin: 64px 16px 0; padding: 32px 22px; }
  .pt-peu { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-punt { animation: none; }
  .pt-boto { transition: none; }
  .pt-boto:hover { transform: none; }
}
