/**
 * Visual Identity & Layout - RF Concepción (Scandinavian / Danish Minimalist Design)
 * Standalone CSS for RF Concepción Microsite
 */

:root {
  --rf-bg: #ffffff;
  --rf-bg-alt: #f8fafc;
  --rf-card-bg: #ffffff;
  --rf-text-main: #0f172a;
  --rf-text-muted: #64748b;
  --rf-border: #e2e8f0;

  /* Centralized Accent Color: Verde Pasto Natural (#3F8F3B & #2F7031) */
  --accent: #3f8f3b;
  --accent-hover: #337830;
  --accent-dark: #2f7031;
  --accent-soft: #eef7ec;
  --accent-border: #cfe5ca;

  --rf-dark-btn: #0f172a;
  --rf-dark-btn-hover: #1e293b;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--rf-text-main);
  background-color: var(--rf-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Header Minimal */
.header-minimal {
  border-bottom: 1px solid var(--rf-border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* Hero Section */
.hero-conce {
  padding: 4.5rem 1rem 3.5rem;
  background: radial-gradient(circle at top, rgba(63, 143, 59, 0.05) 0%, transparent 70%);
}

/* Dual Logos Hero (RF Chile Izquierda / ASBJJ Derecha) */
.hero-logos-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.hero-logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-item {
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.06));
  transition: transform 0.3s ease;
}

.hero-logo-item:hover {
  transform: scale(1.03);
}

.hero-logo-rf {
  max-width: 164px;
  max-height: 164px;
}

.hero-logo-asbjj {
  max-width: 170px;
  max-height: 170px;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background-color: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 50px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--rf-text-main);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--rf-text-muted);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn-conce-primary {
  background-color: var(--accent);
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(63, 143, 59, 0.2);
}

.btn-conce-primary:hover {
  background-color: var(--accent-hover);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(63, 143, 59, 0.3);
}

.btn-conce-secondary {
  background-color: var(--rf-dark-btn);
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-conce-secondary:hover {
  background-color: var(--rf-dark-btn-hover);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-conce-outline {
  background-color: transparent;
  color: var(--rf-text-main) !important;
  border: 1px solid var(--rf-border);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-conce-outline:hover {
  border-color: var(--rf-text-main);
  background-color: var(--rf-bg-alt);
}

/* Accent Utility Class */
.text-accent {
  color: var(--accent-dark) !important;
}

/* Sections */
.section-conce {
  padding: 4.5rem 1rem;
}

.section-conce-alt {
  padding: 4.5rem 1rem;
  background-color: var(--rf-bg-alt);
}

.section-tag {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

/* Encabezado Imponente para Horarios de Clase */
.section-heading-imposing {
  font-size: clamp(1.75rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--rf-text-main);
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
}

.section-heading-accent-line {
  width: 50px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 4px;
  margin: 0.75rem auto 1.5rem;
}

/* Segmented Control UX Selector para Horarios (Por Día | Por Tipo de Clase) */
.schedule-view-selector {
  display: inline-flex;
  background: var(--rf-card-bg);
  border: 1px solid var(--rf-border);
  border-radius: 50px;
  padding: 4px;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  max-width: 100%;
}

.schedule-view-btn {
  background: transparent;
  border: none;
  border-radius: 50px;
  padding: 0.55rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rf-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.schedule-view-btn:hover {
  color: var(--rf-text-main);
}

.schedule-view-btn.active {
  background-color: var(--accent-dark);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(47, 112, 49, 0.2);
}

/* Schedule Container Views */
.schedule-view-pane {
  display: none;
}

.schedule-view-pane.active {
  display: block;
}

/* Unified Schedule Cards (Por día & Por tipo de clase) */
.day-schedule-card,
.cat-schedule-card {
  background: var(--rf-card-bg);
  border: 1px solid var(--rf-border);
  border-radius: 14px;
  padding: 1.75rem;
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.day-schedule-card:hover,
.cat-schedule-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 12px 30px -10px rgba(63, 143, 59, 0.12);
}

.day-title,
.cat-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--rf-text-main);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--rf-border);
}

.day-class-item,
.cat-block-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--rf-border);
}

.day-class-item:last-child,
.cat-block-item:last-child {
  border-bottom: none;
}

.day-class-time,
.cat-block-time {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-dark);
  min-width: 75px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.day-class-name,
.cat-block-days {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--rf-text-main);
  text-align: right;
}

/* Minimalist Danish Style PRÓXIMA CLASE Card */
.next-class-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background-color: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  padding: 0.75rem 1.5rem;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(63, 143, 59, 0.08);
}

.next-class-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background-color: rgba(63, 143, 59, 0.14);
  padding: 0.22rem 0.7rem;
  border-radius: 20px;
  white-space: nowrap;
}

.next-class-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  text-align: center;
}

.next-class-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--rf-text-main);
}

.next-class-separator {
  color: var(--accent-dark);
  font-weight: 700;
}

.next-class-time {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-dark);
}

/* Gallery Section & Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 1px solid var(--rf-border);
  background: var(--rf-bg-alt);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

/* Lightbox Modal Overlay */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  background: transparent;
  border: none;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

