/* ProyectoResidencia — shared site styles */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --green: #115e59;
  --green-light: #0d9488;
  --green-bg: #ccfbf1;
  --gold-btn: #b8860b;
  --gold-btn-hover: #a0750a;
  --ink: #1a1a2e;
  --body: #444;
  --muted: #666;
  --border: #e2e6ef;
  --bg: #f8f9fa;
  --bg-soft: #eef0f4;
  --white: #fff;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--body); line-height: 1.6; background: var(--white); }

/* NAV */
nav { position: fixed; top: 0; width: 100%; z-index: 100; background: var(--white); box-shadow: 0 1px 8px rgba(0,0,0,0.08); padding: 0 40px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-size: 22px; font-weight: 800; color: var(--green); text-decoration: none; letter-spacing: -0.5px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--green); }
.nav-links a.active { color: var(--green); font-weight: 700; }
.btn-login { background: var(--green); color: var(--white) !important; padding: 9px 22px; border-radius: 8px; font-weight: 600; }
.btn-login:hover { background: var(--green-light) !important; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 6px 0; }

/* SHARED PAGE LAYOUT */
.page { padding-top: 64px; }
.section { padding: 80px 40px; }
.section-narrow { max-width: 760px; margin: 0 auto; }
.section-wide { max-width: 1100px; margin: 0 auto; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }

/* TYPOGRAPHY */
h1.page-title { font-size: 48px; font-weight: 800; color: var(--ink); letter-spacing: -1.2px; line-height: 1.1; margin-bottom: 18px; }
h2.section-title { font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 18px; }
h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 28px 0 12px; line-height: 1.3; }
.lead { font-size: 18px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
p { font-size: 16px; color: var(--body); line-height: 1.75; margin-bottom: 16px; }
ul, ol { margin: 0 0 16px 22px; }
li { font-size: 16px; color: var(--body); line-height: 1.75; margin-bottom: 6px; }
a { color: var(--green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green-light); text-decoration: underline; }
strong { color: var(--ink); }
hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* HERO BLOCK ON CONTENT PAGES */
.page-hero { padding: 120px 40px 56px; background: linear-gradient(180deg, var(--green-bg) 0%, var(--white) 100%); }
.page-hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }

/* BUTTONS */
.btn-primary { display: inline-block; background: var(--gold-btn); color: var(--white); padding: 14px 32px; border-radius: 12px; font-size: 16px; font-weight: 700; text-decoration: none; transition: background 0.2s; cursor: pointer; border: none; font-family: inherit; }
.btn-primary:hover { background: var(--gold-btn-hover); color: var(--white); text-decoration: none; }
.btn-secondary { display: inline-block; background: var(--green); color: var(--white); padding: 14px 28px; border-radius: 12px; font-size: 15px; font-weight: 700; text-decoration: none; transition: background 0.2s; cursor: pointer; border: none; font-family: inherit; }
.btn-secondary:hover { background: var(--green-light); color: var(--white); text-decoration: none; }
.btn-outline { display: inline-block; border: 2px solid var(--green); color: var(--green); padding: 12px 26px; border-radius: 12px; font-size: 15px; font-weight: 700; text-decoration: none; transition: all 0.2s; }
.btn-outline:hover { background: var(--green); color: var(--white); text-decoration: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }

/* CARDS */
.card { background: var(--white); border-radius: 16px; padding: 28px; box-shadow: 0 2px 14px rgba(0,0,0,0.05); border: 1px solid var(--border); }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ICON */
.icon-circle { width: 44px; height: 44px; border-radius: 12px; background: var(--green-bg); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.icon-circle svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* FORMS */
.form { max-width: 520px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--ink); }
.form-row input, .form-row select, .form-row textarea { padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 15px; font-family: inherit; color: var(--ink); background: var(--white); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(13,148,136,0.15); }
.form-row textarea { min-height: 130px; resize: vertical; }
.form-row-checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.form-row-checkbox input { margin-top: 3px; }

/* FAQ ACCORDION */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: none; border: none; padding: 22px 0; text-align: left; font-size: 17px; font-weight: 700; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit; }
.faq-q::after { content: "+"; font-size: 24px; color: var(--green); font-weight: 400; flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { display: none; padding: 0 0 22px; font-size: 15px; color: var(--body); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* BLOG INDEX CARDS */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.blog-card { background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 14px rgba(0,0,0,0.06); border: 1px solid var(--border); display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(17,94,89,0.13); text-decoration: none; }
.blog-card-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--green), var(--green-light)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.55); font-size: 80px; font-weight: 800; letter-spacing: -3px; }
.blog-card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-size: 12px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; }
.blog-card-title { font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.3; margin-bottom: 10px; }
.blog-card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; flex: 1; }
.blog-card-link { font-size: 14px; font-weight: 700; color: var(--green); margin-top: 14px; }

/* BLOG ARTICLE */
.article { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.article-meta { font-size: 13px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 14px; }
.article h1 { font-size: 38px; font-weight: 800; color: var(--ink); letter-spacing: -0.8px; line-height: 1.15; margin-bottom: 24px; }
.article .lead { font-size: 19px; }
.article p { font-size: 17px; line-height: 1.8; }
.article h2 { font-size: 26px; font-weight: 800; color: var(--ink); margin: 40px 0 14px; line-height: 1.25; }
.article h3 { font-size: 20px; }
.article ul, .article ol { margin-left: 26px; }
.article li { font-size: 17px; line-height: 1.8; }
.article blockquote { border-left: 4px solid var(--green); padding: 4px 0 4px 20px; margin: 24px 0; color: var(--ink); font-style: italic; font-size: 17px; }
.article-cta { background: var(--green-bg); border-radius: 14px; padding: 28px 32px; margin: 40px 0 12px; text-align: center; }
.article-cta h3 { color: var(--ink); margin-top: 0; }
.article-cta p { color: var(--body); margin-bottom: 18px; }

/* SHARED CTA STRIP */
.cta-strip { background: var(--green); padding: 64px 40px; text-align: center; color: var(--white); }
.cta-strip h2 { color: var(--white); font-size: 28px; margin-bottom: 12px; font-weight: 800; letter-spacing: -0.4px; }
.cta-strip p { color: rgba(255,255,255,0.85); font-size: 16px; margin-bottom: 24px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* FOOTER */
footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 56px 8% 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer-logo { font-size: 22px; font-weight: 800; color: var(--white); letter-spacing: -0.5px; margin-bottom: 10px; }
.footer-grid h4 { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-grid p, .footer-grid a { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.85; text-decoration: none; display: block; }
.footer-grid a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { max-width: 1200px; margin: 32px auto 0; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.4); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .card-grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); padding: 18px; gap: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: block; }
  .section { padding: 48px 20px; }
  .page-hero { padding: 96px 20px 40px; }
  h1.page-title { font-size: 32px; }
  h2.section-title { font-size: 24px; }
  .lead { font-size: 16px; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .article { padding: 40px 16px 56px; }
  .article h1 { font-size: 28px; }
  .article h2 { font-size: 22px; }
  .article p, .article li { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-strip { padding: 48px 20px; }
}
