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

:root {
  --color-primary: #1F4E5F;
  --color-coral: #E87A4E;
  --color-gold: #E0A24A;
  --color-green: #3A8A6E;
  --color-bg: #F9F6F0;
  --color-bg-alt: #FFFFFF;
  --color-bg-dark: #1A2D35;
  --color-text: #1A1A1A;
  --color-text-light: #5A5A5A;
  --color-text-muted: #8A8A8A;
  --color-border: #E5E0D8;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --container-max: 1080px;
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  color: var(--color-text-light);
}

.section-note {
  text-align: center;
  max-width: 560px;
  margin: 32px auto 0;
  font-size: 0.975rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Hero */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
  background:
    radial-gradient(ellipse 1200px 600px at 50% 20%, rgba(31, 78, 95, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 800px 400px at 80% 80%, rgba(232, 122, 78, 0.05) 0%, transparent 60%),
    var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-coral), var(--color-gold), var(--color-green));
}

.logo {
  display: block;
  margin: 0 auto 36px;
  max-width: 380px;
  width: 100%;
  height: auto;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--color-primary);
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--color-text-light);
  max-width: 620px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.hero-target {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: 36px;
  font-weight: 500;
}

/* Countdown */

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.countdown-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

.countdown-separator {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--color-coral);
  line-height: 1;
}

.countdown-ended {
  max-width: 460px;
  margin: 0 auto;
  padding: 32px 24px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-green));
  border-radius: var(--radius-lg);
  color: #ffffff;
}

.countdown-ended-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.countdown-ended-sub {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Quiénes somos grid (image + cards) */

.quienes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 48px;
}

.quienes-image {
  position: relative;
}

.quienes-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(31, 78, 95, 0.12);
  display: block;
}

@media (max-width: 860px) {
  .quienes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .quienes-image {
    order: -1;
  }

  .quienes-grid .card {
    margin: 0;
  }
}

/* Cards */

.card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(31, 78, 95, 0.1);
}

.card-icon {
  margin-bottom: 20px;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Locations (Para quién) */

.locations {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.location-tag {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(31, 78, 95, 0.06);
  border-radius: 100px;
  border: 1px solid rgba(31, 78, 95, 0.12);
  transition: background 0.2s ease, color 0.2s ease;
}

.location-tag:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* Founders */

.founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.founder-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.founder-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(31, 78, 95, 0.1);
}

.founder-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 20px;
  border: 3px solid var(--color-bg-alt);
  box-shadow: 0 4px 12px rgba(31, 78, 95, 0.12);
}

.founder-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.founder-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-coral);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.founder-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Contact / CTA */

.section-cta {
  text-align: center;
}

.contact-text {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
  color: var(--color-text-light);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-coral), #d6693c);
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(232, 122, 78, 0.35);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 122, 78, 0.45);
}

.btn-cta:active {
  transform: translateY(0);
}

/* Footer */

.footer {
  background: var(--color-bg-dark);
  color: #8A9AA0;
  padding: 40px 0;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  color: #D0D8DC;
  font-weight: 600;
}

.footer-fevecta {
  color: var(--color-gold);
  font-size: 0.85rem;
}

.footer-fevecta-link {
  color: var(--color-gold);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-fevecta-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: #8A9AA0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #ffffff;
}

/* Decorative divider between sections */
.section-alt {
  position: relative;
}

.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
  opacity: 0.4;
}

/* Responsive */

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .founders {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .countdown-item {
    min-width: 65px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 56px;
  }

  .logo {
    max-width: 280px;
    margin-bottom: 28px;
  }

  .countdown {
    gap: 6px;
  }

  .countdown-item {
    min-width: 58px;
  }

  .countdown-separator {
    font-size: 1.75rem;
  }

  .btn-cta {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .footer-legal {
    gap: 12px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .founder-card,
  .btn-cta {
    transition: none;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #141c20;
    color: #D8DEE4;
  }

  .section-alt {
    background-color: #1a2a30;
  }

  .hero {
    background:
      radial-gradient(ellipse 1200px 600px at 50% 20%, rgba(31, 78, 95, 0.2) 0%, transparent 60%),
      radial-gradient(ellipse 800px 400px at 80% 80%, rgba(232, 122, 78, 0.15) 0%, transparent 60%),
      #1a2a30;
  }

  .card,
  .founder-card {
    background: #1a2a30;
    border-color: #2a3a40;
  }

  .card h3,
  .founder-card h3 {
    color: #B0C8D4;
  }

  .card p,
  .founder-card p {
    color: #9AA8B0;
  }

  .location-tag {
    background: rgba(31, 78, 95, 0.2);
    border-color: rgba(31, 78, 95, 0.3);
    color: #B0C8D4;
  }

  .hero h1,
  .section-title {
    color: #B0C8D4;
  }

  .hero-subtitle,
  .section-intro,
  .contact-text {
    color: #9AA8B0;
  }

  .countdown-number {
    color: #B0C8D4;
  }

  .section-note,
  .hero-target {
    color: #7A8A90;
  }
}
