/* ==========================================================================
   CAREPE - Modern Design System
   ========================================================================== */

@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');

:root {
  /* Color Palette */
  --primary: #003c78;
  --primary-dark: #00254d;
  --primary-light: #1e5ba3;
  --accent: #d48a37; /* Complementary gold/amber color from logo reference */
  --accent-hover: #b87227;
  --bg-dark: #0b1320;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  /* Fonts */
  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout & Transitions */
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-dark h2, .section-dark h3 {
  color: var(--text-light);
}

.section-alt {
  background-color: var(--bg-light);
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent);
  color: var(--bg-white);
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--bg-white);
}

/* Header & Navigation */
header.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

header.header-nav.scrolled {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 150px;
  transition: var(--transition);
}

header.header-nav.scrolled .navbar {
  height: 100px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 130px;
  width: auto;
  transition: var(--transition);
}

header.header-nav.scrolled .logo-img {
  height: 85px;
}

.logo-text {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-dark);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-dark);
  cursor: pointer;
  padding: 8px;
}

/* Hero Section */
.hero {
  padding-top: 200px;
  padding-bottom: 100px;
  background: radial-gradient(circle at 80% 20%, rgba(30, 91, 163, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(212, 138, 55, 0.05) 0%, transparent 40%),
              var(--bg-light);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  color: var(--primary-dark);
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

.hero-illustration {
  position: relative;
}

.hero-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border-left: 6px solid var(--accent);
  position: relative;
  z-index: 2;
}

.hero-card-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-backdrop {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  background: var(--primary);
  opacity: 0.1;
  border-radius: var(--border-radius);
  z-index: 1;
}

/* Quienes Somos */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-card {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.about-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary);
}

.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-card h3 i {
  color: var(--accent);
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.valores-container {
  background: var(--bg-light);
  padding: 40px;
  border-radius: var(--border-radius);
}

.valores-container h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 12px;
}

.valores-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.valor-item h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.valor-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Comision Directiva */
.comision-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.comision-image-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 130px;
}

.comision-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: var(--transition);
}

.comision-img:hover {
  transform: scale(1.03);
}

.comision-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: var(--primary);
  color: var(--text-light);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
}

.comision-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.comision-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent);
}

.comision-item .nombre {
  font-weight: 600;
  color: var(--primary-dark);
}

.comision-item .cargo {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 0, 0, 0.05);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 60, 120, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
  font-size: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--primary);
  color: var(--bg-white);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Asociate */
.asociate-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.asociate-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.asociate-banner h2 {
  color: var(--text-light);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.asociate-banner p {
  color: rgba(248, 250, 252, 0.85);
  font-size: 1.1rem;
  margin-bottom: 24px;
  max-width: 600px;
}

.asociate-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.asociate-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.asociate-list-item i {
  color: var(--accent);
}

.asociate-action {
  text-align: right;
}

/* Contacto & Formulario */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(212, 138, 55, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-item-details h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--primary-dark);
}

.contact-item-details p,
.contact-item-details a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-item-details a:hover {
  color: var(--accent);
}

.map-container {
  margin-top: 12px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 200px;
}

.contact-form-wrapper {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-form-wrapper h3 {
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  background-color: var(--bg-light);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-light);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(30, 91, 163, 0.15);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: none;
}

.form-status.success {
  display: block;
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Footer */
footer.footer {
  background-color: var(--bg-dark);
  color: rgba(248, 250, 252, 0.7);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-brand .logo-text,
.footer-brand .logo-text span {
  color: var(--text-light);
}

.footer-links h4,
.footer-contact h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-list a {
  font-size: 0.9rem;
}

.footer-list a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact-info li i {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

/* Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  visibility: hidden;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .comision-grid,
  .asociate-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .asociate-action {
    text-align: left;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }
  
  .logo-img {
    height: 55px;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.open {
    left: 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .valores-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Metrología Legal Section
   ========================================================================== */
.metrologia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.metrologia-image-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.metrologia-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: var(--transition);
}

.metrologia-img:hover {
  transform: scale(1.02);
}

.metrologia-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: var(--primary);
  color: var(--text-light);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.accordion-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: var(--font-headings);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.accordion-header:hover {
  color: var(--accent);
}

.accordion-header i {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.accordion-header.active i {
  transform: rotate(180deg);
  color: var(--accent);
}

.accordion-content {
  display: none;
  padding: 24px;
  border-top: 1px solid #e2e8f0;
  color: var(--text-muted);
  font-size: 0.95rem;
  background-color: var(--bg-light);
}

.accordion-content.open {
  display: block;
}

.accordion-content p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* Media Query Overrides for Metrologia Section */
@media (max-width: 992px) {
  .metrologia-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==========================================================================
   Instrumento Reglamentado Interactive Banner
   ========================================================================== */
.reglamentado-banner {
  margin-top: 80px;
  background: linear-gradient(180deg, var(--bg-light) 0%, rgba(0, 60, 120, 0.03) 100%);
  border-radius: var(--border-radius);
  padding: 60px 40px;
  border: 1px solid rgba(0, 60, 120, 0.06);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.reglamentado-badge {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 30px;
  letter-spacing: 1px;
  display: inline-block;
  margin-top: 8px;
  box-shadow: var(--shadow-sm);
}

.reglamentado-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: stretch;
}

.reglamentado-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.reglamentado-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.text-card {
  display: flex;
  gap: 20px;
}

.card-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(212, 138, 55, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  font-size: 1.3rem;
  transition: var(--transition);
}

.reglamentado-card:hover .card-icon {
  background-color: var(--accent);
  color: var(--bg-white);
  transform: rotate(5deg);
}

.reglamentado-card h4 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.reglamentado-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.reglamentado-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reglamentado-list li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.reglamentado-list li i {
  color: var(--primary-light);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* Flow steps styling */
.flow-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 20px;
  width: 2px;
  height: calc(100% - 30px);
  background-color: rgba(0, 60, 120, 0.1);
  z-index: 1;
}

.flow-step {
  display: flex;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.flow-step:hover .step-num {
  background-color: var(--accent);
  transform: scale(1.1);
}

.step-icon {
  width: 42px;
  height: 42px;
  background-color: var(--bg-light);
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition);
}

.flow-step:hover .step-icon {
  color: var(--accent);
  border-color: var(--accent);
  background-color: var(--bg-white);
}

.step-text h5 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.step-text p {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Collapsible Examples */
.reglamentado-examples {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.examples-toggle-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: none;
  border: none;
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.examples-toggle-btn:hover {
  color: var(--accent);
}

.examples-toggle-btn i {
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.examples-toggle-btn.active i {
  transform: rotate(45deg);
  color: var(--accent);
}

.examples-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding: 32px;
  border-top: 1px solid #e2e8f0;
  background-color: var(--bg-light);
}

.examples-grid.open {
  display: grid;
  animation: slideDown 0.3s ease-out forwards;
}

.example-item {
  background: var(--bg-white);
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-light);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}

.example-item:hover {
  transform: translateX(4px);
  border-left-color: var(--accent);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .reglamentado-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .reglamentado-banner {
    padding: 40px 24px;
  }
}

/* ==========================================================================
   Inscription Modal Styles
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 19, 32, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 20px;
}

.modal.open {
  display: flex;
  animation: modalFadeIn 0.3s ease-out forwards;
}

.modal-content {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 40px;
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  border-top: 6px solid var(--accent);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--accent);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 576px) {
  .modal-content {
    padding: 24px;
  }
}
