/* Obras Privadas — Hub 3D (planos centrales + paneles con requisitos completos) */
.obras3d-section {
  width: 100%;
  max-width: 1240px;
  margin: 48px auto 56px;
  padding: 0 20px;
  box-sizing: border-box;
  font-family: 'Maven Pro', 'Poppins', sans-serif;
  overflow: visible;
}

.obras3d-header {
  text-align: center;
  margin-bottom: 32px;
}

.obras3d-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1f6fe0;
  background: #eaf2ff;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.obras3d-header__title {
  font-family: 'Montserrat', 'Maven Pro', sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px;
  text-shadow: none;
}

.obras3d-header__sub {
  font-size: 0.94rem;
  color: #111827;
  margin: 0 auto;
  max-width: 700px;
  line-height: 1.65;
  text-shadow: none;
}

.obras3d-scene {
  position: relative;
  width: 100%;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: none;
  margin-bottom: 20px;
  overflow: visible;
}

.obras3d-svg-lines {
  display: none;
}

/* ── Centro: rollo de planos 3D ── */
.obras3d-core-wrap {
  position: relative;
  z-index: 5;
  transform-style: preserve-3d;
  animation: obras3dCoreFloat 5.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes obras3dCoreFloat {
  0%, 100% { transform: rotateX(8deg) rotateY(-6deg) translateY(0); }
  50% { transform: rotateX(4deg) rotateY(6deg) translateY(-10px); }
}

.obras3d-core {
  width: 200px;
  height: 260px;
  position: relative;
  transform-style: preserve-3d;
}

.obras3d-core__roll {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 88px;
  height: 140px;
  margin-left: -44px;
  border-radius: 12px;
  background: repeating-linear-gradient(
    0deg,
    #f8fafc 0px,
    #f8fafc 8px,
    #dbeafe 8px,
    #dbeafe 9px
  );
  box-shadow:
    inset 0 0 0 2px rgba(31, 111, 224, 0.2),
    0 16px 40px rgba(11, 42, 92, 0.2);
  transform: translateZ(28px);
}

.obras3d-core__roll::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -6px;
  right: -6px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #94a3b8, #64748b);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.obras3d-core__roll::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: -6px;
  right: -6px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #64748b, #475569);
}

.obras3d-core__sheet {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 120px;
  height: 100px;
  margin-left: -60px;
  background: #fff;
  border: 1px solid rgba(31, 111, 224, 0.25);
  border-radius: 2px 2px 0 0;
  transform: translateZ(36px) rotateX(-8deg);
  box-shadow: 0 8px 24px rgba(11, 42, 92, 0.15);
  background-image:
    linear-gradient(rgba(31, 111, 224, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 111, 224, 0.08) 1px, transparent 1px);
  background-size: 12px 12px;
}

.obras3d-core__base {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 190px;
  margin-left: -95px;
  padding: 18px 14px;
  border-radius: 18px;
  background: linear-gradient(155deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 18px 42px rgba(194, 65, 12, 0.35);
  text-align: center;
  transform: translateZ(20px);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.obras3d-core__base::before {
  content: '';
  position: absolute;
  inset: 10px 12px auto;
  height: 64px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.obras3d-core__helmet-img {
  width: 120px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: -6px auto 8px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(11, 42, 92, 0.34));
  animation: obras3dHelmetPulse 3.2s ease-in-out infinite;
}

.obras3d-core__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.obras3d-core__step {
  margin-top: 6px;
  font-size: 0.72rem;
  color: rgba(255, 237, 213, 0.95);
  letter-spacing: 0.06em;
}

@keyframes obras3dHelmetPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.03);
  }
}

/* ── Paneles laterales (info completa) ── */
.obras3d-panels {
  position: relative;
  width: 100%;
  display: block;
  pointer-events: all;
  z-index: 4;
}

