/* ==========================================================================
   Theme 3D — Luilli Web
   Solo se aplica en páginas con <body class="theme-3d"> (home y contacto).

   Capas (de atrás hacia delante):
     body (fondo #0B1021) → glow fijo (z -3) → videos de cabecera (z -2/-1)
     → canvas Three.js fijo (#scene-3d, z 0) → secciones translúcidas y UI.
   ========================================================================== */

:root {
   --t3d-bg-0: #0b1021;
   --t3d-bg-1: #0f172a;
   --t3d-gold: #f5b301;
   --t3d-gold-soft: #ffd36b;
   --t3d-text: #f1f5f9;
   --t3d-muted: #a5b1c6;
   --t3d-line: rgba(245, 179, 1, 0.16);
   --t3d-line-soft: rgba(255, 255, 255, 0.08);
   --t3d-glass: rgba(15, 23, 42, 0.62);
   --t3d-glass-strong: rgba(15, 23, 42, 0.86);
   /* Fondos de sección con bordes transparentes: la frontera queda "abierta" al espacio
      para que el portal de transición se vea limpio */
   --t3d-section: linear-gradient(180deg, rgba(11, 16, 33, 0) 0, rgba(11, 16, 33, 0.62) 150px, rgba(11, 16, 33, 0.62) calc(100% - 150px), rgba(11, 16, 33, 0) 100%);
   --t3d-section-alt: linear-gradient(180deg, rgba(15, 23, 42, 0) 0, rgba(15, 23, 42, 0.7) 150px, rgba(15, 23, 42, 0.7) calc(100% - 150px), rgba(15, 23, 42, 0) 100%);
   --t3d-radius: 18px;
   --t3d-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
   --t3d-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--t3d-line-soft), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   1. Lienzo global
   -------------------------------------------------------------------------- */
body.theme-3d {
   background-color: var(--t3d-bg-0);
   color: var(--t3d-muted);
}

/* Resplandor de ambiente fijo (debajo de todo, compuesto en GPU) */
body.theme-3d::before {
   content: "";
   position: fixed;
   inset: 0;
   z-index: -3;
   pointer-events: none;
   background:
      radial-gradient(ellipse 60% 50% at 80% 10%, rgba(37, 27, 96, 0.45), transparent 70%),
      radial-gradient(ellipse 50% 40% at 10% 90%, rgba(245, 179, 1, 0.06), transparent 70%);
}

.scene-3d {
   position: fixed;
   inset: 0;
   z-index: 0;
   pointer-events: none;
   opacity: 0;
   transition: opacity 1.2s ease;
}

.scene-3d.is-ready {
   opacity: 1;
}

.scene-3d canvas {
   display: block;
   width: 100% !important;
   height: 100% !important;
   pointer-events: none;
}

/* Todo bloque de página debe pintarse por encima del canvas fijo */
.theme-3d .section,
.theme-3d .call-action,
.theme-3d .footer {
   position: relative;
}

/* --------------------------------------------------------------------------
   2. Cabeceras con video (Hero y breadcrumbs): el video pasa detrás del canvas
      para que el núcleo 3D y las partículas queden entre el video y el texto.
   -------------------------------------------------------------------------- */
.theme-3d .hero-area,
.theme-3d .breadcrumbs {
   background-color: transparent;
   background-image: none;
   z-index: auto;
}

.theme-3d .hero-area-video .hero-bg-video,
.theme-3d .breadcrumbs-video .hero-bg-video {
   z-index: -2;
}

.theme-3d .hero-area-video::before,
.theme-3d .breadcrumbs-video::before {
   z-index: -1;
   background:
      radial-gradient(ellipse 45% 60% at 76% 48%, rgba(76, 58, 180, 0.45), transparent 70%),
      radial-gradient(ellipse 40% 50% at 15% 85%, rgba(245, 179, 1, 0.08), transparent 70%),
      linear-gradient(120deg, rgba(6, 12, 34, 0.55), rgba(37, 27, 96, 0.35));
}

/* Fundido inferior hacia el espacio 3D */
.theme-3d .hero-area-video::after,
.theme-3d .breadcrumbs-video::after {
   content: "";
   position: absolute;
   left: 0;
   right: 0;
   bottom: 0;
   height: 180px;
   z-index: -1;
   pointer-events: none;
   background: linear-gradient(180deg, transparent, var(--t3d-bg-0));
}

/* --------------------------------------------------------------------------
   3. Secciones translúcidas (sin backdrop-filter a pantalla completa:
      desenfocar un canvas animado en toda la sección cuesta FPS)
   -------------------------------------------------------------------------- */
.theme-3d .portfolio-section:not(.presentacion-section),
.theme-3d .faq,
.theme-3d .contact-us.section {
   background: var(--t3d-section) !important;
}

.theme-3d .premium-services-section,
.theme-3d .blog-section {
   background: var(--t3d-section-alt) !important;
}

/* Presentación: casi abierta al espacio para que el robot brille; velo solo tras el texto */
.theme-3d .presentacion-section {
   background: radial-gradient(ellipse 55% 70% at 75% 50%, rgba(11, 16, 33, 0.7), transparent 75%) !important;
}

@media (max-width: 991.98px) {
   .theme-3d .presentacion-section {
      background: var(--t3d-section) !important;
   }
}

/* Títulos de sección */
.theme-3d .section-title h2,
.theme-3d .premium-services-main-title,
.theme-3d .blog-section .section-title h2 {
   color: #fff;
}

.theme-3d .section-title p,
.theme-3d .premium-services-description,
.theme-3d .blog-section-description {
   color: var(--t3d-muted);
}

.theme-3d .section-title h3 {
   color: var(--t3d-gold) !important;
}

/* --------------------------------------------------------------------------
   4. Glass oscuro reutilizable
   -------------------------------------------------------------------------- */
.theme-3d .premium-service-card,
.theme-3d .portfolio-section .portfolio-item-wrapper,
.theme-3d .blog-section .single-blog-grid,
.theme-3d .faq .accordion-item,
.theme-3d .contact-info-section,
.theme-3d .contact-form-section,
.theme-3d .presentacion-highlight {
   background: linear-gradient(160deg, rgba(30, 41, 59, 0.72) 0%, rgba(15, 23, 42, 0.86) 100%) !important;
   border: 1px solid var(--t3d-line-soft) !important;
   border-radius: var(--t3d-radius);
   box-shadow: var(--t3d-shadow);
}

/* Blur solo en contenedores medianos y estáticos (no en tarjetas con tilt:
   backdrop-filter aplana preserve-3d) */
