/* RESET + VARIABLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --light-bg: #f8fafc;
  --text: #1e293b;
  --gray: #64748b;
  --light-gray: #e2e8f0;
  --border-radius: 8px;
  --shadow: 0 4px 12px rgba(0,0,0,0.05);
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: #f9fafb;
}

.container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

/* HEADER */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--secondary);
}

.logo span {
  color: var(--primary);
}

.top-tabs {
  display: flex;
  gap: 0.5rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: all 0.2s;
}

.tab-btn:hover {
  background-color: #f1f5f9;
  color: var(--secondary);
}

.tab-btn.active {
  background-color: var(--primary);
  color: white;
}

/* MAIN */
.content {
  padding: 2rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* HERO */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: var(--border-radius);
  margin-bottom: 2.5rem;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 0.85rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-accent:hover {
  opacity: 0.9;
}

.btn-plan {
  display: inline-block;
  background-color: #f1f5f9;
  color: var(--text);
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.2s;
  text-align: center;
  border: 1px solid #cbd5e1;
}

.btn-plan:hover {
  background-color: #e2e8f0;
  transform: translateY(-2px);
}

/* FORM SECTION */
.form-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2.5rem;
}

.form-container h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.form-container p {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.contact-form {
  background: white;
  color: var(--text);
  padding: 1.75rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}

.contact-form h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.contact-form p {
  color: var(--gray);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.contact-form label {
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form select:focus {
  outline: 2px solid var(--primary);
  border-color: transparent;
}

.privacy-note {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  color: #64748b;
  text-align: center;
}

/* PRESS SECTION */
.press-section {
  margin-bottom: 3rem;
}

.press-section h2 {
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.press-section p {
  color: var(--gray);
  margin-bottom: 2rem;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.press-item {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-gray);
}

.press-badge {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

.press-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.press-item time {
  color: var(--gray);
  font-size: 0.85rem;
}

/* SECTION TITLES */
.section-title {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

/* PLANS */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.plan-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-gray);
  text-align: center;
  position: relative;
}

.featured {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.featured-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--accent);
  color: white;
  font-weight: bold;
  font-size: 0.7rem;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

.plan-name {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.plan-desc {
  color: var(--gray);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.price {
  margin: 1.25rem 0;
}

.amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.label {
  font-size: 0.9rem;
  color: var(--gray);
  display: block;
  margin-top: 0.25rem;
}

.label small {
  font-size: 0.8rem;
  color: #94a3b8;
  display: block;
  margin-top: 0.25rem;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-gray);
}

.faq-item > summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--secondary);
  background-color: #f8fafc;
  cursor: pointer;
  list-style: none;
  outline: none;
  position: relative;
}

.faq-item > summary::marker,
.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq-item[open] > summary::after {
  content: '−';
}

.faq-answer {
  padding: 1.25rem 1.5rem;
  background-color: white;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  border-top: 1px solid var(--light-gray);
}

/* FOOTER */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  color: var(--gray);
  font-size: 0.9rem;
}

/* === SECCIÓN EMPRESAS — ESTILO IDÉNTICO A PREPA IN === */

#empresas {
  background: #0f172a;
  color: white;
  padding: 3rem 0;
}

#empresas .container {
  max-width: 1200px;
}

#empresas .section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  color: white;
}

#empresas .section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: #94a3b8;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.enterprise-hero {
  margin: 2rem 0;
  text-align: center;
}

.enterprise-hero img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  border: 2px solid #1e293b;
}

.enterprises-carousel {
  overflow: hidden;
  background: #1e293b;
  padding: 2.5rem 0;
  margin: 2.5rem 0;
  border-radius: 8px;
}

.enterprises-track {
  display: flex;
  animation: scroll-horizontal 45s linear infinite;
  width: max-content;
}

@keyframes scroll-horizontal {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.enterprise-logo {
  flex-shrink: 0;
  width: 140px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.enterprise-logo img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.65);
  transition: all 0.3s ease;
}

.enterprise-logo img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

.enterprise-cta-box {
  background: #1e293b;
  padding: 2.5rem;
  border-radius: 8px;
  text-align: center;
  margin: 2.5rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.enterprise-cta-box h3 {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 1rem;
  font-weight: 700;
}

.enterprise-cta-box p {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.enterprise-cta-box .btn-primary {
  background: #2563eb;
  color: white;
  display: inline-block;
  padding: 0.85rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.enterprise-cta-box .btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* ¿Cómo funciona? — UNA SOLA FILA HORIZONTAL */
.enterprise-how-it-works {
  background: #1e293b;
  padding: 2.5rem;
  border-radius: 8px;
  margin: 2.5rem 0;
}

.enterprise-how-it-works h3 {
  font-size: 1.8rem;
  color: white;
  text-align: center;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.enterprise-how-it-works p {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.benefits-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.benefit-item {
  background: #334155;
  padding: 1.25rem;
  border-radius: 8px;
  text-align: center;
  min-width: 200px;
  max-width: 260px;
  transition: transform 0.2s;
  border: 1px solid #475569;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefit-item:hover {
  transform: translateY(-4px);
  background: #475569;
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: white;
  display: block;
}

.benefit-item span {
  color: white;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

/* Mensaje final — estilo lista con check amarillos */
.enterprise-final-message {
  background: #1e293b;
  padding: 2.5rem;
  border-radius: 8px;
  margin: 2.5rem 0;
}

.enterprise-final-message h3 {
  font-size: 2.2rem;
  color: white;
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.enterprise-final-message p {
  color: #94a3b8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  text-align: center;
}

.enterprise-final-message ul {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
}

.enterprise-final-message li {
  display: flex;
  align-items: flex-start;
  margin: 0.75rem 0;
  color: white;
  font-size: 1.05rem;
  font-weight: 500;
}

.enterprise-final-message li::before {
  content: "✓";
  color: #f59e0b;
  font-weight: bold;
  margin-right: 0.75rem;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .top-tabs {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .tab-btn {
    flex: 1;
    min-width: 140px;
    font-size: 1rem;
    padding: 0.65rem 1rem;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    padding: 0 1rem 1.5rem;
  }

  .content {
    padding: 1.25rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .benefits-row {
    gap: 1rem;
  }

  .benefit-item {
    min-width: 160px;
    padding: 1rem;
  }

  #empresas .section-title {
    font-size: 1.8rem;
  }

  .enterprise-cta-box,
  .enterprise-how-it-works,
  .enterprise-final-message {
    padding: 1.5rem;
  }
}