.obras3d-col {
  width: min(1120px, 96%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: all;
  justify-content: flex-start;
  margin: 0 auto;
}

.obras3d-col--left { align-items: flex-start; }
.obras3d-col--right { align-items: flex-end; }

.obras3d-panel {
  width: 100%;
  max-width: none;
  max-height: none;
  background: #fff;
  border: 1px solid rgba(31, 111, 224, 0.14);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(11, 42, 92, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.obras3d-panel__head {
  flex-shrink: 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0b2a5c 0%, #1f6fe0 100%);
  color: #fff;
}

.obras3d-panel__head i {
  margin-right: 6px;
  color: #93c5fd;
}

.obras3d-panel__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.obras3d-panel__body {
  padding: 14px 16px 16px;
  overflow: visible;
  flex: 1;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #334155;
}

.obras3d-panel__body strong {
  color: #0b2a5c;
}

.obras3d-panel__req-label {
  font-weight: 700;
  color: #1f6fe0;
  margin: 0 0 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.obras3d-panel__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.obras3d-panel__list li {
  position: relative;
  padding: 6px 0 6px 18px;
  border-bottom: 1px solid rgba(200, 214, 232, 0.5);
}

.obras3d-panel__list li:last-child {
  border-bottom: none;
}

.obras3d-panel__list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #ea580c;
  font-weight: bold;
}

.obras3d-panel--alert .obras3d-panel__head {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
}

.obras3d-panel--contact .obras3d-panel__head {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.obras3d-panel__contact p {
  margin: 0 0 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.obras3d-panel__contact i {
  color: #ea580c;
  margin-top: 3px;
  width: 16px;
  flex-shrink: 0;
}

.obras3d-panel__contact a {
  color: #1f6fe0;
  font-weight: 600;
  text-decoration: none;
}

.obras3d-panel__contact a:hover {
  text-decoration: underline;
}

/* Navegación */
.obras3d-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 4px 0 10px;
}

.obras3d-nav__btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #c7dfff;
  background: #fff;
  color: #0b2a5c;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.obras3d-nav__btn:hover {
  background: #1f6fe0;
  border-color: #1f6fe0;
  color: #fff;
}

.obras3d-nav__dots {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 280px;
}

.obras3d-nav__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c7dfff;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.obras3d-nav__dot.active {
  background: #1f6fe0;
  width: 22px;
  border-radius: 4px;
}

.obras3d-nav__counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: #5a6578;
  min-width: 56px;
  text-align: center;
}

.obras3d-nav__hint {
  text-align: center;
  font-size: 0.84rem;
  color: #6a7386;
  margin: 0;
}

/* Contacto fijo debajo del carrusel 3D */
.obras3d-contact-box {
  margin: 18px auto 0;
  max-width: 780px;
  background: #fff;
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(11, 42, 92, 0.1);
  overflow: hidden;
}

.obras3d-contact-box__head {
  margin: 0;
  padding: 14px 18px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.obras3d-contact-box__body {
  padding: 14px 18px 16px;
}

.obras3d-contact-box__body p {
  margin: 0 0 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #334155;
  font-size: 0.92rem;
}

.obras3d-contact-box__body p:last-child {
  margin-bottom: 0;
}

.obras3d-contact-box__body i {
  color: #ea580c;
  margin-top: 3px;
  width: 16px;
  flex-shrink: 0;
}

.obras3d-contact-box__body a {
  color: #1f6fe0;
  text-decoration: none;
  font-weight: 600;
}

.obras3d-contact-box__body a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .obras3d-col {
    width: min(280px, 42vw);
  }
  .obras3d-panel__title {
    font-size: 0.8rem;
  }
}

@media (max-width: 820px) {
  .obras3d-scene {
    min-height: auto;
    flex-direction: row;
    padding-bottom: 16px;
  }

  .obras3d-panels {
    position: relative;
    flex-direction: column;
    inset: auto;
    pointer-events: all;
  }

  .obras3d-col {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    align-items: stretch !important;
  }

  .obras3d-panel {
    max-width: none;
    max-height: none;
  }

  .obras3d-svg-lines {
    display: none;
  }
}
