/* ── Carousel hero ── */
    #heroCarousel {
      height: 75vh;
    }

    #heroCarousel .carousel-item {
      height: 75vh;
      background-color: var(--indigo-dark);
      overflow: hidden;

      background-image:
        url("../img/textures-services-dots.svg"),
        linear-gradient(135deg, rgba(31,31,53,0.75) 60%, rgba(42,42,80,0.75) 100%);
      background-size: 160px 160px, cover;
      background-repeat: repeat, no-repeat;
      background-position: center, center;
    }

    #heroCarousel .carousel-item .container {
      height: 100%;
    }

    #heroCarousel .carousel-item .row {
      height: 100%;
      justify-content: center;
    }

    #heroCarousel .carousel-indicators [data-bs-target] {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.4);
      border: none;
    }

    #heroCarousel .carousel-indicators .active {
      background-color: var(--indigo-light);
    }

    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
      width: 60px;
      z-index: 10;
      opacity: 1;
    }

    #heroCarousel .carousel-control-prev i,
    #heroCarousel .carousel-control-next i {
      width: 40px;
      height: 40px;
      border: 1.5px solid rgba(255, 255, 255, 0.3);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: rgba(31, 31, 53, 0.4);
      transition: all 0.3s ease;
    }

    #heroCarousel .carousel-control-prev i:hover,
    #heroCarousel .carousel-control-next i:hover {
      background-color: var(--indigo);
      border-color: var(--indigo-light);
      transform: scale(1.1);
    }

    /* ── Animación foto slide 1 ── */
    .foto-hero {
      opacity: 0;
      transform: translateX(20px) rotate(2deg);
      transition: opacity 0.4s ease-out 0.1s, transform 0.4s ease-out 0.1s;
    }

    .carousel-item.active .foto-hero {
      opacity: 1;
      transform: translateX(0) rotate(0deg);
    }

    .foto-placeholder {
      width: 100%;
      max-width: 1000px;
      height: 65vh;
      border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
      background: linear-gradient(135deg, rgba(129, 140, 248, 0.15) 0%, rgba(55, 48, 163, 0.1) 100%);
      border: 2px solid rgba(129, 140, 248, 0.2);
      box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(129, 140, 248, 0.05);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin: 0 auto;
      color: rgba(255, 255, 255, 0.6);
      font-size: 0.85rem;
      gap: 0.75rem;
      position: relative;
      backdrop-filter: blur(12px);
      animation: morph 8s ease-in-out infinite;
    }

    @keyframes morph {
      0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
      }

      50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
      }

      100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
      }
    }

    .foto-placeholder::after {
      content: '';
      position: absolute;
      inset: -10px;
      border: 1px solid rgba(129, 140, 248, 0.1);
      border-radius: inherit;
      pointer-events: none;
      z-index: -1;
    }

    .foto-placeholder i {
      font-size: 7rem;
      color: var(--indigo-light);
      filter: drop-shadow(0 0 20px rgba(129, 140, 248, 0.4));
      z-index: 2;
      margin-bottom: 0.5rem;
    }

    /* ── Animación texto slides ── */
    .hero-text-anim {
      opacity: 0;
      transform: translateY(15px);
      transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    }

    .carousel-item.active .hero-text-anim {
      opacity: 1;
      transform: translateY(0);
    }

    .hero-text-anim.delay-1 {
      transition-delay: 0.05s;
    }

    .hero-text-anim.delay-2 {
      transition-delay: 0.1s;
    }

    .hero-text-anim.delay-3 {
      transition-delay: 0.15s;
    }

    /* ── Slide 2 fondo ── */
    .slide-2 {
      background-color: var(--indigo-dark) !important;
      background-image:
        url("../img/textures-services-dots.svg"),
        linear-gradient(135deg, rgba(31,31,53,0.75) 60%, rgba(42,42,80,0.75) 100%) !important;

      background-size: 160px 160px, cover !important;
      background-repeat: repeat, no-repeat !important;
      background-position: center, center !important;
    }

    /* ── Slide 3 fondo ── */
    .slide-3 {
      background-color: var(--indigo-dark) !important;
      background-image:
        url("../img/textures-services-dots.svg"),
        linear-gradient(135deg, rgba(31,31,53,0.75) 60%, rgba(42,42,80,0.75) 100%) !important;

      background-size: 160px 160px, cover !important;
      background-repeat: repeat, no-repeat !important;
      background-position: center, center !important;
    }

    /* ════════════════════════════
       RESPONSIVE
    ════════════════════════════ */
    @media (max-width: 991px) {
      #heroCarousel,
      #heroCarousel .carousel-item {
        height: 680px !important;
      }

      #heroCarousel .carousel-item .container {
        height: 680px !important;
        display: flex !important;
        align-items: center !important;
        padding-left: 56px;
        padding-right: 56px;
      }

      #heroCarousel .carousel-item .container > .row {
        width: 100%;
      }

      .foto-col-hide {
        display: none !important;
      }

      .hero-text-col {
        text-align: center !important;
      }

      .hero-text-col .d-flex {
        justify-content: center;
        flex-direction: column;
        align-items: center;
      }

      .hero-text-col .d-flex .btn {
        width: 100%;
        max-width: 300px;
      }

      .hero-text-col p {
        margin-left: auto;
        margin-right: auto;
      }

      .slide-3 .col-12 {
        text-align: center !important;
      }

      .slide-3 .col-12 p {
        margin-left: auto;
        margin-right: auto;
      }
    }

    @media (max-width: 575px) {
      #heroCarousel,
      #heroCarousel .carousel-item {
        height: 620px !important;
      }

      #heroCarousel .carousel-item .container {
        height: 620px !important;
        padding-left: 40px;
        padding-right: 40px;
      }

      h1.display-4 {
        font-size: 1.75rem !important;
      }

      h2.display-4 {
        font-size: 1.6rem !important;
      }

      h2[style*="2.2rem"] {
        font-size: 1.4rem !important;
      }

      .btn {
        font-size: 0.9rem;
      }
    }

    @media (max-width: 400px) {
      #heroCarousel,
      #heroCarousel .carousel-item {
        height: 700px !important;
      }

      #heroCarousel .carousel-item .container {
        height: 700px !important;
      }
    }

