/* ==========================================
   ACYEDE - Estilos Globales, SEO/SEM y Responsive
   ========================================== */

:root {
  --primary-dark: #0f172a;
  --primary-blue: #0284c7;
  --primary-hover: #0369a1;
  --accent-green: #22c55e;
  --bg-slate: #f8fafc;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --white: #ffffff;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08);
  --radius-lg: 16px;
  --radius-md: 10px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-slate);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* 1. Topbar */
.top-bar {
  background-color: #020617;
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 10px 0;
  border-bottom: 1px solid #1e293b;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info span {
  margin-right: 20px;
}

.contact-info i {
  color: var(--primary-blue);
  margin-right: 5px;
}

.top-right-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  color: #94a3b8;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--white);
}

.whatsapp-badge {
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.whatsapp-badge:hover {
  opacity: 0.85;
}

/* 2. Header & Logo Ligeramente Agrandado */
.site-header {
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  height: 56px; /* Agrandado levemente */
}

.site-logo {
  max-height: 42px !important; /* Agrandado levemente respecto a 34px */
  width: auto !important;
  max-width: 210px !important;
  object-fit: contain !important;
  display: block !important;
}

.nav-menu {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-blue);
}

/* 3. Hero Section */
.hero-section {
  background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 100%);
  color: var(--white);
  padding: 90px 20px 120px 20px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 860px;
}

.badge-hero {
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: inline-block;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 36px;
  font-weight: 400;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 14px 30px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 30px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* 4. Quick Access Cards */
.quick-access {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.access-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease;
}

.access-card:hover {
  transform: translateY(-4px);
}

.access-icon-wrapper {
  width: 54px;
  height: 54px;
  background: #e0f2fe;
  color: var(--primary-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.access-card h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.access-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.link-arrow {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* 5. Courses Grid & Cards */
.section-padding {
  padding: 80px 0;
}

.bg-white {
  background-color: var(--white);
}

.section-tag {
  color: var(--primary-blue);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.2px;
  display: block;
  margin-bottom: 10px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--primary-dark);
  font-weight: 800;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 30px;
}

.course-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.course-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.course-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.badge-alt {
  background: #dcfce7;
  color: #166534;
}

.course-card h3 {
  color: var(--primary-dark);
  margin-bottom: 4px;
  font-size: 1.3rem;
  padding-right: 80px;
  line-height: 1.3;
}

.course-subtitle-tag {
  color: var(--primary-blue);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.course-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.course-meta {
  list-style: none;
  margin-bottom: 24px;
  font-size: 0.88rem;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.course-meta li {
  margin-bottom: 8px;
  color: var(--text-dark);
}

.course-meta i {
  color: var(--primary-blue);
  margin-right: 8px;
  width: 16px;
}

.btn-card {
  text-align: center;
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
  display: block;
}

.btn-card:hover {
  background-color: var(--primary-blue);
}

/* 6. Section Socios & Benefits */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.benefits-ul {
  list-style: none;
  margin-top: 20px;
}

.benefits-ul li {
  font-size: 1.05rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
}

.benefits-ul i {
  color: var(--accent-green);
  font-size: 1.2rem;
}

.membership-steps-card {
  background: var(--bg-slate);
  padding: 35px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.membership-steps-card h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.steps-ol {
  padding-left: 20px;
}

.steps-ol li {
  margin-bottom: 20px;
}

.steps-ol strong {
  color: var(--primary-dark);
  font-size: 0.98rem;
}

.steps-ol p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.alias-tag code {
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  color: var(--primary-dark);
}

.mp-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-mp {
  background-color: #009ee3;
  color: var(--white);
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.btn-mp-alt {
  background-color: #0284c7;
}

.btn-mp:hover {
  opacity: 0.9;
}

.link-inline {
  color: var(--primary-blue);
  font-weight: 600;
}

/* 7. Section Institucional (Blocks) */
.about-paragraphs-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.about-block {
  background: var(--white);
  padding: 35px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.about-block h3 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-block h3 i {
  color: var(--primary-blue);
}

.about-block p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* 8. Contact Section */
.contact-card-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.c-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.c-item i {
  font-size: 1.2rem;
  color: var(--primary-blue);
  background: #e0f2fe;
  padding: 12px;
  border-radius: 10px;
}

.contact-form {
  background: var(--bg-slate);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.contact-form h3 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  background-color: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.btn-full {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

/* 9. Footer */
.site-footer {
  background-color: #020617;
  color: #94a3b8;
  padding: 70px 20px 30px 20px;
  font-size: 0.9rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
}

.logo-brand-footer {
  display: inline-block;
  background-color: var(--white);
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.site-logo-footer {
  max-height: 40px !important;
  width: auto !important;
  display: block !important;
}

.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.footer-socials a {
  color: #cbd5e1;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.footer-socials a:hover {
  color: var(--primary-blue);
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 18px;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 50px auto 0 auto;
  padding-top: 25px;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 868px) {
  .header-container {
    flex-direction: column;
    gap: 16px;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .top-bar-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .top-right-links {
    flex-direction: column;
    gap: 10px;
  }
}