/* Google Fonts Import: Classic Modern Architectural Palette */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  /* Classic Modern Architectural Color Palette */
  --bg-primary: #FAF8F5;          /* Warm Alabaster / Chalk */
  --bg-secondary: #F2EFE9;        /* Warm Stone / Natural Linen */
  --bg-card: #FFFFFF;             /* Pure White */
  --bg-card-hover: #FFFFFF;
  
  --border-color: #E2DDD5;        /* Soft Warm Border */
  --border-hover: #B8860B;        /* Architectural Bronze/Gold Accent */
  
  --text-primary: #1C1D1F;        /* Deep Charcoal / Obsidian */
  --text-secondary: #5A5C60;      /* Warm Slate Gray */
  --text-muted: #8C8E93;          /* Muted Gray */
  
  --color-accent: #9E763B;        /* Warm Architectural Gold / Bronze */
  --color-accent-dark: #7A5B2B;
  --color-navy: #1E293B;         /* Elegant Dark Slate Navy */
  
  --gradient-accent: linear-gradient(135deg, #9E763B 0%, #C28E58 100%);
  --shadow-card: 0 10px 30px rgba(28, 29, 31, 0.05);
  --shadow-hover: 0 20px 40px rgba(28, 29, 31, 0.1);
  
  --font-heading: 'Playfair Display', serif;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.text-accent {
  color: var(--color-accent);
  font-style: italic;
}

.subtitle {
  color: var(--color-accent);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

/* Glass & Card Style */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

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

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.logo span {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.1rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  font-family: var(--font-display);
  transition: var(--transition-fast);
  padding: 5px 0;
  position: relative;
}

nav a:hover, nav a.active {
  color: var(--text-primary);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition-fast);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

.btn-cta {
  background: var(--text-primary);
  color: #FFFFFF !important;
  border: 1px solid var(--text-primary);
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-cta:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(158, 118, 59, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1.6rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background: rgba(28, 29, 31, 0.03);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
}

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

.hero-content h1 {
  font-size: 3.6rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Interactive Antes y Después Component --- */
.before-after-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.ba-toggle-buttons {
  display: flex;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.ba-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.ba-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ba-view {
  display: none;
  animation: fadeIn 0.4s ease;
}

.ba-view.active {
  display: block;
}

.ba-visual-box {
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ba-view-before .ba-visual-box {
  background: #FDF6F6;
  border-color: #F87171;
}

.ba-view-after .ba-visual-box {
  background: #F0FDF4;
  border-color: #34D399;
}

.ba-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.ba-view-before .ba-badge {
  background: #FEE2E2;
  color: #DC2626;
}

.ba-view-after .ba-badge {
  background: #D1FAE5;
  color: #059669;
}

.ba-points {
  list-style: none;
  margin-top: 1rem;
}

.ba-points li {
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ba-view-before .ba-points li::before {
  content: '✕';
  color: #DC2626;
  font-weight: bold;
}

.ba-view-after .ba-points li::before {
  content: '✓';
  color: #059669;
  font-weight: bold;
}

/* Sections Heading */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

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

.section-title p {
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-list li::before {
  content: '—';
  color: var(--color-accent);
  font-weight: bold;
}

/* Founders / Team Section */
.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.founder-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.75rem;
  align-items: center;
}

.founder-avatar-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.founder-avatar-icon {
  font-size: 4rem;
  color: var(--color-accent);
}

.founder-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-display);
}

.founder-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.founder-role {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.88rem;
  font-family: var(--font-display);
  margin-bottom: 0.85rem;
  display: block;
}

.founder-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.founder-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  font-size: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-display);
}

/* Downloads Section */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.download-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-icon {
  font-size: 2.8rem;
  margin-bottom: 1.25rem;
  color: var(--color-accent);
}

.download-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.download-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.info-content p, .info-content a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.info-content a:hover {
  color: var(--color-accent);
}

.contact-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-display);
}

.input-group input, .form-group-textarea textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.input-group input:focus, .form-group-textarea textarea:focus {
  border-color: var(--color-accent);
  background: var(--bg-card);
}

.form-group-textarea {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group-textarea label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-family: var(--font-display);
}

.form-group-textarea textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Footer styling */
footer {
  background: #151618;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem 0;
  color: #9CA3AF;
  font-size: 0.88rem;
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1.2rem;
}

.footer-logo span {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 300;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .founders-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  nav {
    position: fixed;
    top: 85px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 85px);
    background: var(--bg-primary);
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-color);
  }
  nav.open {
    left: 0;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
    gap: 2rem;
  }
  .downloads-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .founder-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .founder-avatar-wrapper {
    max-width: 180px;
    margin: 0 auto;
  }
  .founder-skills {
    justify-content: center;
  }
}

/* ================================================
   RESPONSIVE — TABLET (max-width: 992px)
   ================================================ */
@media (max-width: 992px) {
  section {
    padding: 70px 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

/* ================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ================================================ */
@media (max-width: 768px) {

  /* --- Global --- */
  section {
    padding: 56px 0;
  }

  .container {
    width: 94%;
    padding: 0 12px;
  }

  /* --- Typography --- */
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }

  .section-title {
    margin-bottom: 2.25rem;
  }

  .section-title h2 {
    font-size: 1.85rem;
  }

  /* --- Header & Nav --- */
  .nav-wrapper {
    height: 68px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .mobile-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 68px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 68px);
    background: var(--bg-primary);
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-color);
    overflow-y: auto;
  }

  nav.open {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  nav a {
    font-size: 1.1rem;
  }

  /* --- Hero --- */
  .hero {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content h1 {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-cta .btn-cta,
  .hero-cta .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Before-After card */
  .before-after-card {
    padding: 1.25rem;
  }

  .ba-visual-box {
    min-height: 200px;
    padding: 1rem;
  }

  /* --- Founders --- */
  .founders-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .founder-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
  }

  .founder-avatar-wrapper {
    max-width: 140px;
    margin: 0 auto;
  }

  .founder-skills {
    justify-content: center;
  }

  .founder-info h3 {
    font-size: 1.3rem;
  }

  /* --- Services --- */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .glass-card {
    padding: 1.5rem;
  }

  /* --- Downloads --- */
  .downloads-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* --- Contact --- */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* --- Footer --- */
  .footer-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* ================================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ================================================ */
@media (max-width: 480px) {

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .btn-cta, .btn-secondary {
    font-size: 0.85rem;
    padding: 0.75rem 1.1rem;
  }

  .glass-card {
    padding: 1.25rem;
    border-radius: 10px;
  }

  .service-icon {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
  }

  .download-icon {
    font-size: 2.25rem;
  }

  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* Pilot program inner grid */
  .glass-card [style*="grid-template-columns: 80px"] {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
}
