/* Bloque Lab — Theme & Component Styles */
.site-bloque-lab {
  background: #f8f7ef;
  color: #163353;
  font-family: Arial, Helvetica, sans-serif;
  --accent: #245acc;
  --accent-hover: #1b47a8;
  --yellow: #f3ce48;
  --card-bg: #e4ebf9;
  --card-border: #cbd4e4;
  --ink: #163353;
  --ink-muted: #3a5370;
  --radius-sm: 8px;
  --radius-md: 14px;
}

.site-bloque-lab .site-header,
.site-bloque-lab .site-footer {
  background: #f8f7ef;
  color: #163353;
  border-color: #cbd4dd;
}

.site-bloque-lab .brand-mark {
  background: #245acc;
  color: #ffffff;
}

.bl-section {
  max-width: 1440px;
  margin: auto;
  padding: 80px max(5vw, 20px);
}

.bl-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

/* Hero Section */
.bl-hero {
  max-width: 1440px;
  margin: auto;
  padding: 50px max(5vw, 20px) 70px;
}

.bl-title-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 40px;
}

.bl-title-row h1 {
  font-size: clamp(3.2rem, 6.5vw, 6.4rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
  font-weight: 800;
  margin: 12px 0 24px;
  color: var(--ink);
}

.bl-title-row h1 span {
  color: var(--accent);
}

.bl-intro {
  font-size: 1.15rem;
  line-height: 1.8;
  padding-bottom: 20px;
  max-width: 540px;
  color: var(--ink-muted);
}

.bl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.bl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  padding: 14px 28px;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: 4px 4px 0 var(--yellow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.bl-button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--yellow);
}

.bl-button-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 #cbd4dd;
}

.bl-button-secondary:hover {
  background: #f0f4fa;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.bl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.bl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #e9eff9;
  border: 1px solid #c2d3eb;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.bl-workbench {
  margin: 0;
  padding: 20px 20px 0;
  background: var(--yellow);
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(22, 51, 83, 0.08);
}

.bl-workbench img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.bl-workbench figcaption {
  padding: 16px 0;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.bl-picture-tag {
  position: absolute;
  right: 40px;
  top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  transform: rotate(8deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border: 3px solid #ffffff;
}

/* Experiences Section */
.bl-section-head {
  max-width: 820px;
  margin-bottom: 45px;
}

.bl-section-head h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 12px 0 18px;
  color: var(--ink);
  font-weight: 800;
}

.bl-section h2,
.bl-section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 12px 0 18px;
  color: var(--ink);
  font-weight: 800;
}

.bl-section p {
  line-height: 1.8;
  color: var(--ink-muted);
}

.bl-notice {
  display: inline-block;
  padding: 10px 16px;
  background: #eef3fc;
  border-left: 4px solid var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  margin-top: 15px;
  border-radius: 0 6px 6px 0;
}

.bl-programmes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bl-programme {
  padding: 38px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bl-programme:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(22, 51, 83, 0.08);
}

.bl-prog-city {
  background: #245acc;
  color: #ffffff;
  border-color: #1b47a8;
}

.bl-prog-city h3,
.bl-prog-city p,
.bl-prog-city .bl-card-badge {
  color: #ffffff;
}

.bl-prog-city p {
  opacity: 0.92;
}

.bl-prog-robot {
  background: #fff6cf;
  border-color: #e8d58d;
}

.bl-prog-puzzle {
  background: #e7f4eb;
  border-color: #c4e2cd;
}

.bl-prog-free {
  background: #f7e9e5;
  border-color: #e5cbca;
}

.bl-shape {
  font-size: 3.2rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.bl-prog-city .bl-shape {
  color: var(--yellow);
}

.bl-programme h3 {
  font-size: 1.7rem;
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin: 12px 0 14px;
  color: var(--ink);
}

.bl-programme p {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.75;
}

.bl-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
  margin-top: auto;
}

/* Process Section */
.bl-process {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  border-top: 1px solid #cbd4dd;
  padding-top: 90px;
}

.bl-process-notes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bl-process-notes article {
  position: relative;
  background: #ffffff;
  border: 1px solid #cbd4e4;
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  box-shadow: 0 4px 12px rgba(22, 51, 83, 0.04);
}

.bl-step-num {
  position: absolute;
  right: 20px;
  top: 18px;
  font-size: 2.2rem;
  font-weight: 900;
  color: #d8e2f0;
  line-height: 1;
}

.bl-process-notes h3 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 8px 0 10px;
  color: var(--ink);
}

.bl-process-notes p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Visit Options */
.bl-visit {
  background: var(--yellow);
  border-radius: var(--radius-md);
  margin: 40px auto;
}

.bl-visit .bl-eyebrow {
  color: var(--ink);
}