/* Map Container */
.map-embed-container {
  width: 100%;
  height: 380px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--rf-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.map-embed-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Info Box / Values */
.info-box {
  border: 1px solid var(--rf-border);
  background-color: var(--rf-card-bg);
  border-radius: 16px;
  padding: 2.5rem 2rem;
}

/* Pricing Group Cards System */
.price-group-card {
  background: var(--rf-card-bg);
  border: 1px solid var(--rf-border);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.price-group-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.price-group-header {
  background-color: var(--accent-dark);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.price-group-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  color: #ffffff;
}

.price-group-subtext {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.25rem;
  display: block;
}

.price-group-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-plan-item {
  border-bottom: 1px solid var(--rf-border);
  padding-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.price-plan-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.price-plan-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--rf-text-main);
  text-align: left;
}

.price-plan-amount {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent-dark);
  white-space: nowrap;
}

.price-plan-period {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--rf-text-muted);
}

/* Academias ASBJJ | RF Grid */
.academy-card {
  background: var(--rf-card-bg);
  border: 1px solid var(--rf-border);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--rf-text-main);
  transition: all 0.2s ease;
  display: block;
}

.academy-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--accent-dark);
}

/* Exact Footer (Exclusivamente la línea exigida) */
.footer-exact {
  border-top: 1px solid var(--rf-border);
  padding: 2rem 1rem;
  background-color: var(--rf-bg);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rf-text-main);
}

/* Responsive Overrides & Mobile Fine-Tuning (320px - 430px) */
@media (max-width: 768px) {
  .hero-conce {
    padding: 3.5rem 1rem 2.5rem;
  }
  .section-conce, .section-conce-alt {
    padding: 3.5rem 1rem;
  }
  .day-schedule-card,
  .cat-schedule-card {
    padding: 1.35rem 1.15rem;
  }
  .info-box {
    padding: 1.75rem 1.25rem;
  }
@media (max-width: 576px) {
  .hero-logos-wrapper {
    gap: 1.2rem;
    margin-bottom: 1.5rem;
  }
  .hero-logo-rf {
    max-width: 106px;
    max-height: 106px;
  }
  .hero-logo-asbjj {
    max-width: 110px;
    max-height: 110px;
  }
  .hero-conce {
    padding: 2.75rem 0.85rem 2rem;
  }
  .section-conce, .section-conce-alt {
    padding: 2.75rem 0.85rem;
  }
  
  /* Próxima Clase Card on Mobile */
  .next-class-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    gap: 0.25rem;
  }
  .next-class-tag {
    font-size: 0.68rem;
    padding: 0.18rem 0.55rem;
    letter-spacing: 0.1em;
  }
  .next-class-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    width: 100%;
  }
  .next-class-separator {
    display: none;
  }
  .next-class-name {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    word-break: break-word;
  }
  .next-class-time {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--accent-dark);
    text-align: center;
  }

  /* Schedule View Selector on Mobile */
  .schedule-view-selector {
    display: flex;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .schedule-view-btn {
    flex: 1;
    padding: 0.55rem 0.5rem;
    font-size: 0.82rem;
    text-align: center;
  }

  /* Schedule Cards on Mobile */
  .day-schedule-card,
  .cat-schedule-card {
    padding: 1.2rem 1rem;
    border-radius: 12px;
  }
  .day-title,
  .cat-title {
    font-size: 1.05rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
  }
  .day-class-time,
  .cat-block-time {
    font-size: 1rem;
    min-width: 68px;
  }
  .day-class-name,
  .cat-block-days {
    font-size: 0.88rem;
  }

  /* Pricing Cards on Mobile */
  .price-group-card {
    border-radius: 12px;
  }
  .price-group-header {
    padding: 1rem 1.15rem;
  }
  .price-group-title {
    font-size: 1.05rem;
  }
  .price-group-subtext {
    font-size: 0.78rem;
  }
  .price-group-body {
    padding: 1.15rem 0.9rem;
    gap: 0.75rem;
  }
  .price-plan-item {
    padding-bottom: 0.75rem;
  }
  .price-plan-name {
    font-size: 0.88rem;
  }
  .price-plan-amount {
    font-size: 1.15rem;
  }
  .price-plan-period {
    font-size: 0.75rem;
  }

  /* Academy Cards on Mobile */
  .academy-card {
    padding: 0.9rem 0.6rem;
  }

  /* Map Container on Mobile */
  .map-embed-container {
    height: 300px;
    border-radius: 12px;
  }
@media (max-width: 380px) {
  .hero-logo-rf {
    max-width: 87px;
    max-height: 87px;
  }
  .hero-logo-asbjj {
    max-width: 90px;
    max-height: 90px;
  }
  .hero-title {
    font-size: 1.95rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .next-class-box {
    max-width: 300px;
    padding: 0.65rem 0.85rem;
  }
  .next-class-name {
    font-size: 0.98rem;
  }
  .next-class-time {
    font-size: 0.88rem;
  }
  .schedule-view-btn {
    padding: 0.45rem 0.35rem;
    font-size: 0.78rem;
  }
  .day-class-time,
  .cat-block-time {
    font-size: 0.95rem;
    min-width: 62px;
  }
  .day-class-name,
  .cat-block-days {
    font-size: 0.82rem;
  }
  .price-plan-amount {
    font-size: 1.05rem;
  }
  .price-plan-name {
    font-size: 0.82rem;
  }
}
