@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
  /* HSL Colors — Paleta de marca RedBital (Morado #8463d3 · Verde #00a99d) */
  --primary-h: 258;
  --primary-s: 56%;
  --primary-l: 20%;
  --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
  --primary-light: hsl(var(--primary-h), var(--primary-s), 30%);
  --primary-soft: hsl(var(--primary-h), var(--primary-s), 96%);
  --brand-purple: #8463d3;   /* Morado de marca exacto */
  --brand-green: #00a99d;    /* Verde de marca exacto */

  --secondary-h: 176;
  --secondary-s: 100%;
  --secondary-l: 33%;
  --secondary: hsl(var(--secondary-h), var(--secondary-s), var(--secondary-l));
  --secondary-light: hsl(var(--secondary-h), var(--secondary-s), 92%);

  --accent-h: 176;
  --accent-s: 100%;
  --accent-l: 33%;
  --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
  --accent-hover: hsl(var(--accent-h), var(--accent-s), 27%);
  --accent-soft: hsl(var(--accent-h), var(--accent-s), 95%);

  --text-dark: hsl(258, 40%, 12%);
  --text-light: hsl(258, 14%, 40%);
  --bg-light: hsl(258, 20%, 97%);
  --bg-white: #ffffff;

  /* Status Colors */
  --success: #00a99d;
  --warning: #ffbf00;
  --error: #e71d36;

  /* Typography */
  --font-title: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & Borders */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 6px -1px rgba(46, 17, 77, 0.05);
  --shadow-md: 0 10px 30px -10px rgba(46, 17, 77, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(46, 17, 77, 0.12);
  --shadow-glass: 0 8px 32px 0 rgba(46, 17, 77, 0.05);
}

/* --- RESET & BASIC STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button, input {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(0, 169, 157, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 169, 157, 0.35);
}

.btn-secondary {
  background-color: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(46, 17, 77, 0.15);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 17, 77, 0.25);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--bg-white);
}

/* --- NAVIGATION BAR --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: var(--transition);
  padding: 24px 0;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(14, 75, 80, 0.05);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.logo-dot {
  width: 12px;
  height: 12px;
  background-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.header-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

/* WAVLD Badge */
.wavld-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--bg-light);
  border: 1px solid rgba(14,75,80,0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
}

.wavld-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.wavld-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wavld-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.wavld-text span {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.4;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 15px;
  position: relative;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 20px;
  font-size: 14px;
}

.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(0, 169, 157, 0.08) 0%, rgba(255, 255, 255, 0) 60%),
              radial-gradient(circle at 10% 80%, rgba(132, 99, 211, 0.05) 0%, rgba(255, 255, 255, 0) 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-badge {
  align-self: flex-start;
  background-color: var(--secondary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 169, 157, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 169, 157, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 169, 157, 0); }
}

.hero-title {
  font-size: 56px;
  margin-bottom: 24px;
  color: var(--primary);
  font-weight: 800;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats-quick {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(14, 75, 80, 0.1);
  padding-top: 30px;
}

.hero-stat-item h4 {
  font-size: 28px;
  color: var(--primary);
}

.hero-stat-item p {
  font-size: 13px;
  color: var(--text-light);
}

/* Hero Visual & Image Showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-blob {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 169, 157, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
}

.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--bg-white);
  z-index: 2;
  transform: rotate(1deg);
  transition: var(--transition);
}

.image-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.image-frame img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.floating-badge {
  position: absolute;
  background-color: var(--bg-white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  transition: var(--transition);
}

.floating-badge:hover {
  transform: translateY(-4px);
}

.badge-left {
  bottom: 40px;
  left: -20px;
  border-left: 4px solid var(--accent);
}

.badge-right {
  top: 40px;
  right: -20px;
  border-left: 4px solid var(--success);
}

.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
}

.badge-text h5 {
  font-size: 14px;
  color: var(--primary);
  font-weight: 700;
}

.badge-text p {
  font-size: 12px;
  color: var(--text-light);
}

/* --- STATS SECTION --- */
.stats-bar {
  background: linear-gradient(120deg, hsl(258, 56%, 16%) 0%, hsl(258, 56%, 23%) 45%, hsl(176, 70%, 19%) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  border: none;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 15%, rgba(0, 169, 157, 0.22) 0%, transparent 45%),
              radial-gradient(circle at 88% 95%, rgba(132, 99, 211, 0.18) 0%, transparent 50%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-card {
  padding: 10px 16px;
  position: relative;
}

.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 56px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.18), transparent);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  font-family: var(--font-title);
  margin-bottom: 6px;
  background: linear-gradient(135deg, #ffffff 0%, hsl(176, 80%, 72%) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .stat-card:nth-child(2)::after { display: none; }
}

/* --- ABOUT SECTION --- */
.about-section {
  background-color: var(--bg-white);
  background-image: radial-gradient(circle at 95% 8%, rgba(0, 169, 157, 0.06) 0%, transparent 38%),
                    radial-gradient(circle at 0% 92%, rgba(132, 99, 211, 0.05) 0%, transparent 40%);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 70px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--bg-white);
  transform: rotate(-1deg);
  transition: var(--transition);
}

