/* ── MORVEDRE COMUNIDADES — Estilos compartidos ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #1B3A5C;
  --blue-dark:   #0F2236;
  --blue-mid:    #234B73;
  --blue-light:  #EBF2FA;
  --green:       #3A8F3F;
  --green-vivid: #48B14E;
  --green-light: #E8F5E9;
  --green-dark:  #2E7033;
  --white:  #FFFFFF;
  --off:    #F7F9FC;
  --border: #E2EAF2;
  --text:   #1A2533;
  --muted:  #5A6B7C;
  --subtle: #8FA3B4;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --r: 12px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--white); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  height: 68px; display: flex; align-items: center; padding: 0 40px;
  background: var(--white); border-bottom: 1px solid var(--border);
}
.nav-in { width: 100%; max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 42px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 7px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--blue-light); color: var(--blue); }
.nav-links a.active { background: var(--green-light); color: var(--green-dark); font-weight: 700; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-phone { font-size: 13px; font-weight: 600; color: var(--muted); }
.btn-nav { padding: 8px 18px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; transition: background .15s; }
.btn-nav:hover { background: var(--blue-mid); }
@media(max-width: 768px) { .nav-links { display: none; } nav { padding: 0 20px; } }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-mid) 100%);
  padding: 64px 40px 72px; position: relative; overflow: hidden;
}
.page-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--green-vivid), transparent); }
.page-hero::after { content: ''; position: absolute; top: -80px; right: -60px; width: 450px; height: 450px; border-radius: 50%; background: radial-gradient(circle, rgba(72,177,78,.1) 0%, transparent 65%); pointer-events: none; }
.page-hero-in { max-width: 1160px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); padding: 5px 14px; border-radius: 100px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--green-vivid); margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -.025em; margin-bottom: 14px; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,.65); max-width: 580px; line-height: 1.65; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.45); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,.55); transition: color .15s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.25); }

/* ── SECCIÓN ── */
.sec { padding: 88px 40px; }
.sec-in { max-width: 1160px; margin: 0 auto; }
@media(max-width: 768px) { .sec { padding: 64px 20px; } }
.sec-sm { padding: 64px 40px; }
@media(max-width: 768px) { .sec-sm { padding: 48px 20px; } }

.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.tag::before { content: ''; width: 24px; height: 2px; background: var(--green); border-radius: 2px; }

h2.big { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; color: var(--blue); }
p.lead { font-size: 16px; color: var(--muted); line-height: 1.72; }

.bg-off { background: var(--off); }
.bg-blue { background: var(--blue); }

/* ── PROSE (artículos de blog) ── */
.prose { max-width: 720px; font-size: 16px; color: var(--text); line-height: 1.8; }
.prose h2 { font-size: 1.5rem; font-weight: 800; color: var(--blue); margin: 40px 0 14px; letter-spacing: -.02em; }
.prose h3 { font-size: 1.15rem; font-weight: 700; color: var(--blue); margin: 28px 0 10px; }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 18px; }
.prose li { margin-bottom: 8px; }
.prose strong { font-weight: 700; color: var(--blue); }
.prose blockquote { border-left: 3px solid var(--green); padding: 14px 20px; background: var(--green-light); border-radius: 0 8px 8px 0; margin: 24px 0; font-style: italic; color: var(--muted); }
.prose a { color: var(--green); font-weight: 600; border-bottom: 1px solid var(--green-light); transition: border-color .15s; }
.prose a:hover { border-color: var(--green); }

/* ── CTA BOX ── */
.cta-box {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-radius: 16px; padding: 48px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--green), var(--green-vivid), transparent); }
.cta-box h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 800; color: #fff; margin-bottom: 6px; }
.cta-box p { font-size: 15px; color: rgba(255,255,255,.65); }
.cta-box-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-cta-green { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 8px; background: var(--green); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .15s; }
.btn-cta-green:hover { background: var(--green-vivid); }
.btn-cta-white { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 8px; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s; }
.btn-cta-white:hover { background: rgba(255,255,255,.18); }

/* ── FOOTER ── */
footer { background: var(--blue-dark); padding: 64px 40px 28px; color: rgba(255,255,255,.55); }
@media(max-width: 768px) { footer { padding: 48px 20px 24px; } }
.foot-in { max-width: 1160px; margin: 0 auto; }
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 24px; }
@media(max-width: 768px) { .foot-top { grid-template-columns: 1fr; gap: 32px; } }
.foot-logo img { height: 46px; margin-bottom: 12px; }
.foot-tagline { font-size: 13px; font-style: italic; color: rgba(255,255,255,.4); margin-bottom: 20px; }
.foot-contacts { display: flex; flex-direction: column; gap: 8px; }
.foot-contacts a { font-size: 13px; display: flex; align-items: center; gap: 8px; transition: color .15s; }
.foot-contacts a:hover { color: #fff; }
.foot-col-h { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 16px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 13px; color: rgba(255,255,255,.55); transition: color .15s; }
.foot-col a:hover { color: #fff; }
.foot-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; }
.foot-bot-links { display: flex; gap: 20px; }
.foot-bot-links a { color: rgba(255,255,255,.35); transition: color .15s; }
.foot-bot-links a:hover { color: #fff; }

/* ── WA FAB ── */
.wa-fab { position: fixed; bottom: 28px; right: 28px; z-index: 200; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.4); transition: transform .2s var(--ease); }
.wa-fab:hover { transform: scale(1.1); }