@media (min-width: 768px) {
   .theme-3d .faq .accordion-item,
   .theme-3d .contact-info-section,
   .theme-3d .contact-form-section,
   .theme-3d .presentacion-highlight,
   .theme-3d .call-action .inner-content {
      -webkit-backdrop-filter: blur(14px) saturate(1.2);
      backdrop-filter: blur(14px) saturate(1.2);
   }
}

/* --------------------------------------------------------------------------
   5. Presentación
   -------------------------------------------------------------------------- */
.theme-3d .presentacion-title {
   color: #fff;
}

.theme-3d .presentacion-paragraph {
   color: var(--t3d-muted);
}

.theme-3d .presentacion-highlight {
   border-left: 4px solid var(--t3d-gold) !important;
}

.theme-3d .presentacion-highlight-text {
   color: var(--t3d-text);
}

.theme-3d .presentacion-highlight-bold {
   color: var(--t3d-gold);
}

.theme-3d .presentacion-image {
   border-radius: var(--t3d-radius);
   box-shadow: var(--t3d-shadow), 0 0 60px -20px rgba(245, 179, 1, 0.35);
   transition: opacity 0.8s ease;
}

/* Con el robot 3D activo la ilustración queda como respaldo invisible (mantiene el espacio y el alt) */
.theme-3d .presentacion-image-wrapper.has-bot {
   cursor: pointer;
   min-height: 380px;
   -webkit-tap-highlight-color: transparent;
}

.theme-3d .presentacion-image-wrapper.has-bot .presentacion-image {
   opacity: 0;
}

/* --------------------------------------------------------------------------
   6. Servicios / tecnologías
   -------------------------------------------------------------------------- */
.theme-3d .premium-services-section .premium-service-title {
   color: #fff;
}

.theme-3d .premium-services-section .premium-service-text {
   color: var(--t3d-muted);
}

.theme-3d .premium-service-icon {
   background: radial-gradient(circle at 30% 30%, rgba(245, 179, 1, 0.22), rgba(245, 179, 1, 0.05)) !important;
   box-shadow: 0 0 0 1px rgba(245, 179, 1, 0.35), 0 12px 30px -10px rgba(245, 179, 1, 0.45);
}

.theme-3d .premium-service-icon i {
   color: var(--t3d-gold) !important;
}

/* Borde luminoso que recorre la tarjeta en hover */
.theme-3d .premium-service-card::after {
   content: "";
   position: absolute;
   inset: -1px;
   border-radius: inherit;
   padding: 1px;
   background: linear-gradient(135deg, rgba(245, 179, 1, 0.9), transparent 35%, transparent 65%, rgba(245, 179, 1, 0.6));
   -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
   -webkit-mask-composite: xor;
   mask-composite: exclude;
   opacity: 0;
   transition: opacity 0.4s ease;
   pointer-events: none;
}

.theme-3d .premium-service-card:hover::after {
   opacity: 1;
}

/* Líneas conectoras entre tarjetas (escritorio) */
@media (min-width: 992px) {
   .theme-3d .premium-services-section .row:last-child {
      position: relative;
   }

   .theme-3d .premium-services-section .row:last-child::before {
      content: "";
      position: absolute;
      left: 8%;
      right: 8%;
      top: 50%;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(245, 179, 1, 0.35), transparent);
      pointer-events: none;
   }
}

/* --------------------------------------------------------------------------
   7. Portafolio
   -------------------------------------------------------------------------- */
.theme-3d .portfolio-section .portfolio-overlay .overlay-content span {
   color: var(--t3d-gold);
}

.theme-3d .portfolio-section .portfolio-overlay .overlay-content h4 a {
   color: #fff;
}

/* Pie flotante sobre la imagen: cristal oscuro con canto dorado */
.theme-3d .portfolio-section .portfolio-overlay {
   background: rgba(11, 16, 33, 0.9);
   border: 1px solid var(--t3d-line-soft);
   border-left: 3px solid var(--t3d-gold);
   border-radius: 12px;
   box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.8);
}

.theme-3d .portfolio-btn-wrapper .portfolio-btn {
   color: var(--t3d-muted);
   background: rgba(255, 255, 255, 0.04);
   border: 1px solid var(--t3d-line-soft);
   border-radius: 999px;
   margin: 0 4px 10px;
   padding: 8px 18px;
}

.theme-3d .portfolio-btn-wrapper .portfolio-btn:hover,
.theme-3d .portfolio-btn-wrapper .portfolio-btn.active {
   color: #111;
   background: var(--t3d-gold);
   border-color: var(--t3d-gold);
}

/* --------------------------------------------------------------------------
   8. Blog
   -------------------------------------------------------------------------- */
.theme-3d .blog-section .blog-content h4 a {
   color: #fff;
}

.theme-3d .blog-section .blog-content p,
.theme-3d .blog-section .blog-content .meta-info a {
   color: var(--t3d-muted);
}

/* --------------------------------------------------------------------------
   9. FAQ y llamada a la acción
   -------------------------------------------------------------------------- */
.theme-3d .faq .accordion-item .accordion-button {
   background-color: transparent;
   color: var(--t3d-text);
}

.theme-3d .faq .accordion-item .accordion-button:not(.collapsed) {
   background-color: var(--t3d-gold);
   color: #111;
}

.theme-3d .faq .accordion-body,
.theme-3d .faq .accordion-body p {
   color: var(--t3d-muted);
}

.theme-3d .call-action {
   background: transparent !important;
}

.theme-3d .call-action .inner-content {
   margin: 60px 0;
   padding: 60px 48px;
   border-radius: 24px;
   background: linear-gradient(135deg, rgba(245, 179, 1, 0.16), rgba(15, 23, 42, 0.82) 55%);
   border: 1px solid rgba(245, 179, 1, 0.35);
   box-shadow: 0 40px 80px -30px rgba(245, 179, 1, 0.35), var(--t3d-shadow);
}

.theme-3d .call-action .wptitulo {
   color: #fff !important;
}

/* Enlace de texto bajo el título: alineado con el título (antes iba centrado en su caja) */
.theme-3d .call-action .wptitulo .btn-alt {
   display: inline-block;
   margin-top: 14px;
   padding: 0;
   text-align: left;
   background: transparent !important;
   box-shadow: none;
}

.theme-3d .call-action .wptitulo .btn-alt .textowp {
   color: var(--t3d-gold) !important;
   line-height: 1.3;
}

@media (max-width: 767.98px) {
   .theme-3d .call-action .text,
   .theme-3d .call-action .wptitulo,
   .theme-3d .call-action .wptitulo .btn-alt {
      text-align: center;
   }
}

