/* style.css */
:root {
  --bg-color: #0d1117;
  --bg-card: #161b22;
  --bg-card-hover: #21262d;
  --text-main: #e6edf3;
  --text-muted: #8b949e;
  --accent-blue: #58a6ff;
  --accent-green: #3fb950;
  --accent-yellow: #d29922;
  --accent-red: #f85149;
  --border-color: #30363d;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 100px; /* Compensación para el header pegajoso */
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

/* Header */
header {
  background-color: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 8rem 2rem;
  background: linear-gradient(rgba(13, 17, 23, 0.8), rgba(13, 17, 23, 0.8)), url('../images/hero/hero-bg.png');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-color);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: #fff;
}

.btn-primary:hover {
  background-color: #4b8ce0;
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

.btn-outline:hover {
  background-color: rgba(88, 166, 255, 0.1);
}

/* Sections */
.section-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background-color: rgba(139, 148, 158, 0.2);
  color: var(--text-muted);
  margin-bottom: 1rem;
  align-self: flex-start;
}

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

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

.card-footer {
  margin-top: auto;
}

/* Risk Profiles */
.risk-profiles {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.risk-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-weight: 600;
}

.risk-low {
  background-color: rgba(63, 185, 80, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.risk-medium {
  background-color: rgba(210, 153, 34, 0.15);
  color: var(--accent-yellow);
  border: 1px solid rgba(210, 153, 34, 0.3);
}

.risk-high {
  background-color: rgba(248, 81, 73, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(248, 81, 73, 0.3);
}

/* Backtest Mockup */
.backtest-mockup {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.chart-visual {
  height: 200px;
  background: linear-gradient(180deg, rgba(63, 185, 80, 0.1) 0%, transparent 100%);
  border-bottom: 2px solid var(--accent-green);
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-end;
  padding-bottom: 10px;
}

.chart-visual::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg width='1000' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,100 L0,50 Q100,20 200,60 T400,30 T600,70 T800,40 T1000,10 L1000,100 Z' fill='rgba(63,185,80,0.2)' /%3E%3Cpath d='M0,50 Q100,20 200,60 T400,30 T600,70 T800,40 T1000,10' fill='none' stroke='%233fb950' stroke-width='3' /%3E%3C/svg%3E");
  background-size: cover;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th, .data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.data-table tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

/* FAQ */
.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem;
  background-color: var(--bg-card);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-blue);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-question:hover {
  background-color: var(--bg-card-hover);
}

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
  background-color: var(--bg-color);
}

.faq-item.active .faq-answer {
  padding: 1.25rem;
  max-height: 500px;
  border-top: 1px solid var(--border-color);
}

/* Risk Notice */
.risk-notice {
  background-color: rgba(248, 81, 73, 0.1);
  border-left: 4px solid var(--accent-red);
  padding: 1.5rem;
  margin: 3rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.risk-notice strong {
  color: var(--accent-red);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 2rem 2rem;
  background-color: var(--bg-card);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  margin-bottom: 1rem;
  color: var(--text-main);
}

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

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Utility */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.positive { color: var(--accent-green); }
.accent-yellow { color: var(--accent-yellow); }
.accent-red { color: var(--accent-red); }

/* EA Detail Specific */
.ea-header {
  background: linear-gradient(rgba(13, 17, 23, 0.85), rgba(13, 17, 23, 0.85)), url('../images/hero/hero-bg.png');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 2rem;
  position: relative;
}

.breadcrumbs {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.7;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

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

.breadcrumbs span {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.breadcrumbs span::before {
  content: "\203A"; /* Single right-pointing angle quotation mark */
  font-size: 1.2rem;
  color: var(--border-color);
  line-height: 0;
}

.ea-logo-container {
  background-color: #000;
  display: inline-block;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  margin-bottom: 2rem;
  transition: var(--transition);
}

.ea-logo-container:hover {
  transform: scale(1.02);
  border-color: var(--accent-blue);
}

.ea-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  background: linear-gradient(to bottom, #fff, #8b949e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ea-meta {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
}

/* Features List */
.features-list {
  list-style: none;
}

.features-list li {
  padding: 0.75rem 0 0.75rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  line-height: 1.5;
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list li::before {
  content: "✓";
  color: var(--accent-green);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .nav-links { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Testimonials Section Styles */
.testimonial-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.testimonial-card p {
    line-height: 1.6;
    color: var(--text-light);
}

.testimonial-card strong {
    color: var(--accent-green);
}
