/* =================================
   VARIABLES GLOBALES
   ================================= */
:root {
  /* Colores principales */
  --color-primary: #0D3B52;
  --color-teal: #36A9B5;
  --color-sky: #A8D5E2;
  --color-gold: #FFC832;
  --color-orange: #FF7800;
  --color-salmon: #FF9478;

  /* Colores secundarios para gradientes */
  --color-salmon-dark: #FF7A5E;
  --color-gold-dark: #E5B02D;
  --color-teal-dark: #2D8A95;

  /* Colores de texto */
  --color-text-primary: #0D3B52;
  --color-text-secondary: rgba(13, 59, 82, 0.65);
  --color-bg: #FAFBFC;
  --color-border: rgba(54, 169, 181, 0.2);
  
  /* Tipografía */
  --font-main: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-italic: "Playfair Display", Georgia, serif;
  
  /* Espaciado */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 60px;
  
  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(13, 59, 82, 0.08);
  --shadow-md: 0 4px 16px rgba(13, 59, 82, 0.12);
  --shadow-lg: 0 8px 32px rgba(13, 59, 82, 0.16);
  
  /* Transiciones */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =================================
   RESET Y BASE
   ================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-primary);
  background: white;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =================================
   COMPONENTES - Header/Nav
   ================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(135deg,
    rgba(168, 213, 226, 0.6) 0%,
    rgba(54, 169, 181, 0.5) 25%,
    rgba(13, 59, 82, 0.45) 50%,
    rgba(255, 200, 50, 0.5) 75%,
    rgba(255, 120, 0, 0.6) 100%);
  background-color: rgba(255, 255, 255, 0.7);
  background-blend-mode: overlay;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 59, 82, 0.1);
  box-shadow: var(--shadow-sm);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px var(--spacing-2xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  text-decoration: none;
  padding-top: 4px;
}

.logo-section img {
  height: 48px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-section h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-primary);
  line-height: 1;
}

.logo-section .tagline,
.logo-section .subtitle {
  font-size: 13px;
  font-weight: 400;
  color: #D32F2F;
  font-family: var(--font-italic);
  line-height: 1;
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 10px 4px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  letter-spacing: -0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

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

.nav-link.active {
  color: var(--color-primary);
}

.nav-buttons {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

/* =================================
   COMPONENTES - Botones
   ================================= */
.btn {
  padding: 12px var(--spacing-lg);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-main);
  display: inline-block;
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid rgba(13, 59, 82, 0.2);
}

.btn-secondary:hover {
  background: rgba(13, 59, 82, 0.05);
  border-color: var(--color-primary);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(13, 59, 82, 0.2);
}

.btn-primary:hover {
  background: #0A2F3F;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 59, 82, 0.3);
}

.btn-hero {
  padding: 18px 36px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-lg);
}

.btn-cta {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 8px 24px rgba(13, 59, 82, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-cta:hover {
  background: #0A2F3F;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(13, 59, 82, 0.35);
}

.btn-cta::before {
  content: '▶';
  font-size: 12px;
}

/* =================================
   COMPONENTES - Hero
   ================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
  background: white;
}

.gradient-bg {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  height: 600px;
  background: linear-gradient(135deg,
    rgba(168, 213, 226, 0.4) 0%,
    rgba(54, 169, 181, 0.35) 25%,
    rgba(13, 59, 82, 0.3) 50%,
    rgba(255, 200, 50, 0.35) 75%,
    rgba(255, 120, 0, 0.4) 100%);
  border-radius: var(--radius-lg);
  border: 3px solid white;
  box-shadow: 0 20px 60px rgba(13, 59, 82, 0.15);
  z-index: 0;
}

.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(13, 59, 82, 0.03) 40px, rgba(13, 59, 82, 0.03) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(13, 59, 82, 0.03) 40px, rgba(13, 59, 82, 0.03) 41px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding: 0 var(--spacing-lg);
}

.hero h2 {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  color: var(--color-primary);
}

.hero p {
  font-size: 22px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* =================================
   COMPONENTES - Features
   ================================= */
.features {
  padding: 120px var(--spacing-2xl);
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: var(--spacing-3xl);
}

.feature-card {
  padding: 40px;
  background: white;
  border: 1px solid rgba(13, 59, 82, 0.1);
  border-radius: var(--radius-xl);
  transition: var(--transition);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-teal), var(--color-sky));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--spacing-lg);
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

.feature-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* =================================
   COMPONENTES - Footer
   ================================= */
footer {
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-3xl) var(--spacing-2xl) 40px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-3xl);
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 400px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--spacing-md);
  color: rgba(255, 255, 255, 0.9);
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* =================================
   RESPONSIVE
   ================================= */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav {
    padding: 16px var(--spacing-lg);
    flex-wrap: wrap;
  }

  .logo-section {
    flex: 1 1 auto;
  }

  .nav-links {
    width: 100%;
    order: 3;
    justify-content: center;
    gap: var(--spacing-md);
    padding-top: var(--spacing-sm);
  }

  .nav-link {
    font-size: 14px;
    padding: 8px 4px;
  }

  .dropdown-menu {
    position: fixed;
    left: var(--spacing-md);
    right: var(--spacing-md);
    width: auto;
  }

  .hero h2 {
    font-size: 48px;
  }

  .hero p {
    font-size: 18px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 36px;
  }
  
  .btn-hero {
    padding: 14px 24px;
    font-size: 14px;
  }
}