@media (max-width: 767.98px) {
   .theme-3d .call-action .inner-content {
      padding: 40px 22px;
      margin: 40px 0;
   }
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.theme-3d .footer {
   background: linear-gradient(180deg, rgba(8, 12, 28, 0) 0, rgba(8, 12, 28, 0.88) 160px, rgba(8, 12, 28, 0.96));
}

.theme-3d .footer .copyright-area {
   border-top: 1px solid var(--t3d-line-soft);
}

/* --------------------------------------------------------------------------
   11. Contacto (inputs planos: sin transform, solo color y foco visible)
   -------------------------------------------------------------------------- */
.theme-3d .contact-info-section .form-title,
.theme-3d .contact-form-section .form-title,
.theme-3d .contact-value {
   color: #fff;
}

.theme-3d .contact-info-section .contact-intro,
.theme-3d .contact-label {
   color: var(--t3d-muted);
}

.theme-3d .contact-us .contact-form-section .form-group input,
.theme-3d .contact-us .contact-form-section .form-group textarea,
.theme-3d .contact-us .contact-form-section .form-group .phone-code-select {
   color: var(--t3d-text);
   background-color: rgba(255, 255, 255, 0.04);
   border: 1px solid rgba(255, 255, 255, 0.12);
   border-radius: 10px;
   transform: none;
}

.theme-3d .contact-us .contact-form-section .form-group .phone-code-select {
   background-color: rgba(255, 255, 255, 0.04);
   color-scheme: dark;
}

/* Icono dentro del campo (el de teléfono queda fuera, como antes) */
.theme-3d .contact-us .contact-form-section .form-group-icon:not(.form-group-phone) input,
.theme-3d .contact-us .contact-form-section .form-group-icon:not(.form-group-phone) textarea {
   padding-left: 2.6rem;
}

.theme-3d .contact-us .contact-form-section .form-group-icon:not(.form-group-phone) .form-icon {
   left: 0.9rem;
}

.theme-3d .contact-form-section input::placeholder,
.theme-3d .contact-form-section textarea::placeholder {
   color: #7c8aa3;
}

.theme-3d .contact-form-section .phone-code-select option {
   color: #111;
   background: #fff;
}

.theme-3d .contact-us .contact-form-section .form-group input:focus,
.theme-3d .contact-us .contact-form-section .form-group textarea:focus,
.theme-3d .contact-us .contact-form-section .form-group select:focus {
   outline: none;
   border-color: var(--t3d-gold);
   box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.18);
}

/* Profundidad sutil en el contenedor (no en los campos) */
.theme-3d .contact-info-section,
.theme-3d .contact-form-section {
   transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.theme-3d .contact-form-section:focus-within {
   border-color: rgba(245, 179, 1, 0.35) !important;
   box-shadow: var(--t3d-shadow), 0 40px 80px -40px rgba(245, 179, 1, 0.35);
}

/* --------------------------------------------------------------------------
   12. Botones principales: micro-elevación 3D
   -------------------------------------------------------------------------- */
.theme-3d .button .btn,
.theme-3d .btn-todo-portafolio,
.theme-3d .newsletter-form .sub-btn {
   transition: transform 0.25s var(--t3d-ease-out), box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

@media (hover: hover) {
   .theme-3d .button .btn:hover,
   .theme-3d .btn-todo-portafolio:hover {
      transform: translate3d(0, -3px, 0);
      box-shadow: 0 14px 28px -10px rgba(245, 179, 1, 0.6), 0 3px 0 rgba(0, 0, 0, 0.25);
   }
}

.theme-3d .button .btn:active,
.theme-3d .btn-todo-portafolio:active {
   transform: translate3d(0, 0, 0);
   box-shadow: 0 6px 14px -8px rgba(245, 179, 1, 0.6);
}

.theme-3d .button .btn:focus-visible,
.theme-3d .btn-todo-portafolio:focus-visible,
.theme-3d .portfolio-btn:focus-visible {
   outline: 2px solid var(--t3d-gold) !important;
   outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   13. Scroll Reveal 3D
   a) Bloques nuevos (.r3d, añadidos por experience-3d.js)
   b) Clases .scroll-reveal-* ya existentes en la home: mismo JS, entrada en 3D
   -------------------------------------------------------------------------- */
.theme-3d .r3d {
   opacity: 0;
   transform: perspective(1200px) translate3d(0, 60px, -120px) rotateX(14deg);
   transform-origin: 50% 100%;
   transition: opacity 0.9s ease, transform 1.1s var(--t3d-ease-out);
}

.theme-3d .r3d.r3d-in {
   opacity: 1;
   transform: none;
}

/* Ya estabilizado: sin transform residual (texto nítido) */
.theme-3d .r3d.r3d-done {
   transition: none;
}

.theme-3d .scroll-reveal-fade-up {
   transform: perspective(1200px) translate3d(0, 60px, -100px) rotateX(14deg);
   transform-origin: 50% 100%;
}

.theme-3d .scroll-reveal-fade-left {
   transform: perspective(1200px) translate3d(-60px, 0, -100px) rotateY(12deg);
}

.theme-3d .scroll-reveal-fade-right {
   transform: perspective(1200px) translate3d(60px, 0, -100px) rotateY(-12deg);
}

.theme-3d .scroll-reveal-scale {
   transform: perspective(1200px) translate3d(0, 40px, -180px) rotateX(10deg);
}

.theme-3d .scroll-reveal-fade-up,
.theme-3d .scroll-reveal-fade-left,
.theme-3d .scroll-reveal-fade-right,
.theme-3d .scroll-reveal-scale {
   transition: opacity 0.9s ease-out, transform 1.1s var(--t3d-ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
}

.theme-3d .scroll-reveal-fade-up.revealed,
.theme-3d .scroll-reveal-fade-left.revealed,
.theme-3d .scroll-reveal-fade-right.revealed,
.theme-3d .scroll-reveal-scale.revealed {
   transform: none;
}

@media (prefers-reduced-motion: reduce) {
   .theme-3d .r3d,
   .theme-3d .scroll-reveal-fade-up,
   .theme-3d .scroll-reveal-fade-left,
   .theme-3d .scroll-reveal-fade-right,
   .theme-3d .scroll-reveal-scale {
      transform: none !important;
      transition: opacity 0.6s ease !important;
   }
}

/* --------------------------------------------------------------------------
   14. Tilt 3D en tarjetas
   html.tilt-enabled lo pone experience-3d.js solo con puntero fino y >= 768px.
   -------------------------------------------------------------------------- */
.theme-3d .tilt-card {
   position: relative;
}

.theme-3d .tilt-glare {
   position: absolute;
   inset: 0;
   border-radius: inherit;
   pointer-events: none;
   opacity: var(--glow, 0);
   background:
      radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(245, 179, 1, 0.32), rgba(245, 179, 1, 0.08) 30%, transparent 60%),
      linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.06) 45%, transparent 60%);
   mix-blend-mode: screen;
   z-index: 3;
}