.about-image-wrapper:hover {
  transform: rotate(0deg);
}

.about-image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-experience-card {
  position: absolute;
  bottom: -30px;
  right: -20px;
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 180px;
  z-index: 3;
}

.about-experience-card h4 {
  font-size: 36px;
  color: var(--accent);
}

.about-experience-card p {
  font-size: 13px;
  font-weight: 500;
}

.section-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 42px;
  margin-bottom: 24px;
  color: var(--primary);
  font-weight: 800;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 16px;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.highlight-icon {
  width: 28px;
  height: 28px;
  background-color: var(--secondary-light);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.highlight-text h5 {
  font-size: 15px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.highlight-text p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 0;
}

/* --- SERVICES & EXAMS SECTION --- */
.services-section {
  background-color: var(--bg-light);
}

.services-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.services-tabs-container {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 40px;
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(14, 75, 80, 0.05);
}

.services-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
  background-color: var(--bg-light);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.tab-btn:hover {
  background-color: var(--secondary-light);
}

.tab-btn.active {
  background-color: var(--primary);
  color: var(--bg-white);
}

.tab-btn-number {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.6;
}

.services-content-panel {
  padding-left: 20px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-header {
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(14, 75, 80, 0.1);
  padding-bottom: 20px;
}

.panel-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.panel-desc {
  color: var(--text-light);
  font-size: 15px;
}

.exams-grid-wrapper {
  max-height: 560px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary-light) transparent;
}

.exams-grid-wrapper::-webkit-scrollbar {
  width: 4px;
}

.exams-grid-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--secondary-light);
  border-radius: 99px;
}

.exams-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}

.exam-item-card {
  background-color: var(--bg-light);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(14, 75, 80, 0.03);
  transition: var(--transition);
}

.exam-item-card:hover {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  border-color: var(--secondary-light);
  transform: translateY(-2px);
}

.exam-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.exam-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.exam-time {
  font-size: 10px;
  background-color: var(--primary-soft);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 99px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.exam-requirements {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* --- EXAM SEARCH --- */
.exam-search-wrapper {
  margin-bottom: 24px;
  position: relative;
}

.exam-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.exam-search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-light);
  font-size: 15px;
  pointer-events: none;
}

.exam-search-input {
  width: 100%;
  padding: 13px 44px;
  border: 2px solid rgba(14,75,80,0.12);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  transition: var(--transition);
  outline: none;
}

.exam-search-input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 169, 157,0.12);
}

.exam-search-input::placeholder {
  color: var(--text-light);
}

.exam-search-clear {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 15px;
  padding: 4px 6px;
  border-radius: 50%;
  transition: var(--transition);
  line-height: 1;
}

.exam-search-clear:hover {
  color: var(--primary);
  background-color: var(--bg-light);
}

/* Dropdown */
.exam-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background-color: var(--bg-white);
  border: 1px solid rgba(14,75,80,0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 200;
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary-light) transparent;
}

.exam-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.15s;
  border-bottom: 1px solid rgba(14,75,80,0.05);
}

.exam-dropdown-item:last-child {
  border-bottom: none;
}

.exam-dropdown-item:hover {
  background-color: var(--primary-soft);
}

.exam-dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  flex: 1;
}

.exam-dropdown-name mark {
  background-color: rgba(0, 169, 157,0.3);
  color: var(--primary);
  border-radius: 2px;
  padding: 0 1px;
  font-style: normal;
}

