/*
 * ============================================
 * Impulsate & Emprende - Cursos de Capacitación
 * Diseño Moderno 2026
 * ============================================
 */

/* ============================================
   CSS VARIABLES & ROOT
   ============================================ */
:root {
  /* Primary Colors - Purple Palette */
  --color-primary: #7b2d8e;
  --color-primary-dark: #5a1f68;
  --color-primary-light: #9b4db0;
  --color-accent: #8b3a9e;
  --color-secondary: #a855f7;

  /* Backgrounds */
  --color-bg-light: #f8f7fc;
  --color-bg-white: #ffffff;
  --color-bg-dark: #0d0d0d;
  --color-bg-footer: #1a1a1a;
  --color-bg-purple: #7b2d8e;

  /* Typography */
  --color-text-main: #2d1f3d;
  --color-text-muted: #645a72;
  --color-text-light: #9ca3af;
  --color-text-white: #ffffff;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #7b2d8e 0%, #5a1f68 100%);
  --gradient-hero: linear-gradient(135deg, #7b2d8e 0%, #5a1f68 50%, #7b2d8e 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(123, 45, 142, 0.08);
  --shadow-md: 0 12px 24px rgba(123, 45, 142, 0.12);
  --shadow-lg: 0 20px 40px rgba(123, 45, 142, 0.18);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Typography */
  --font-primary: 'Open Sans', system-ui, sans-serif;
  --font-display: 'Poppins', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--color-bg-white);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.section-title .highlight {
  color: var(--color-primary);
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 680px;
  margin: 0 auto 18px;
  line-height: 1.7;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  background: var(--color-primary);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 52px;
  max-width: 280px;
  width: auto;
  object-fit: contain;
}

.navbar-links {
  display: none;
  gap: 0;
  list-style: none;
  align-items: center;
  height: 100%;
  justify-content: center;
  width: 100%;
  position: relative;
  padding-right: 150px;
}

@media (min-width: 1100px) {
  .navbar-links {
    display: flex;
  }
}

.navbar-links li {
  height: 70px;
  display: flex;
  align-items: center;
}

.navbar-links a {
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--color-text-white);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  text-transform: capitalize;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.navbar-links a.nav-cta {
  background: linear-gradient(135deg, #00c853 0%, #00a843 100%);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 0;
  border: none;
  box-shadow: 0 8px 25px rgba(0, 200, 83, 0.35);
  line-height: 1;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar-links .nav-cta-item {
  margin-left: 0;
  order: 99;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.navbar-links a.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 200, 83, 0.45);
}

.navbar.scrolled .navbar-links a.nav-cta {
  color: #ffffff;
}

.navbar.scrolled .navbar-links a {
  color: var(--color-text-main);
}

.navbar.scrolled .navbar-links a.active {
  box-shadow: none;
}

.navbar.scrolled .navbar-links a:hover {
  background: rgba(123, 45, 142, 0.08);
}

.navbar.scrolled .navbar-toggle span {
  background: var(--color-primary);
}

.navbar-links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.navbar-links a.active {
  background: transparent;
  font-weight: 500;
  box-shadow: none;
}

/* Mobile Toggle */
.navbar-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  z-index: 1001;
}

@media (min-width: 1100px) {
  .navbar-toggle {
    display: none;
  }
}

.navbar-toggle span {
  width: 100%;
  height: 2px;
  background: var(--color-text-white);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Mobile Menu */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100%;
  height: 100dvh;
  background: #ffffff;
  z-index: 1100;
  transition: right 0.4s ease;
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--color-primary);
  min-height: 70px;
}

.mobile-menu-brand img {
  height: 44px;
  max-width: 240px;
  width: auto;
  object-fit: contain;
}

.mobile-menu-close {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-white);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.mobile-menu-links {
  list-style: none;
  flex: 1;
  padding: 0.5rem 0;
  overflow-y: auto;
}

.mobile-menu-links li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu-links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-main);
  display: block;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
}