html.tilt-enabled .theme-3d .tilt-card {
   transform-style: preserve-3d;
   overflow: visible !important;
}

/* Reposo e interacción comparten la misma función de transform (sin saltos).
   Las tarjetas de servicios esperan a su reveal antes de tomarla. */
html.tilt-enabled .theme-3d .tilt-card:not(.scroll-reveal-scale),
html.tilt-enabled .theme-3d .tilt-card.revealed {
   transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(calc(var(--glow, 0) * 22px));
}

/* Mientras el JS interpola, nada de transiciones CSS en transform */
html.tilt-enabled .theme-3d .tilt-card.is-tilting {
   transition: box-shadow 0.35s ease, border-color 0.35s ease !important;
   transition-delay: 0s !important;
   will-change: transform;
   border-color: rgba(245, 179, 1, 0.45) !important;
   box-shadow: 0 50px 80px -30px rgba(0, 0, 0, 0.85), 0 30px 60px -30px rgba(245, 179, 1, 0.35), 0 0 0 1px rgba(245, 179, 1, 0.25);
}

html.tilt-enabled .theme-3d .tilt-3d {
   transform-style: preserve-3d;
}

html.tilt-enabled .theme-3d .tilt-layer {
   transform: translateZ(var(--tz, 0px));
}

html.tilt-enabled .theme-3d .tilt-glare {
   transform: translateZ(60px);
}

/* Las imágenes recortan sus propias esquinas (la tarjeta ya no usa overflow) */
html.tilt-enabled .theme-3d .portfolio-section .portfolio-img,
html.tilt-enabled .theme-3d .blog-section .blog-img {
   overflow: hidden;
   border-radius: var(--t3d-radius) var(--t3d-radius) 0 0;
}

/* Táctil / < 768px: sin tilt continuo, solo un "press" sutil */
.theme-3d .tilt-card.is-pressed {
   transform: perspective(1000px) rotateX(3deg) scale(0.985);
   transition: transform 0.25s var(--t3d-ease-out);
}

/* --------------------------------------------------------------------------
   15. Móvil: más opacidad en lugar de blur, menos sombra
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
   :root {
      --t3d-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--t3d-line-soft);
   }

   .theme-3d .premium-service-card,
   .theme-3d .portfolio-section .portfolio-item-wrapper,
   .theme-3d .blog-section .single-blog-grid,
   .theme-3d .faq .accordion-item,
   .theme-3d .contact-info-section,
   .theme-3d .contact-form-section {
      background: var(--t3d-glass-strong) !important;
   }
}

/* --------------------------------------------------------------------------
   16. Botón 3D de WhatsApp (llamada a la acción)
   Variables escritas por experience-3d.js:
     --wa-rx / --wa-ry  inclinación (mouse, toque, scroll, giroscopio)
     --wa-tz            profundidad de entrada por scroll
     --wa-mx / --wa-my  atracción magnética hacia el cursor
     --wa-depth         altura de la tecla (baja al presionar, rebota al soltar)
     --wa-glow          intensidad de brillo (hover / toque)
     --wa-gx / --wa-gy  posición del reflejo
   -------------------------------------------------------------------------- */
.theme-3d .wa3d-stage {
   perspective: 900px;
   perspective-origin: 50% 40%;
   display: flex;
   justify-content: flex-end;
   align-items: center;
   padding: 28px 10px 36px;
}

.theme-3d .wa3d {
   --wa-depth: 22px;
   position: relative;
   display: inline-block;
   transform-style: preserve-3d;
   transform:
      translate3d(var(--wa-mx, 0px), var(--wa-my, 0px), var(--wa-tz, 0px))
      rotateX(var(--wa-rx, 0deg))
      rotateY(var(--wa-ry, 0deg));
   text-decoration: none;
   cursor: pointer;
   outline: none;
   -webkit-tap-highlight-color: transparent;
   touch-action: manipulation;
   user-select: none;
   will-change: transform;
}

.theme-3d .wa3d-body {
   position: relative;
   display: block;
   transform-style: preserve-3d;
}

/* Capas de extrusión (generadas por JS): dan el canto sólido de la tecla */
.theme-3d .wa3d-layer {
   position: absolute;
   inset: 0;
   border-radius: 999px;
   background: linear-gradient(180deg, #16a34a, #0b5d2c);
   transform: translateZ(calc(var(--wa-depth) * var(--k)));
   pointer-events: none;
}

.theme-3d .wa3d-layer.is-base {
   background: #073d1d;
   box-shadow: 0 0 0 1px rgba(245, 179, 1, 0.35), 0 0 30px rgba(245, 179, 1, calc(0.15 + var(--wa-glow, 0) * 0.35));
}

.theme-3d .wa3d-face {
   position: relative;
   display: flex;
   align-items: center;
   gap: 14px;
   padding: 12px 18px 12px 12px;
   border-radius: 999px;
   color: #fff;
   background: linear-gradient(135deg, #4ade80 0%, #22c55e 45%, #15803d 100%);
   box-shadow:
      inset 0 2px 0 rgba(255, 255, 255, 0.45),
      inset 0 -4px 10px rgba(0, 0, 0, 0.22),
      0 0 0 1px rgba(255, 255, 255, 0.12);
   transform: translateZ(var(--wa-depth));
   transform-style: preserve-3d;
}

/* Reflejo que sigue al cursor / dedo */
.theme-3d .wa3d-face::before {
   content: "";
   position: absolute;
   inset: 0;
   border-radius: inherit;
   pointer-events: none;
   background: radial-gradient(circle at var(--wa-gx, 30%) var(--wa-gy, 20%), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 45%);
   opacity: calc(0.35 + var(--wa-glow, 0) * 0.65);
   mix-blend-mode: soft-light;
}

.theme-3d .wa3d-icon {
   display: grid;
   place-items: center;
   width: 56px;
   height: 56px;
   flex: 0 0 56px;
   border-radius: 50%;
   background: #fff;
   box-shadow: 0 10px 20px -6px rgba(0, 0, 0, 0.45), inset 0 -3px 6px rgba(0, 0, 0, 0.12);
   transform: translateZ(16px);
}

.theme-3d .wa3d-icon img {
   width: 36px;
   height: 36px;
}

.theme-3d .wa3d-text {
   display: flex;
   flex-direction: column;
   line-height: 1.15;
   transform: translateZ(10px);
}

.theme-3d .wa3d-kicker {
   font-size: 11px;
   font-weight: 600;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   color: rgba(255, 255, 255, 0.85);
}

.theme-3d .wa3d-label {
   font-size: 18px;
   font-weight: 700;
   color: #fff;
   text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
   white-space: nowrap;
}

.theme-3d .wa3d-arrow {
   display: grid;
   place-items: center;
   width: 36px;
   height: 36px;
   margin-left: 4px;
   border-radius: 50%;
   font-size: 18px;
   color: #fff;
   background: rgba(0, 0, 0, 0.18);
   transform: translateZ(12px) translate3d(calc(var(--wa-glow, 0) * 3px), calc(var(--wa-glow, 0) * -3px), 0);
}

/* Sombra en el "suelo": se encoge al presionar */
.theme-3d .wa3d-shadow {
   position: absolute;
   left: 10%;
   right: 10%;
   bottom: -26px;
   height: 34px;
   border-radius: 50%;
   background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6), transparent 70%);
   filter: blur(6px);
   transform: translateZ(-2px) scale(calc(0.7 + var(--wa-depth-k, 1) * 0.3));
   opacity: calc(0.5 + var(--wa-depth-k, 1) * 0.5);
   pointer-events: none;
}