.exam-dropdown-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 99px;
  background-color: var(--primary-soft);
  color: var(--secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.exam-search-empty-dropdown {
  padding: 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
}

/* Highlight animation on matched card */
.exam-item-card.search-highlight {
  border-color: var(--secondary) !important;
  box-shadow: 0 0 0 3px rgba(0, 169, 157,0.2) !important;
  animation: pulseHighlight 1.2s ease;
}

@keyframes pulseHighlight {
  0%   { box-shadow: 0 0 0 0 rgba(0, 169, 157,0.5); }
  50%  { box-shadow: 0 0 0 8px rgba(0, 169, 157,0.1); }
  100% { box-shadow: 0 0 0 3px rgba(0, 169, 157,0.2); }
}

/* --- PORTAL ACTION BUTTONS --- */
.portal-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}

.portal-action-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
}

.portal-action-primary {
  background-color: var(--primary);
  color: white;
}

.portal-action-primary:hover {
  background-color: var(--primary-dark, #0a3a3f);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.portal-action-secondary {
  background-color: #25D366;
  color: white;
}

.portal-action-secondary:hover {
  background-color: #1da851;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.portal-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.portal-action-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.portal-action-text strong {
  font-size: 15px;
  font-weight: 700;
}

.portal-action-text span {
  font-size: 12px;
  opacity: 0.85;
}

.portal-action-arrow {
  font-size: 14px;
  opacity: 0.7;
}

.portal-footer-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  padding-top: 16px;
  border-top: 1px solid rgba(14,75,80,0.08);
}

/* --- RESULTS PORTAL SIMULATOR --- */
.results-section {
  background-color: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.results-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 169, 157, 0.15) 0%, rgba(255, 255, 255, 0) 75%);
  top: -100px;
  right: -100px;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.portal-container {
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 2;
}

.portal-header {
  text-align: center;
  margin-bottom: 30px;
}

.portal-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  background-color: var(--secondary-light);
  padding: 4px 12px;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 12px;
}

.portal-title {
  font-size: 24px;
  color: var(--primary);
}

.portal-desc {
  font-size: 14px;
  color: var(--text-light);
}

.portal-form-group {
  margin-bottom: 20px;
}

.portal-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.portal-input-wrapper {
  position: relative;
  display: flex;
}

.portal-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(14, 75, 80, 0.15);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  background-color: var(--bg-white);
  transition: var(--transition);
}

.portal-input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px var(--secondary-light);
}

.portal-submit-btn {
  width: 100%;
  margin-top: 10px;
  padding: 16px;
  background-color: var(--primary);
  color: var(--bg-white);
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.portal-submit-btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Loading Simulation */
.portal-loading {
  display: none;
  text-align: center;
  padding: 30px 0;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--primary-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--primary-soft);
  border-radius: 99px;
  overflow: hidden;
  margin: 15px 0;
}

.loading-progress-fill {
  width: 0%;
  height: 100%;
  background-color: var(--accent);
  transition: width 0.1s linear;
}

/* Success Visualizer */
.portal-result-card {
  display: none;
  border-top: 2px dashed rgba(14, 75, 80, 0.15);
  margin-top: 30px;
  padding-top: 30px;
  animation: fadeIn 0.6s ease;
}

.result-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.result-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.result-status-badge {
  background-color: rgba(0, 169, 157, 0.15);
  color: var(--success);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 99px;
}

.result-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background-color: var(--bg-light);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.result-meta-item span {
  font-size: 11px;
  color: var(--text-light);
  display: block;
}

.result-meta-item strong {
  font-size: 14px;
  color: var(--primary);
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 13px;
}

.result-table th, .result-table td {
  padding: 10px 12px;
  text-align: left;
}

.result-table th {
  border-bottom: 2px solid rgba(14, 75, 80, 0.1);
  color: var(--primary);
  font-weight: 700;
}

.result-table td {
  border-bottom: 1px solid rgba(14, 75, 80, 0.05);
}

.result-normal {
  color: var(--success);
  font-weight: 600;
}

.btn-download-report {
  width: 100%;
  justify-content: center;
  background-color: var(--secondary);
}

.btn-download-report:hover {
  background-color: #2b8c83;
}

