/* JAMAICA SENIORS - Design System
   Residencia Botánica & Club de Longevidad Activa (Pilar, Argentina)
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --teal-deep: #0A3638;
  --teal-dark: #072628;
  --terracotta: #D97746;
  --terracotta-dark: #B55628;
  --palm-green: #2E8B57;
  --sage-soft: #52A478;
  --honey-gold: #E09F3E;
  --sand-linen: #FAF7F2;
  --sand-cream: #F4EFE6;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --border-light: #E2D9CC;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(10, 54, 56, 0.06);
  --shadow-md: 0 10px 25px rgba(10, 54, 56, 0.08);
  --shadow-lg: 0 20px 40px rgba(10, 54, 56, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--sand-linen);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--teal-deep);
  font-weight: 600;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Utility Top Bar */
.top-bar {
  background-color: var(--teal-dark);
  color: #E2E8F0;
  font-size: 0.82rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(224, 159, 62, 0.25);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.top-bar-badge {
  background-color: rgba(217, 119, 70, 0.2);
  color: #FFA570;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-right: 0.75rem;
}

.top-bar-contact {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-bar-contact a {
  color: var(--honey-gold);
  font-weight: 600;
}

.top-bar-contact a:hover {
  text-decoration: underline;
}

/* Site Header */
.site-header {
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
  max-width: 1240px;
  margin: 0 auto;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-brand svg {
  width: 44px;
  height: 44px;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--teal-deep);
  line-height: 1;
}

.logo-title .accent {
  color: var(--terracotta);
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--palm-green);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-deep);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--terracotta);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--terracotta);
  border-radius: 2px;
}

.nav-cta {
  background-color: var(--teal-deep);
  color: #FFFFFF !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: 30px;
  letter-spacing: 0.4px;
  border: 1px solid var(--teal-deep);
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background-color: var(--terracotta);
  border-color: var(--terracotta);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--teal-deep);
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-dark) 100%);
  color: #FFFFFF;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(217, 119, 70, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  color: #FFFFFF;
  font-size: 2.85rem;
  margin-bottom: 1.25rem;
}

.page-hero-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #E2E8F0;
  max-width: 720px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

/* Section Common */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--terracotta);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.35rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--honey-gold));
  margin: 1.25rem auto 1.5rem auto;
  border-radius: 2px;
}

/* Feature Grid & Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  background-color: rgba(46, 139, 87, 0.12);
  color: var(--palm-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  color: var(--teal-deep);
}

.card p {
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.spec-list {
  list-style: none;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  margin-top: 1rem;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  font-size: 0.88rem;
  border-bottom: 1px dashed rgba(226, 217, 204, 0.6);
}

.spec-list li span {
  color: var(--text-muted);
}

.spec-list li strong {
  color: var(--teal-deep);
  font-weight: 600;
}

/* Split Rows & Media */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.media-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #FFFFFF;
  position: relative;
  width: 100%;
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.85rem 1.75rem;
  border-radius: 30px;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--terracotta);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--terracotta-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--teal-deep);
  border: 2px solid var(--teal-deep);
}

.btn-outline:hover {
  background-color: var(--teal-deep);
  color: #FFFFFF;
}

/* Interactive Tabs */
.tab-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-light);
  color: var(--teal-deep);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active, .tab-btn:hover {
  background-color: var(--teal-deep);
  color: #FFFFFF;
  border-color: var(--teal-deep);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Footer */
.site-footer {
  background-color: var(--teal-dark);
  color: #94A3B8;
  padding: 4.5rem 0 2rem 0;
  border-top: 3px solid var(--terracotta);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--terracotta);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #CBD5E1;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--terracotta);
  padding-left: 4px;
}

.afip-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #CBD5E1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
  .page-hero-grid, .split-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    font-size: 2.15rem;
  }
  .top-bar-container {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }
}