/* Onda dorada que invita al clic */
.theme-3d .wa3d-ring {
   position: absolute;
   inset: -8px;
   border-radius: 999px;
   border: 2px solid rgba(245, 179, 1, 0.7);
   transform: translateZ(1px);
   pointer-events: none;
   animation: wa3d-pulse 2.4s var(--t3d-ease-out) infinite;
}

@keyframes wa3d-pulse {
   0% { opacity: 0.7; transform: translateZ(1px) scale(0.96); }
   70%, 100% { opacity: 0; transform: translateZ(1px) scale(1.18); }
}

/* Chispas al hacer clic (generadas por JS) */
.theme-3d .wa3d-spark {
   position: absolute;
   left: var(--sx);
   top: var(--sy);
   width: 8px;
   height: 8px;
   margin: -4px 0 0 -4px;
   border-radius: 50%;
   background: var(--t3d-gold);
   box-shadow: 0 0 10px var(--t3d-gold);
   pointer-events: none;
   transform: translateZ(40px);
   animation: wa3d-spark 0.7s var(--t3d-ease-out) forwards;
}

@keyframes wa3d-spark {
   to {
      opacity: 0;
      transform: translateZ(60px) translate(var(--dx), var(--dy)) scale(0.2);
   }
}

.theme-3d .wa3d:focus-visible .wa3d-face {
   outline: 3px solid var(--t3d-gold);
   outline-offset: 4px;
}

/* Móvil: el botón pasa debajo del texto, centrado y a todo el ancho útil */
@media (max-width: 767.98px) {
   .theme-3d .call-action .row > [class*="col-"] {
      flex: 0 0 100%;
      max-width: 100%;
   }

   .theme-3d .call-action .wpicon {
      margin-top: 8px;
   }

   .theme-3d .wa3d-stage {
      justify-content: center;
      padding: 20px 0 30px;
   }

   .theme-3d .wa3d {
      max-width: 100%;
   }

   .theme-3d .wa3d-face {
      gap: 10px;
      padding: 10px 14px 10px 10px;
   }

   .theme-3d .wa3d-label {
      font-size: 15px;
      white-space: normal;
   }

   .theme-3d .wa3d-icon {
      width: 46px;
      height: 46px;
      flex-basis: 46px;
   }

   .theme-3d .wa3d-icon img {
      width: 30px;
      height: 30px;
   }
}

@media (max-width: 399.98px) {
   .theme-3d .wa3d-arrow {
      display: none;
   }
}

@media (prefers-reduced-motion: reduce) {
   .theme-3d .wa3d-ring,
   .theme-3d .wa3d-spark {
      animation: none;
      display: none;
   }
}

/* --------------------------------------------------------------------------
   17. Tarjetas de portafolio (home y /portafolio)
   Imagen fija arriba, ficha de cristal flotando sobre su borde inferior y
   toda la tarjeta clicable (.is-linked lo pone experience-3d.js).
   -------------------------------------------------------------------------- */
.theme-3d .portfolio-item-wrapper.is-linked,
.theme-3d .single-blog-grid.is-linked {
   cursor: pointer;
}

.theme-3d .portfolio-section .portfolio-item-wrapper {
   display: flex;
   flex-direction: column;
   height: 100%;
}