/* --- INSTAGRAM INTEGRATION MOCKUP --- */
.instagram-section {
  background-color: var(--bg-light);
}

.instagram-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}

.instagram-intro-text {
  max-width: 600px;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.instagram-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(14, 75, 80, 0.05);
  transition: var(--transition);
}

.instagram-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.instagram-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.instagram-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.instagram-card:hover .instagram-img-wrapper img {
  transform: scale(1.05);
}

.instagram-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(14, 75, 80, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: var(--bg-white);
  font-size: 18px;
  font-weight: 700;
  gap: 20px;
}

.instagram-card:hover .instagram-hover-overlay {
  opacity: 1;
}

.instagram-hover-stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.instagram-info {
  padding: 20px;
}

.instagram-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.instagram-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  padding: 2px;
}

.instagram-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 11px;
  color: var(--primary);
}

.instagram-username {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.instagram-caption {
  font-size: 14px;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.instagram-tags {
  color: var(--secondary);
  font-weight: 600;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
  background-color: var(--bg-white);
  background-image: radial-gradient(circle at 50% 0%, rgba(0, 169, 157, 0.06) 0%, transparent 45%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background-color: var(--bg-light);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 75, 80, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.testimonial-card:hover {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-light);
}

.testimonial-quote {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 24px;
  font-style: italic;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--secondary-light);
}

.testimonial-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.testimonial-author-info h5 {
  font-size: 15px;
  color: var(--primary);
  font-weight: 700;
}

.testimonial-author-info p {
  font-size: 12px;
  color: var(--text-light);
}

.star-rating {
  color: #ffbf00;
  margin-bottom: 12px;
  font-size: 16px;
}

/* --- TEAM SECTION --- */
.team-section {
  background-color: var(--bg-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.team-card {
  background-color: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(14,75,80,0.06);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--secondary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: var(--secondary);
  overflow: hidden;
}

/* La opacidad reducida solo aplica al ícono placeholder, nunca a las fotos reales */
.team-photo-placeholder > i {
  opacity: 0.5;
}

.team-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-info {
  padding: 18px 16px;
}

.team-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.team-role {
  font-size: 12px;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- CONTACT CHANNELS --- */
.contact-channels-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-channel-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
}

.contact-channel-instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: white;
}

.contact-channel-whatsapp {
  background-color: #25D366;
  color: white;
}

.contact-channel-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 0.95;
}

.contact-channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-channel-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-channel-text strong {
  font-size: 15px;
  font-weight: 700;
}

.contact-channel-text span {
  font-size: 12px;
  opacity: 0.85;
}

.contact-channel-arrow {
  font-size: 14px;
  opacity: 0.7;
}

.contact-app-card {
  background-color: var(--bg-white);
  border: 2px solid var(--secondary-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 4px;
}

.contact-app-info {
  flex: 1;
}

.contact-app-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  background-color: var(--secondary-light);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.contact-app-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.contact-app-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.5;
}

.contact-app-cta {
  font-size: 13px;
  padding: 10px 18px;
}

.contact-app-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.contact-app-qr img {
  border-radius: 10px;
  border: 3px solid var(--secondary-light);
}

.contact-qr-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-app-card {
    flex-direction: column;
    text-align: center;
  }
}

/* --- CONTACT SECTION --- */
.contact-section {
  background-color: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 30px;
}

.contact-method-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-method-text h5 {
  font-size: 16px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-method-text p {
  font-size: 14px;
  color: var(--text-light);
}

.contact-form-wrapper {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(14, 75, 80, 0.05);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(14, 75, 80, 0.1);
  font-size: 15px;
  color: var(--text-dark);
  background-color: var(--bg-light);
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--secondary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px var(--secondary-light);
}

.form-textarea {
  height: 120px;
  resize: vertical;
}

.btn-submit-form {
  width: 100%;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 30px 0;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  color: var(--bg-white);
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-size: 16px;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
}

.footer-title {
  color: var(--bg-white);
  font-size: 18px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.footer-link:hover {
  color: var(--accent-hover);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .results-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-title {
    font-size: 44px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-tabs-container {
    grid-template-columns: 1fr;
  }
  .services-content-panel {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* Can be toggled in JS */
  }
  .mobile-menu-toggle {
    display: block;
  }
  .section-title {
    font-size: 32px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .instagram-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
