@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Merriweather:wght@700&display=swap');

:root {
  --color-primary: #1e3a5f;
  --color-accent: #d97706;
  --color-bg-light: #f8f9fa;
  --color-card: #ffffff;
  --color-text-dark: #1a202c;
  --color-text-muted: #4a5568;
  --color-border: #e2e8f0;
  
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Merriweather', serif;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-top: 0;
  line-height: 1.3;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

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

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

/* Header */
.site-header {
  background-color: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-primary);
}

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

.brand-icon {
  display: flex;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  margin-bottom: 5px;
  transition: 0.3s;
}

.hamburger span:last-child {
  margin-bottom: 0;
}

/* Hero Section */
.hero {
  background-color: var(--color-primary);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  color: #e2e8f0;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

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

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

.card p {
  color: var(--color-text-muted);
  flex-grow: 1;
  font-size: 0.95rem;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
  color: var(--color-accent);
}

/* Article Layout */
.article-layout {
  display: flex;
  gap: 3rem;
  padding: 3rem 0;
}

.article-main {
  flex: 0 0 70%;
  max-width: 70%;
  background-color: var(--color-card);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.article-sidebar {
  flex: 0 0 calc(30% - 3rem);
  max-width: calc(30% - 3rem);
}

@media (max-width: 900px) {
  .article-layout {
    flex-direction: column;
  }
  .article-main, .article-sidebar {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.article-header h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.article-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Sidebar Widgets */
.widget {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.widget h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-list li {
  margin-bottom: 0.75rem;
}

.widget-list li:last-child {
  margin-bottom: 0;
}

.widget-list a {
  color: var(--color-text-dark);
  font-size: 0.95rem;
}

.widget-list a:hover {
  color: var(--color-accent);
}

/* Simple Pages (Sobre Nosotros, etc) */
.simple-page {
  max-width: 800px;
  margin: 3rem auto;
  background-color: var(--color-card);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

/* Footer */
.site-footer {
  background-color: var(--color-primary);
  color: white;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 1.5rem;
}

.footer-brand .brand-name {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-tagline {
  color: #a0aec0;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.site-footer h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: #a0aec0;
}

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

.footer-disclaimer {
  background-color: #0f172a;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: #a0aec0;
  text-align: center;
}

.footer-disclaimer p {
  margin-bottom: 0.5rem;
}

.footer-email a {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 4.5rem;
    left: 0;
    right: 0;
    background-color: var(--color-card);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .hamburger {
    display: block;
  }
}

/* FAQ Accordion */
.faq-list {
  margin-top: 2rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-bottom: 1rem;
  background-color: var(--color-card);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: normal;
  transition: transform 0.2s;
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-dark);
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-item.open .faq-answer {
  display: block;
}

/* Value Props */
.value-props {
  background-color: white;
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.value-props .grid {
  margin-top: 3rem;
}

.prop-icon {
  width: 64px;
  height: 64px;
  background-color: var(--color-bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-accent);
}
