/* CSS Premium para Tests Psicológicos */
:root {
  /* Sistema de diseño */
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --primary-light: #4895ef;
  --secondary: #f72585;
  --accent: #4cc9f0;
  --dark: #14213d;
  --light: #f8f9fa;
  --text: #2b2d42;
  --text-light: #8d99ae;
  --bg: #ffffff;
  --bg-secondary: #f1f3f8;
  --font-main: 'Poppins', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.12);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

/* Hero Section */
.test-hero {
  position: relative;
  height: 60vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  overflow: hidden;
  color: white;
  isolation: isolate;
}

.test-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80') center/cover;
  opacity: 0.15;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 700px;
  margin: 0 auto 3rem;
  font-weight: 300;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
}

.hero-scroll i {
  font-size: 1.5rem;
  color: white;
  opacity: 0.7;
  transition: var(--transition);
}

.hero-scroll:hover i {
  opacity: 1;
  transform: translateY(3px);
}

/* Main Container */
.test-main {
  position: relative;
  max-width: 1400px;
  margin: -80px auto 0;
  z-index: 10;
}

.test-container {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.test-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Section Header */
.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--dark);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Test Grid */
.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
}

/* Test Card */
.test-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.test-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.test-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
}

.test-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.test-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(67, 97, 238, 0.3);
}

.test-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.test-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 400;
}

.test-body {
  padding: 1.5rem;
}

.test-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.test-features {
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.feature-item i {
  color: var(--primary);
  font-size: 0.8rem;
}

.test-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.test-duration {
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.test-button {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
  border: none;
  cursor: pointer;
}

.test-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

.test-button i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.test-button:hover i {
  transform: translateX(3px);
}

/* Info Section */
.info-section {
  background: linear-gradient(135deg, var(--dark) 0%, #1a2a4a 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  margin-top: 4rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.info-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(247,37,133,0.15) 0%, rgba(247,37,133,0) 70%);
  border-radius: 50%;
}

.info-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(67,97,238,0.1) 0%, rgba(67,97,238,0) 70%);
  border-radius: 50%;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.info-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
}

.info-icon {
  font-size: 2rem;
  color: white;
  margin-bottom: 1.5rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(67, 97, 238, 0.3);
}

.info-title {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.info-text {
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .test-container {
    padding: 3rem;
  }
}

@media (max-width: 992px) {
  .test-hero {
    height: 50vh;
    min-height: 400px;
  }

  .test-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }

  .info-section {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .test-hero {
    height: auto;
    padding: 8rem 0;
  }

  .test-main {
    margin-top: -40px;
  }

  .test-container {
    padding: 2rem;
  }

  .test-grid {
    grid-template-columns: 1fr;
  }

  .section-title::after {
    bottom: -8px;
    height: 3px;
  }
}

@media (max-width: 576px) {
  .test-container {
    padding: 1.5rem;
    border-radius: var(--radius);
  }

  .test-card {
    border-radius: var(--radius);
  }

  .info-card {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Animations */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-15px) translateX(-50%);
  }
  60% {
    transform: translateY(-7px) translateX(-50%);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

/* Utilidades */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.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; }

/* Efectos de hover para elementos interactivos */
.clickable {
  transition: var(--transition);
  cursor: pointer;
}

.clickable:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}