.mobile-menu-links a:hover {
  color: var(--color-primary);
  background: rgba(123, 45, 142, 0.05);
  padding-left: 2rem;
}

/* --- Mobile Menu CTA (botón Cursos grande y visible) --- */
.mobile-menu-cta {
  padding: 1.5rem;
  margin-top: auto;
  border-top: 1px solid rgba(123, 45, 142, 0.1);
}
.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.1rem 1.5rem;
  background: var(--gradient-primary);
  color: #fff !important;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(123, 45, 142, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mobile-cta-btn .material-icons {
  font-size: 1.5rem;
}
.mobile-cta-btn:hover,
.mobile-cta-btn:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(123, 45, 142, 0.5);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  top: -200px;
  right: -200px;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 600px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--color-text-white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 100%;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #00c853 0%, #00a843 100%);
  color: white;
  padding: 0.95rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 25px rgba(0, 200, 83, 0.35);
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 200, 83, 0.45);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: white;
  padding: 0.95rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  text-align: center;
}

.btn-secondary:hover {
  background: white;
  color: var(--color-primary);
}

/* ============================================
   QUICK ACTIONS
   ============================================ */
.quick-actions {
  padding: 60px 0;
  background: var(--color-bg-white);
}

.actions-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.action-card:hover {
  transform: translateY(-5px);
}