.bl-visit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.bl-visit-card {
  background: #ffffff;
  padding: 30px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.bl-visit-card h3 {
  font-size: 1.45rem;
  margin: 0 0 10px;
  color: var(--ink);
}

.bl-visit-card p {
  margin: 0 0 12px;
  font-size: 0.98rem;
  line-height: 1.7;
}

.bl-visit-meta {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

/* FAQ Section */
.bl-faq-section {
  max-width: 960px;
  margin: auto;
  padding: 80px max(5vw, 20px);
}

.bl-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 35px;
}

.bl-faq-item {
  background: #ffffff;
  border: 1px solid #cbd4dd;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bl-faq-item[open] {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(36, 90, 204, 0.08);
}

.bl-faq-summary {
  cursor: pointer;
  padding: 20px 24px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  user-select: none;
}

.bl-faq-summary::-webkit-details-marker {
  display: none;
}

.bl-faq-summary::after {
  content: "+";
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.bl-faq-item[open] .bl-faq-summary::after {
  content: "−";
  transform: rotate(180deg);
}

.bl-faq-content {
  padding: 0 24px 22px;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.bl-faq-content p {
  margin: 0;
}

/* Location & Transport Section */
.bl-location-section {
  background: #eef3fc;
  border-top: 1px solid #cbd4dd;
  border-bottom: 1px solid #cbd4dd;
}

.bl-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.bl-transit-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.bl-transit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid #cbd4e4;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.bl-transit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 6px;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Contact & Booking Section */
.bl-contact {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 70px;
  align-items: start;
}

.bl-contact > div > p {
  max-width: 580px;
}

.bl-info {
  background: #ffffff;
  border-top: 8px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 38px;
  min-width: 0;
  box-shadow: 0 10px 30px rgba(22, 51, 83, 0.06);
  border-left: 1px solid #cbd4dd;
  border-right: 1px solid #cbd4dd;
  border-bottom: 1px solid #cbd4dd;
}

.bl-info h3 {
  font-size: 2rem;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
  color: var(--ink);
}

.bl-info > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.bl-info h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 24px 0 8px;
  color: var(--ink-muted);
}

.bl-info address {
  line-height: 1.8;
  font-size: 1rem;
}

.bl-hours-badge {
  display: inline-block;
  background: #f7e79e;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 10px;
  color: var(--ink);
}

/* Booking Form */
.bl-booking-card {
  background: #ffffff;
  border: 1px solid #cbd4dd;
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: 0 12px 36px rgba(22, 51, 83, 0.07);
}

.bl-booking-card h2,
.bl-booking-card h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 800;
}

.bl-booking-card p {
  margin: 0 0 24px;
  font-size: 0.96rem;
}

.bl-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.bl-form-full {
  grid-column: span 2;
}

.bl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bl-field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.bl-field label span {
  color: #c93b27;
}

.bl-input,
.bl-select,
.bl-textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fcfaf6;
  border: 1.5px solid #cbd4dd;
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bl-input:focus,
.bl-select:focus,
.bl-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(36, 90, 204, 0.15);
  background: #ffffff;
}

.bl-textarea {
  min-height: 110px;
  resize: vertical;
}

.bl-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
}

.bl-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--accent);
}

.bl-checkbox-row label {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-muted);
  cursor: pointer;
}

.bl-checkbox-row label a {
  color: var(--accent);
  text-decoration: underline;
}

.bl-form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  display: none;
}

.bl-form-status.is-success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.bl-form-status.is-error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Footer Improvements */
.bl-footer-meta {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 14px;
  line-height: 1.6;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .bl-title-row,
  .bl-process,
  .bl-contact,
  .bl-location-grid {
    gap: 40px;
  }
  .bl-workbench img {
    height: 380px;
  }
  .bl-visit-grid {
    gap: 20px;
  }
}

@media (max-width: 820px) {
  .bl-section {
    padding: 60px 20px;
  }
  .bl-hero {
    padding: 35px 20px 50px;
  }
  .bl-title-row,
  .bl-programmes-grid,
  .bl-process,
  .bl-visit-grid,
  .bl-contact,
  .bl-location-grid,
  .bl-form-grid {
    grid-template-columns: 1fr;
  }
  .bl-form-full {
    grid-column: span 1;
  }
  .bl-title-row {
    gap: 0;
  }
  .bl-title-row h1 {
    font-size: clamp(2.8rem, 11vw, 4.4rem);
    margin-bottom: 16px;
  }
  .bl-workbench {
    padding: 14px 14px 0;
  }
  .bl-workbench img {
    height: 280px;
  }
  .bl-picture-tag {
    right: 20px;
    top: 20px;
    width: 85px;
    height: 85px;
    font-size: 0.9rem;
  }
  .bl-programme {
    padding: 26px;
  }
  .bl-booking-card {
    padding: 26px;
  }
  .bl-info {
    padding: 26px;
  }
}

/* Teaser / Overview Grid on Home */
.bl-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-top: 36px;
}

.bl-overview-card {
  background: #ffffff;
  border: 1.5px solid #cbd4dd;
  border-radius: var(--radius-sm);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 4px 12px rgba(22, 51, 83, 0.03);
}

.bl-overview-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(36, 90, 204, 0.1);
}

.bl-overview-card h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 10px 0 8px;
  color: var(--ink);
}

.bl-overview-card p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.bl-overview-link {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Page Next/Prev Pagination Switcher */
.bl-tab-pagination {
  max-width: 1440px;
  margin: 50px auto 0;
  padding: 24px max(5vw, 20px) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid #cbd4dd;
}

.bl-page-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1.5px solid #cbd4dd;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.15s ease;
}

.bl-page-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f0f4fa;
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--yellow);
}

.bl-page-nav-btn.btn-next {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  margin-left: auto;
}

.bl-page-nav-btn.btn-next:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

/* Demo Banner & Status */
.bl-demo-banner {
  background: #fdf6e7;
  border: 1px solid #f2cf85;
  border-radius: var(--radius-sm, 8px);
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bl-demo-banner p {
  margin: 0 !important;
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
  color: #5c3e06 !important;
}

.bl-demo-tag {
  display: inline-block;
  background: #b57a07;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
}

.bl-form-status.is-demo {
  display: block;
  background: #eef3fc;
  border-left: 4px solid var(--accent, #245acc);
  color: #163353;
  padding: 16px 20px;
  border-radius: 4px;
  margin-top: 20px;
}

.bl-form-status.is-demo strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--accent, #245acc);
}

.bl-form-status.is-demo p {
  margin: 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  color: #334e68 !important;
}

@media (max-width: 480px) {
  .bl-tab-pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .bl-page-nav-btn {
    width: 100%;
    justify-content: center;
    margin-left: 0 !important;
  }
}