.theme-3d .portfolio-section .portfolio-item-wrapper .portfolio-img {
   position: relative;
   height: 220px;
   flex-shrink: 0;
   overflow: hidden;
   border-radius: var(--t3d-radius) var(--t3d-radius) 0 0;
   /* Fondo de marca mientras carga o si la imagen no existe */
   background:
      radial-gradient(circle at 30% 30%, rgba(245, 179, 1, 0.22), transparent 55%),
      linear-gradient(135deg, #1e293b, #0b1021);
}

.theme-3d .portfolio-section .portfolio-item-wrapper .portfolio-img a,
.theme-3d .portfolio-section .portfolio-item-wrapper .portfolio-img img {
   display: block;
   width: 100%;
   height: 100%;
}

.theme-3d .portfolio-section .portfolio-item-wrapper .portfolio-img img {
   object-fit: cover;
}

/* Degradado inferior: integra la imagen con la ficha */
.theme-3d .portfolio-section .portfolio-item-wrapper .portfolio-img::after {
   content: "";
   position: absolute;
   inset: auto 0 0 0;
   height: 45%;
   background: linear-gradient(180deg, transparent, rgba(11, 16, 33, 0.85));
   pointer-events: none;
}

.theme-3d .portfolio-section .portfolio-item-wrapper .portfolio-overlay {
   position: relative;
   left: auto;
   bottom: auto;
   display: block;
   flex: 1;
   margin: -38px 14px 14px;
   padding: 16px 18px 18px;
   min-height: 140px; /* alturas parejas: Isotope apila por altura y quedaba escalonado */
   z-index: 2;
   text-align: left;
}

.theme-3d .portfolio-section .portfolio-overlay .overlay-content span {
   display: inline-block;
   font-size: 11px;
   font-weight: 600;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   color: var(--t3d-gold);
}

.theme-3d .portfolio-section .portfolio-overlay .overlay-content h4 {
   margin-top: 6px;
   font-size: 16px;
   line-height: 1.4;
}

.theme-3d .portfolio-section .portfolio-overlay .overlay-content h4 a:hover {
   color: var(--t3d-gold-soft) !important;
}

/* Imagen que no se pudo cargar: sin texto alternativo suelto, solo el fondo de marca */
.theme-3d .is-broken img {
   visibility: hidden;
}

.theme-3d .is-broken::before {
   content: "</>";
   position: absolute;
   inset: 0;
   display: grid;
   place-items: center;
   font: 700 42px/1 "Spartan", sans-serif;
   color: rgba(245, 179, 1, 0.35);
   z-index: 1;
}

.theme-3d .blog-img.is-broken,
.theme-3d .post-thumbnils.is-broken {
   position: relative;
   min-height: 200px;
   background: linear-gradient(135deg, #1e293b, #0b1021);
}

/* --------------------------------------------------------------------------
   18. Blog: tarjetas (home y /blog) y paginación
   -------------------------------------------------------------------------- */
.theme-3d .blog-grid-page .single-blog-grid {
   background: linear-gradient(160deg, rgba(30, 41, 59, 0.72) 0%, rgba(15, 23, 42, 0.86) 100%) !important;
   border: 1px solid var(--t3d-line-soft) !important;
   border-radius: var(--t3d-radius);
   box-shadow: var(--t3d-shadow);
   margin-top: 30px;
}

.theme-3d .blog-section .single-blog-grid .blog-img,
.theme-3d .blog-grid-page .single-blog-grid .blog-img {
   height: 200px;
   overflow: hidden;
   border-radius: var(--t3d-radius) var(--t3d-radius) 0 0;
   background: linear-gradient(135deg, #1e293b, #0b1021);
}

.theme-3d .blog-section .single-blog-grid .blog-img a,
.theme-3d .blog-section .single-blog-grid .blog-img img,
.theme-3d .blog-grid-page .single-blog-grid .blog-img a,
.theme-3d .blog-grid-page .single-blog-grid .blog-img img {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.theme-3d .blog-grid-page .blog-content h4 a {
   color: #fff;
}

.theme-3d .blog-grid-page .blog-content p,
.theme-3d .blog-grid-page .blog-content .meta-info a {
   color: var(--t3d-muted);
}

.theme-3d .blog-section .blog-content .meta-info i,
.theme-3d .blog-grid-page .blog-content .meta-info i {
   color: var(--t3d-gold) !important;
}

.theme-3d .blog-grid-page {
   background: var(--t3d-section) !important;
}

.theme-3d .section .pagination .page-link {
   color: var(--t3d-muted);
   background: rgba(255, 255, 255, 0.04);
   border-color: var(--t3d-line-soft);
   box-shadow: none;
}

.theme-3d .section .pagination .page-link:hover {
   color: var(--t3d-gold);
   border-color: rgba(245, 179, 1, 0.5);
}

.theme-3d .section .pagination .page-item.active .page-link {
   color: #111;
   background: var(--t3d-gold);
   border-color: var(--t3d-gold);
   box-shadow: 0 6px 18px -6px rgba(245, 179, 1, 0.6);
}

.theme-3d .section .pagination .page-item.disabled .page-link {
   color: rgba(255, 255, 255, 0.25);
   border-color: var(--t3d-line-soft);
}

/* --------------------------------------------------------------------------
   19. Páginas de detalle (ficha de portafolio y artículo del blog)
   Lectura larga: paneles de cristal casi opacos sobre el espacio.
   -------------------------------------------------------------------------- */
.theme-3d .portfolio-sidebar,
.theme-3d .portfolio-single-layout .entrada,
.theme-3d .blog-single .margenpost {
   background: linear-gradient(160deg, rgba(30, 41, 59, 0.82) 0%, rgba(15, 23, 42, 0.94) 100%) !important;
   border: 1px solid var(--t3d-line-soft) !important;
   border-radius: 22px;
   box-shadow: var(--t3d-shadow);
}

.theme-3d .portfolio-single-layout .entrada {
   padding: 28px 30px;
}

.theme-3d .blog-single .margenpost {
   padding: 36px 40px !important;
}

@media (max-width: 767.98px) {
   .theme-3d .portfolio-single-layout .entrada {
      padding: 20px 18px;
   }

   .theme-3d .blog-single .margenpost {
      padding: 24px 18px !important;
   }
}

.theme-3d .blog-single {
   background: var(--t3d-section) !important;
}

/* Carrusel del proyecto */
.theme-3d .portfolio-single-layout .carousel {
   border-radius: 22px;
   overflow: hidden;
   border: 1px solid var(--t3d-line-soft);
   box-shadow: var(--t3d-shadow), 0 0 70px -30px rgba(245, 179, 1, 0.45);
}

/* Ficha técnica */
.theme-3d .portfolio-title,
.theme-3d .portfolio-section-title {
   color: #fff;
}

.theme-3d .portfolio-subtitle,
.theme-3d .portfolio-meta-label {
   color: var(--t3d-muted);
}

.theme-3d .portfolio-meta-label i {
   color: var(--t3d-gold);
}

.theme-3d .portfolio-meta-value {
   color: var(--t3d-text);
}

.theme-3d .portfolio-meta-item {
   padding-bottom: 0.9rem;
   border-bottom: 1px solid var(--t3d-line-soft);
}

.theme-3d .portfolio-tags-badge {
   color: var(--t3d-gold);
   background: rgba(245, 179, 1, 0.12);
   border: 1px solid rgba(245, 179, 1, 0.35);
}

/* Texto largo: contraste AA sobre el panel oscuro */
.theme-3d .entrada,
.theme-3d .portfolio-single-layout .entrada p,
.theme-3d .portfolio-single-layout .entrada li,
.theme-3d .blog-single .entrada p,
.theme-3d .blog-single .entrada ul,
.theme-3d .blog-single .entrada ol,
.theme-3d .blog-single .entrada li {
   color: #cbd5e1;
}

.theme-3d .blog-single .entrada p:first-of-type {
   color: #e2e8f0;
}

.theme-3d .portfolio-single-layout .entrada h2,
.theme-3d .portfolio-single-layout .entrada h3,
.theme-3d .blog-single .entrada h2,
.theme-3d .blog-single .entrada h3,
.theme-3d .blog-single .entrada h4,
.theme-3d .blog-single .letratitulo,
.theme-3d .blog-single h4 {
   color: #fff;
}

.theme-3d .blog-single .entrada blockquote,
.theme-3d .blog-single .entrada figure figcaption {
   color: var(--t3d-muted);
}

.theme-3d .blog-single .entrada a,
.theme-3d .portfolio-single-layout .entrada a {
   color: var(--t3d-gold);
}

.theme-3d .blog-single .entrada code {
   color: var(--t3d-gold-soft);
   background: rgba(255, 255, 255, 0.08);
}

.theme-3d .blog-single .entrada pre {
   background: #060914;
   border: 1px solid var(--t3d-line-soft);
}

.theme-3d .blog-single .entrada pre code {
   padding: 0;
   color: #e2e8f0;
   background: transparent;
}

/* Listado /blog: sin columna lateral vacía, tres tarjetas por fila y extractos parejos */
@media (min-width: 992px) {
   .theme-3d .blog-grid-page .container > .row > .col-lg-8 {
      flex: 0 0 100%;
      max-width: 100%;
   }

   .theme-3d .blog-grid-page .container > .row > .col-lg-8 > .row > .col-lg-6 {
      flex: 0 0 33.3333%;
      max-width: 33.3333%;
   }
}

.theme-3d .blog-grid-page aside:has(> .sidebar:empty) {
   display: none;
}

.theme-3d .blog-grid-page .blog-content p {
   display: -webkit-box;
   -webkit-line-clamp: 4;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.theme-3d .single-blog-grid .button .btn {
   text-decoration: none;
}

.theme-3d .blog-single .post-thumbnils img {
   border-radius: var(--t3d-radius);
   box-shadow: var(--t3d-shadow);
}

.theme-3d .blog-single .post-title-content p,
.theme-3d .blog-single .meta-info li a {
   color: var(--t3d-muted);
}

.theme-3d .blog-single .post-title-content h4 a {
   color: var(--t3d-gold);
}

/* --------------------------------------------------------------------------
   20. Modal "Agenda una reunión": cristal oscuro y entrada 3D
   -------------------------------------------------------------------------- */
.theme-3d .modal.fade .modal-dialog {
   opacity: 0;
   transform: perspective(1200px) translate3d(0, 50px, -260px) rotateX(16deg);
   transform-origin: 50% 100%;
   transition: transform 0.65s var(--t3d-ease-out), opacity 0.4s ease;
}

.theme-3d .modal.show .modal-dialog {
   opacity: 1;
   transform: none;
}

.theme-3d .modal-backdrop {
   background-color: #050814;
}

.theme-3d .modal-backdrop.show {
   opacity: 0.72;
}

.theme-3d .modal-contacto {
   color: var(--t3d-text);
   background:
      radial-gradient(ellipse 80% 50% at 50% 0%, rgba(245, 179, 1, 0.12), transparent 70%),
      linear-gradient(160deg, rgba(30, 41, 59, 0.97) 0%, rgba(11, 16, 33, 0.98) 100%);
   border: 1px solid rgba(245, 179, 1, 0.3);
   border-radius: 22px;
   box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 80px -30px rgba(245, 179, 1, 0.45);
   overflow: hidden;
}

.theme-3d .modal-contacto-header,
.theme-3d .modal-contacto-footer {
   border-color: var(--t3d-line-soft);
}

.theme-3d .modal-contacto .btn-close {
   filter: invert(1) grayscale(1) brightness(1.6);
}

.theme-3d .modal-contacto-title {
   color: #fff;
}

.theme-3d .modal-contacto-label {
   color: var(--t3d-muted);
}

/* Campos planos: sin transform, solo color y foco visible */
.theme-3d .modal-contacto-input {
   color: var(--t3d-text);
   background-color: rgba(255, 255, 255, 0.04);
   border-color: rgba(255, 255, 255, 0.14);
}

.theme-3d .modal-contacto-input:hover {
   border-color: rgba(255, 255, 255, 0.24);
}

.theme-3d .modal-contacto-input:focus {
   color: #fff;
   background-color: rgba(255, 255, 255, 0.06);
   border-color: var(--t3d-gold);
   box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.18);
}

.theme-3d .modal-contacto-input::placeholder {
   color: #7c8aa3;
   opacity: 1;
}

.theme-3d .modal-contacto-btn-enviar {
   color: #111;
   background-color: var(--t3d-gold);
   border-radius: 999px;
   box-shadow: 0 12px 26px -10px rgba(245, 179, 1, 0.7);
}

.theme-3d .modal-contacto-btn-enviar:hover {
   color: #111;
   background-color: var(--t3d-gold-soft);
   transform: translate3d(0, -2px, 0);
}

.theme-3d .modal-contacto-btn-cerrar {
   color: var(--t3d-muted);
}

.theme-3d .modal-contacto-btn-cerrar:hover {
   color: #fff;
}

@media (prefers-reduced-motion: reduce) {
   .theme-3d .modal.fade .modal-dialog {
      transform: none;
      transition: opacity 0.3s ease;
   }
}

/* --------------------------------------------------------------------------
   21. Header fijo al hacer scroll: cristal oscuro en lugar de blanco
   main.js cambia el logo por la versión negra al fijarse; aquí se muestra el
   logo claro como fondo del enlace (sin tocar ese script).
   -------------------------------------------------------------------------- */
.theme-3d .navbar-area.sticky {
   background-color: rgba(11, 16, 33, 0.82) !important;
   -webkit-backdrop-filter: blur(14px) saturate(1.3);
   backdrop-filter: blur(14px) saturate(1.3);
   box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.7), inset 0 -1px 0 rgba(245, 179, 1, 0.2) !important;
}

.theme-3d .navbar-area.sticky .navbar-brand {
   background: url("../images/logo/logo.png") no-repeat center / contain;
}

.theme-3d .navbar-area.sticky .navbar-brand img {
   opacity: 0;
}

.theme-3d .sticky .navbar .navbar-nav .nav-item a {
   color: #e2e8f0;
}

.theme-3d .sticky .navbar .navbar-nav .nav-item a.active,
.theme-3d .sticky .navbar-nav .nav-item:hover a {
   color: var(--t3d-gold) !important;
}

.theme-3d .sticky .navbar .mobile-menu-btn .toggler-icon {
   background: #fff;
}

/* Menú desplegable en móvil: mismo cristal oscuro */
@media (max-width: 991.98px) {
   .theme-3d .header .navbar-collapse {
      background-color: rgba(11, 16, 33, 0.97);
      border: 1px solid var(--t3d-line-soft);
      border-radius: 0 0 16px 16px;
      box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.8);
   }

   .theme-3d .header .navbar-nav .nav-item a {
      color: #e2e8f0;
   }
}

/* --------------------------------------------------------------------------
   22. Presentación compacta: todo el bloque de texto cabe en una pantalla
   -------------------------------------------------------------------------- */
.theme-3d .presentacion-section.section {
   padding-top: 3rem;
   padding-bottom: 3rem;
}

.theme-3d .presentacion-content {
   padding: 0;
}

.theme-3d .presentacion-title {
   font-size: 1.85rem;
   line-height: 1.12;
   letter-spacing: 0.6px;
   margin-bottom: 0.75rem;
}

.theme-3d .presentacion-title-line {
   width: 64px;
   height: 3px;
   margin-bottom: 1.1rem;
}

.theme-3d .presentacion-highlight {
   padding: 0.85rem 1.15rem;
   margin-bottom: 1.1rem;
}

.theme-3d .presentacion-highlight-text {
   font-size: 0.98rem;
   line-height: 1.45;
}

.theme-3d .presentacion-paragraph {
   font-size: 1rem;
   line-height: 1.62;
   margin-bottom: 0.8rem;
}

.theme-3d .presentacion-paragraph:last-child {
   margin-bottom: 0;
}

@media (max-width: 767.98px) {
   .theme-3d .presentacion-title {
      font-size: 1.6rem;
   }

   .theme-3d .presentacion-paragraph {
      font-size: 0.97rem;
   }
}

/* --------------------------------------------------------------------------
   23. Páginas internas: menos aire entre la cabecera y el contenido
   (portafolio, ficha, blog, artículo y contacto)
   -------------------------------------------------------------------------- */
.theme-3d .breadcrumbs {
   padding-top: 150px;
   padding-bottom: 36px;
}

.theme-3d .breadcrumbs-video::after {
   height: 90px;
}

/* Primer bloque tras la cabecera (algunas vistas fijan su padding con id o inline) */
.theme-3d .breadcrumbs + .section {
   padding-top: 28px !important;
}

/* Sin fundido superior en ese primer bloque: empieza pegado a la cabecera */
.theme-3d .breadcrumbs + .section.portfolio-section,
.theme-3d .breadcrumbs + .section.blog-grid-page,
.theme-3d .breadcrumbs + .section.blog-single,
.theme-3d .breadcrumbs + .section.contact-us {
   background: linear-gradient(180deg, rgba(11, 16, 33, 0.35) 0, rgba(11, 16, 33, 0.62) 120px, rgba(11, 16, 33, 0.62) calc(100% - 150px), rgba(11, 16, 33, 0) 100%) !important;
}

@media (min-width: 768px) and (max-width: 991.98px) {
   .theme-3d .breadcrumbs {
      padding-top: 120px;
      padding-bottom: 30px;
   }
}

@media (max-width: 767.98px) {
   .theme-3d .breadcrumbs {
      padding-top: 105px;
      padding-bottom: 26px;
   }

   .theme-3d .breadcrumbs + .section {
      padding-top: 20px !important;
   }
}

/* --------------------------------------------------------------------------
   24. /blog: separación entre filas de tarjetas
   (la tarjeta tenía margin-top + height:100% y se montaba sobre la fila siguiente)
   -------------------------------------------------------------------------- */
.theme-3d .blog-grid-page .single-blog-grid {
   margin-top: 0;
   height: 100%;
}

.theme-3d .blog-grid-page .container > .row > [class*="col-"] > .row > [class*="col-"] {
   margin-bottom: 30px;
}

/* main.css separa la cuadrícula 80px de unos filtros que en /portafolio no existen */
.theme-3d .breadcrumbs + .portfolio-grid-page .row.grid {
   margin-top: 0;
}

.theme-3d .breadcrumbs + .section .portfolio-single-layout {
   padding-top: 0;
}

/* --------------------------------------------------------------------------
   25. Sección Prototipos (home): tarjetas que abren cada landing de muestra
   -------------------------------------------------------------------------- */
.theme-3d .prototipos-section {
   background: var(--t3d-section-alt) !important;
}

.theme-3d .prototipo-col {
   margin-bottom: 30px;
}

.theme-3d .prototipo-card {
   position: relative;
   display: flex;
   flex-direction: column;
   height: 100%;
   color: inherit;
   text-decoration: none;
   background: linear-gradient(160deg, rgba(30, 41, 59, 0.72) 0%, rgba(15, 23, 42, 0.88) 100%);
   border: 1px solid var(--t3d-line-soft);
   border-radius: var(--t3d-radius);
   box-shadow: var(--t3d-shadow);
   transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.theme-3d .prototipo-card:hover {
   border-color: rgba(45, 226, 196, 0.45);
}

.theme-3d .prototipo-card:focus-visible {
   outline: 2px solid var(--t3d-gold);
   outline-offset: 4px;
}

.theme-3d .prototipo-preview {
   overflow: hidden;
   border-radius: var(--t3d-radius) var(--t3d-radius) 0 0;
   aspect-ratio: 5 / 3;
   background: #051319;
}

.theme-3d .prototipo-art {
   display: block;
   width: 100%;
   height: 100%;
   transition: transform 0.6s var(--t3d-ease-out);
}

.theme-3d .prototipo-card:hover .prototipo-art {
   transform: scale(1.04);
}

.theme-3d .prototipo-body {
   display: flex;
   flex-direction: column;
   flex: 1;
   gap: 10px;
   padding: 20px 22px 22px;
}

.theme-3d .prototipo-tags {
   display: flex;
   flex-wrap: wrap;
   gap: 6px;
}

.theme-3d .prototipo-tags span {
   padding: 3px 10px;
   border-radius: 999px;
   font-size: 11px;
   font-weight: 600;
   letter-spacing: 0.04em;
   color: #2de2c4;
   background: rgba(45, 226, 196, 0.1);
   border: 1px solid rgba(45, 226, 196, 0.3);
}

.theme-3d .prototipo-title {
   margin: 4px 0 0;
   font-size: 19px;
   color: #fff;
}

.theme-3d .prototipo-text {
   color: var(--t3d-muted);
   font-size: 14.5px;
   line-height: 1.6;
}

.theme-3d .prototipo-cta {
   margin-top: auto;
   align-self: flex-start;
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 9px 20px;
   border-radius: 999px;
   font-weight: 600;
   font-size: 14px;
   color: #111;
   background: var(--t3d-gold);
   box-shadow: 0 12px 24px -10px rgba(245, 179, 1, 0.65);
   transition: transform 0.25s var(--t3d-ease-out);
}

.theme-3d .prototipo-card:hover .prototipo-cta {
   transform: translate3d(3px, -2px, 0);
}