.action-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.action-card span {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

/* ============================================
   COURSES SLIDER
   ============================================ */
.courses-section {
  padding: 60px 0 80px;
  background: var(--color-bg-white);
}

.courses-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.slider-btn:hover {
  background: var(--color-primary);
  color: white;
}

.slider-btn .material-icons {
  font-size: 28px;
}

.slider-container {
  flex: 1;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.course-slide {
  flex: 0 0 calc(33.333% - 14px);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.course-slide:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.course-slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.course-slide:hover img {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .course-slide {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 600px) {
  .course-slide {
    flex: 0 0 100%;
  }
  .course-slide img {
    height: 300px;
  }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f9f5fc 0%, #ffffff 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: white;
  padding: 28px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(123, 45, 142, 0.06);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.feature-card.highlight-card {
  background: linear-gradient(135deg, #7b2d8e 0%, #5a1f68 100%);
  color: white;
  border: none;
}

.highlight-card .card-tag {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.highlight-card h3 {
  color: white;
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 15px;
}

.highlight-card ul {
  list-style: none;
  margin-bottom: 20px;
}

.highlight-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.highlight-card li .material-icons {
  font-size: 18px;
  color: #00e676;
}

.btn-conoce-mas {
  display: inline-block;
  background: white;
  color: var(--color-primary);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.btn-conoce-mas:hover {
  background: #f0f0f0;
}

/* ============================================
   SPACE SECTION
   ============================================ */
.space-section {
  padding: 60px 0;
  background: var(--color-bg-white);
}

.space-description {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ============================================
   WHY US SECTION
   ============================================ */
.why-us-section {
  padding: 80px 0;
  background: var(--color-bg-light);
}

.why-us-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .why-us-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.why-us-text h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.3;
  margin-bottom: 20px;
}

.why-us-text h2 .highlight {
  color: var(--color-primary);
}

.why-us-text p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 15px;
}

.why-us-stats {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.stat-info .stars {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.benefits-list {
  list-style: none;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.benefits-list li .material-icons {
  color: #00c853;
  font-size: 22px;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
  padding: 60px 0 70px;
  background: #ffffff;
}

.testimonials-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 12px;
}

.testimonials-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.2;
}

.testimonials-note {
  background: #f3eef7;
  color: #5a3b75;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.testimonial-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: 16px;
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
}

.testimonial-stats .stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.testimonial-stats .stars {
  color: #ffc107;
  font-size: 1rem;
}

.testimonial-stats span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  background: #f1eef2;
  padding: 24px 24px 22px;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
  position: relative;
  min-height: 160px;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  padding: 60px 0 80px;
  background: #ffffff;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(123, 45, 142, 0.12);
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 600;
  color: #3d2b4f;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--color-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-content {
  padding: 0 16px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.is-open .faq-content {
  padding: 0 16px 16px;
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 2.4rem;
  color: rgba(90, 59, 117, 0.25);
  font-family: var(--font-display);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-text {
  font-size: 0.92rem;
  color: #5a5163;
  line-height: 1.6;
  margin-bottom: 12px;
  font-style: italic;
}

.testimonial-author {
  font-weight: 700;
  color: var(--color-text-main);
  font-size: 0.95rem;
}

/* ============================================
   ACCREDITATION BANNER
   ============================================ */
.accreditation-section {
  padding: 80px 0 50px;
  background: #f4f0f9;
}

.accreditation-header {
  text-align: center;
  margin-bottom: 26px;
}

.accreditation-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.accreditation-header p {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 680px;
  margin: 0 auto 16px;
}

.accent-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.accent-dots span {
  width: 26px;
  height: 6px;
  border-radius: 999px;
  display: inline-block;
}

.accent-dots span:nth-child(1) { background: #22d3ee; }
.accent-dots span:nth-child(2) { background: #3b82f6; }
.accent-dots span:nth-child(3) { background: #6366f1; }
.accent-dots span:nth-child(4) { background: #a855f7; }

.accreditation-banner {
  background: #ffffff;
  border-radius: 999px;
  padding: 24px 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(123, 45, 142, 0.08);
  position: relative;
}

.accreditation-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.accreditation-logos img {
  height: 46px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
}

@media (max-width: 700px) {
  .accreditation-banner {
    border-radius: var(--radius-lg);
  }
  .accreditation-logos {
    gap: 16px;
  }
  .accreditation-logos img {
    height: 40px;
  }
}

/* ============================================
   COLLABORATORS
   ============================================ */
.collaborators-section {
  padding: 20px 0 70px;
  background: #f4f0f9;
}

.collaborators-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 18px;
}

.collaborators-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.collaborators-grid img {
  height: 56px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  filter: grayscale(10%);
  transition: var(--transition-fast);
}

.collaborators-grid img.is-wide {
  height: 52px;
  max-width: 280px;
}

.collaborators-grid img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ============================================
   SHOP / TIENDA
   ============================================ */
.shop-section {
  padding: 80px 0;
  background: var(--color-bg-light);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1000px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}

.shop-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(123, 45, 142, 0.08);
  transition: var(--transition-smooth);
  min-height: 260px;
}

.shop-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.shop-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.shop-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.shop-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--color-text-main);
  margin-top: 14px;
}

.shop-btn {
  margin-top: 18px;
  background: var(--gradient-primary);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.shop-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   INSCRIPCION FORM
   ============================================ */
.form-section {
  padding: 80px 0;
  background: var(--color-bg-light);
}

.form-card {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(123, 45, 142, 0.08);
}

.form-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.form-card p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text-main);
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(123, 45, 142, 0.15);
  font-size: 0.95rem;
  background: #faf8fc;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(123, 45, 142, 0.12);
}

.form-submit {
  width: 100%;
  background: var(--gradient-primary);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.form-alert {
  background: #fff2f2;
  border: 1px solid #f5c2c2;
  color: #c0392b;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* ============================================
   FOOTER - STYLE YO ESTOY AQUÍ
   ============================================ */
.footer {
  background: var(--color-bg-dark);
  color: #fff;
  padding-top: 60px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

.footer-brand .footer-logo {
  height: 56px;
  max-width: 320px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .footer-brand .footer-logo {
    margin: 0 auto 20px;
  }
}

.footer-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  line-height: 1.6;
}

.footer-location {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .footer-location {
    justify-content: center;
  }
}

.footer-location .location-icon {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-top: 2px;
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  color: #fff;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .footer-contact-item {
    justify-content: center;
  }
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-contact-item a:hover {
  color: #fff;
}

/* Footer Divider */
.footer-divider {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0;
}

/* Footer Secondary Links */
.footer-secondary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 25px 0;
  flex-wrap: wrap;
}

.footer-secondary a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-secondary a:hover {
  color: #fff;
}

.footer-secondary span {
  color: rgba(255, 255, 255, 0.3);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

@media (max-width: 600px) {
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

.footer-credits {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credits a {
  color: #e91e63;
  font-weight: 600;
}

.footer-credits a:hover {
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  fill: white;
}

/* ============================================
   SERAPHIM BADGE
   ============================================ */
.seraphim-badge {
  background: var(--color-bg-dark);
  text-align: center;
  padding: 15px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.seraphim-badge span {
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
}

.seraphim-badge small {
  font-size: 0.65rem;
  opacity: 0.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .why-us-text h2 {
    font-size: 1.8rem;
  }
  
  .testimonials-header h2 {
    font-size: 1.6rem;
  }
}

/* ============================================
   PAGE STYLES (for subpages)
   ============================================ */
.page-hero {
  background: var(--gradient-hero);
  padding: 140px 0 80px;
  text-align: center;
  color: white;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-hero .breadcrumb {
  font-size: 0.95rem;
  opacity: 0.85;
}

.page-hero .breadcrumb a {
  color: white;
}

.page-hero p.subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  padding: 80px 0;
  background: var(--color-bg-light);
}

/* ============================================
   RESPONSIVE - COMPLETE MOBILE ADAPTATION
   iPhone SE/X/11/12/13/14/15/16/17
   Samsung Galaxy S/A/Z
   Xiaomi, Vivo, Android
   iPad, Galaxy Tab, Tablets
   ============================================ */

/*  Touch & Safe Area Support  */
html {
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  -webkit-font-smoothing: antialiased;
}

/* ─── Tablet Large (1024px) — iPad Pro, Galaxy Tab S ─── */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .hero {
    padding: 110px 0 70px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .why-us-content {
    gap: 40px;
  }

  .stat-number {
    font-size: 3rem;
  }

  .testimonials-grid {
    gap: 16px;
  }

  .actions-grid {
    gap: 30px;
  }

  .action-card span {
    font-size: 1.4rem;
  }

  .action-icon {
    width: 60px;
    height: 60px;
  }

  .page-hero {
    padding: 120px 0 60px;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Tablet Small / Mobile Large (768px) — iPad Mini, Galaxy Tab A ─── */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Navbar */
  .navbar-inner {
    height: 60px;
  }

  .navbar-logo img {
    height: 45px;
  }

  /* Hero */
  .hero {
    padding: 90px 0 50px;
    min-height: 85vh;
    min-height: 85dvh;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .hero-cta {
    max-width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.82rem;
    text-align: center;
  }

  /* Quick Actions */
  .quick-actions {
    padding: 40px 0;
  }

  .actions-grid {
    gap: 20px;
    justify-content: center;
  }

  .action-icon {
    width: 56px;
    height: 56px;
  }

  .action-card span {
    font-size: 1.2rem;
  }

  /* Courses Slider */
  .courses-section {
    padding: 40px 0 60px;
  }

  .slider-btn {
    width: 38px;
    height: 38px;
  }

  .slider-btn .material-icons {
    font-size: 22px;
  }

  /* Features */
  .features-section {
    padding: 50px 0;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .feature-card {
    padding: 22px 18px;
  }

  .feature-card h3 {
    font-size: 1rem;
  }

  .feature-card p {
    font-size: 0.82rem;
  }

  /* Space Section */
  .space-section {
    padding: 40px 0;
  }

  .space-description {
    font-size: 0.92rem;
  }

  /* Why Us */
  .why-us-section {
    padding: 50px 0;
  }

  .why-us-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .why-us-text h2 {
    font-size: 1.6rem;
  }

  .why-us-stats {
    padding: 24px;
  }

  .stat-number {
    font-size: 2.8rem;
  }

  /* Testimonials */
  .testimonials-section {
    padding: 50px 0;
  }

  .testimonials-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .testimonials-header h2 {
    font-size: 1.5rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonial-card {
    padding: 20px;
    min-height: auto;
  }

  /* FAQ */
  .faq-section {
    padding: 50px 0;
  }

  .faq-item summary {
    padding: 14px 40px 14px 16px;
    font-size: 0.92rem;
  }

  /* Accreditation */
  .accreditation-section {
    padding: 50px 0 40px;
  }

  .accreditation-banner {
    border-radius: var(--radius-lg);
    padding: 20px;
  }

  .accreditation-logos {
    gap: 16px;
  }

  .accreditation-logos img {
    height: 36px;
    max-width: 130px;
  }

  /* Collaborators */
  .collaborators-section {
    padding: 40px 0;
  }

  /* Shop / Tienda */
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .shop-card {
    padding: 20px;
    min-height: auto;
  }

  /* Forms */
  .form-card {
    padding: 28px 20px;
  }

  /* Footer */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-nav ul {
    columns: 2;
  }

  .footer-contact-item {
    justify-content: center;
  }

  .footer-location {
    justify-content: center;
  }

  .footer-secondary {
    padding: 20px 0;
    gap: 10px;
    font-size: 0.82rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .footer-credits,
  .footer-copyright {
    font-size: 0.78rem;
  }

  /* Page Hero (subpages) */
  .page-hero {
    padding: 100px 0 50px;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .page-hero p.subtitle {
    font-size: 0.92rem;
    padding: 0 10px;
  }

  .page-hero .breadcrumb {
    font-size: 0.85rem;
  }

  .page-content {
    padding: 50px 0;
  }

  /* Section Headers */
  .section-header {
    margin-bottom: 28px;
  }

  .section-subtitle {
    font-size: 0.92rem;
  }

  /* WhatsApp button */
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
}

/* ─── Mobile (480px) — iPhone 12-17, Galaxy S21-S25, Xiaomi 13/14, Vivo ─── */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  /* Navbar */
  .navbar-inner {
    height: 56px;
  }

  .navbar-logo img {
    height: 38px;
  }

  .navbar-toggle {
    width: 36px;
    height: 36px;
    padding: 7px;
    gap: 4px;
  }

  /* Hero */
  .hero {
    padding: 80px 0 40px;
    min-height: 80vh;
    min-height: 80dvh;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 0.8rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    line-height: 1.55;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    padding: 0.78rem 1.2rem;
    font-size: 0.8rem;
  }

  /* Quick Actions */
  .quick-actions {
    padding: 30px 0;
  }

  .actions-grid {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .action-card {
    width: 100%;
    justify-content: center;
  }

  .action-icon {
    width: 48px;
    height: 48px;
  }

  .action-card span {
    font-size: 1.1rem;
  }

  /* Courses Slider */
  .courses-section {
    padding: 30px 0 50px;
  }

  .courses-slider {
    gap: 8px;
  }

  .slider-btn {
    width: 34px;
    height: 34px;
  }

  .slider-btn .material-icons {
    font-size: 18px;
  }

  .course-slide img {
    height: 250px;
  }

  /* Features */
  .features-section {
    padding: 40px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 20px 16px;
  }

  /* Space Section */
  .space-section {
    padding: 30px 0;
  }

  .space-description {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  /* Why Us */
  .why-us-section {
    padding: 40px 0;
  }

  .why-us-text h2 {
    font-size: 1.4rem;
  }

  .why-us-text p {
    font-size: 0.9rem;
  }

  .why-us-stats {
    padding: 20px;
  }

  .stat-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .stat-number {
    font-size: 2.4rem;
  }

  .benefits-list li {
    font-size: 0.88rem;
    padding: 8px 0;
  }

  /* Testimonials */
  .testimonials-section {
    padding: 40px 0;
  }

  .testimonials-header h2 {
    font-size: 1.3rem;
  }

  .testimonial-card {
    padding: 18px 16px;
  }

  .testimonial-text {
    font-size: 0.85rem;
  }

  .testimonial-avatar {
    width: 44px;
    height: 44px;
  }

  .testimonial-stats .stat-number {
    font-size: 2.2rem;
  }

  /* FAQ */
  .faq-section {
    padding: 40px 0;
  }

  .faq-item summary {
    padding: 12px 36px 12px 14px;
    font-size: 0.88rem;
  }

  .faq-content {
    font-size: 0.88rem;
  }

  /* Accreditation */
  .accreditation-section {
    padding: 40px 0 30px;
  }

  .accreditation-header h2 {
    font-size: 1.4rem;
  }

  .accreditation-banner {
    padding: 16px;
  }

  .accreditation-logos {
    gap: 12px;
  }

  .accreditation-logos img {
    height: 30px;
    max-width: 100px;
  }

  /* Cert Search */
  .cert-search-section h3 {
    font-size: 1.2rem;
  }

  .cert-search-form input {
    min-width: 100%;
  }

  /* Shop / Tienda */
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .shop-card {
    padding: 18px;
    min-height: auto;
  }

  .shop-card h3 {
    font-size: 1rem;
  }

  .shop-card p {
    font-size: 0.88rem;
  }

  /* Forms */
  .form-card {
    padding: 24px 16px;
  }

  .form-card h2 {
    font-size: 1.3rem;
  }

  .form-group input {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  /* Section Headers */
  .section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .section-subtitle {
    font-size: 0.85rem;
  }

  /* Footer */
  .footer-nav ul {
    columns: 1;
  }

  .footer-secondary {
    flex-direction: column;
    gap: 8px;
  }

  .footer-secondary span {
    display: none;
  }

  /* Page Hero */
  .page-hero {
    padding: 85px 0 40px;
  }

  .page-hero h1 {
    font-size: 1.6rem;
  }

  .page-hero p.subtitle {
    font-size: 0.85rem;
  }

  .page-content {
    padding: 40px 0;
  }

  /* WhatsApp button */
  .whatsapp-float {
    bottom: 14px;
    right: 14px;
    width: 48px;
    height: 48px;
  }

  .whatsapp-icon {
    width: 26px;
    height: 26px;
  }
}

/* ─── Extra Small (360px) — iPhone SE, Galaxy A03, small Xiaomi/Vivo ─── */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 0.82rem;
  }

  .navbar-logo img {
    height: 32px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .feature-card {
    padding: 16px 14px;
  }

  .page-hero h1 {
    font-size: 1.4rem;
  }

  .page-hero p.subtitle {
    font-size: 0.8rem;
  }

  .shop-card h3 {
    font-size: 0.92rem;
  }

  .form-card {
    padding: 20px 12px;
  }

  .mobile-menu {
    width: 92%;
  }
}

/* ─── Landscape mode on phones ─── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 70px 0 40px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .page-hero {
    padding: 80px 0 30px;
  }
}

/* ─── iOS Safe Areas (iPhone X/11/12/13/14/15/16/17 notch & Dynamic Island) ─── */
@supports (padding: env(safe-area-inset-bottom)) {
  .navbar {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .footer-bottom {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .whatsapp-float {
    bottom: calc(14px + env(safe-area-inset-bottom));
    right: calc(14px + env(safe-area-inset-right));
  }

  .mobile-menu {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .hero-cta {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

/* ─── Touch devices — remove hover jank on mobile ─── */
@media (pointer: coarse) {
  .course-slide:hover,
  .feature-card:hover,
  .testimonial-card:hover,
  .shop-card:hover,
  .action-card:hover {
    transform: none;
  }

  .course-slide:active,
  .feature-card:active,
  .testimonial-card:active,
  .shop-card:active {
    transform: scale(0.98);
  }
}

/* ─── High DPI screens (Retina, AMOLED) — sharper text ─── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
}

/* ─── Foldable devices (Galaxy Z Fold, Z Flip) ─── */
@media (min-width: 600px) and (max-width: 768px) and (orientation: portrait) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us-content {
    grid-template-columns: 1fr;
  }
}

/* ─── Print styles ─── */
@media print {
  .navbar,
  .mobile-menu,
  .mobile-menu-overlay,
  .whatsapp-float,
  .navbar-toggle {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 20px 0;
  }
}

/* ============================================
   ADDITIONAL MOBILE & CROSS-DEVICE FIXES
   iPhone, Android, Xiaomi, Galaxy, etc.
   ============================================ */

/* Fix 100vh on mobile browsers (address bar issue) */
.hero,
.error-page {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

/* Prevent horizontal overflow on ALL devices */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Smooth momentum scrolling on iOS */
.mobile-menu-links,
.slider-container {
  -webkit-overflow-scrolling: touch;
}

/* Fix input zoom on iOS (font-size < 16px causes zoom) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="number"],
input[type="password"],
textarea,
select {
  font-size: 16px !important;
}

@media (min-width: 769px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  input[type="number"],
  input[type="password"],
  textarea,
  select {
    font-size: inherit !important;
  }
}

/* Fix button touch targets (minimum 44x44px per Apple/Google guidelines) */
.btn-primary,
.btn-secondary,
.btn-conoce-mas,
.shop-btn,
.form-submit,
.mobile-menu-links a,
.navbar-toggle,
.mobile-menu-close,
.slider-btn,
.cert-search-form button {
  min-height: 44px;
  min-width: 44px;
}

/* Fix sticky hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  .btn-primary:hover,
  .btn-secondary:hover,
  .shop-btn:hover,
  .action-card:hover,
  .feature-card:hover,
  .testimonial-card:hover,
  .shop-card:hover,
  .course-slide:hover,
  .gallery-item:hover {
    transform: none;
    box-shadow: inherit;
  }
  
  .course-slide:hover img,
  .gallery-item:hover img {
    transform: none;
  }
  
  .gallery-item:hover .overlay {
    opacity: 0;
  }
  
  /* Active states for touch feedback */
  .btn-primary:active,
  .btn-secondary:active,
  .shop-btn:active,
  .mobile-cta-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
  }
}

/* Fix for Galaxy/Xiaomi browser address bar hiding */
@media (max-width: 768px) {
  .hero {
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
  }
}

/* Fix video autoplay on mobile (muted is required) */
.hero-bg-video video {
  -webkit-playsinline: true;
}

/* Prevent text selection on interactive elements */
.navbar-toggle,
.slider-btn,
.mobile-menu-close,
.action-card,
.faq-item summary {
  -webkit-user-select: none;
  user-select: none;
}

/* Fix FAQ on mobile - ensure full width content */
@media (max-width: 480px) {
  .faq-list {
    max-width: 100%;
  }
  
  .faq-item summary {
    padding-right: 40px;
    line-height: 1.4;
  }
}

/* Breadcrumb responsive fix */
.page-hero .breadcrumb {
  word-break: break-word;
}

/* Fix form elements on Samsung/Xiaomi */
.form-group input,
.cert-search-form input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 10px;
}

/* Ensure WhatsApp button doesn't overlap content on small screens */
@media (max-width: 360px) {
  .whatsapp-float {
    bottom: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
  }
  
  .whatsapp-icon {
    width: 24px;
    height: 24px;
  }
}

/* Fix for notch/Dynamic Island on newer iPhones */
@supports (padding: max(0px)) {
  .navbar {
    padding-top: max(0px, env(safe-area-inset-top));
  }
  
  .page-hero {
    padding-top: max(140px, calc(140px + env(safe-area-inset-top)));
  }
  
  @media (max-width: 768px) {
    .page-hero {
      padding-top: max(100px, calc(100px + env(safe-area-inset-top)));
    }
  }
  
  @media (max-width: 480px) {
    .page-hero {
      padding-top: max(85px, calc(85px + env(safe-area-inset-top)));
    }
  }
}

/* Fix mobile menu scrolling when content is too long */
.mobile-menu {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu-links {
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Prevent body scroll when mobile menu is open (via JS class) */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Accreditation logos: prevent shrink on very small screens */
@media (max-width: 360px) {
  .accreditation-logos {
    flex-direction: column;
    gap: 16px;
  }
  
  .accreditation-logos img {
    height: 36px;
    max-width: 140px;
  }
}
