/* ------------------------------- */
/* styles.css (BEM + Bootstrap)    */
/* ------------------------------- */

:root {
  --primary: #4f46e5;
  --accent: #a855f7;
  --bg: #0b0f19;
  --bg-light: #111827;
  --card-bg: #1f2937;
  --muted: #9ca3af;
  --glass: rgba(255, 255, 255, 0.04);
}

/* Reset ligero */
html,
body {
  height: 100%;
  background: linear-gradient(180deg, var(--bg), #0a1224 120%);
  color: #e5e7eb;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  scroll-behavior: smooth;
}

/* ====================================================== */
/*                       NAVBAR                           */
/* ====================================================== */

.custom-navbar {
  backdrop-filter: blur(8px) saturate(130%);
  background-image: url('nav-bg.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.8rem 1.4rem;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.navbar__logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* TITULO */
.navbar__title {
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-left: 0.6rem;
  color: white;
}

/* LINKS */
.navbar .nav-link {
  transition: all .25s ease;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

.navbar .nav-link:hover {
  transform: translateY(-2px);
  color: var(--accent) !important;
}

/* HAMBURGER MENU */
.navbar-toggler {
  border: none !important;
}

.navbar-toggler-icon {
  filter: invert(1) drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

/* ====================================================== */
/*                     TITULOS & TEXTOS                    */
/* ====================================================== */

.section-title {
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
}

.section-text {
  color: var(--muted);
  font-size: 1.06rem;
}

/* ====================================================== */
/*                      SERVICE CARDS                      */
/* ====================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  /* For the anchor tags */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  background-color: var(--card-bg);
  /* Fallback */
  background-size: cover;
  background-position: center;
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* Oscurecer fondo para leer texto */
.service-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease;
}

.service-card:hover .service-card__overlay {
  background: rgba(0, 0, 0, 0.75);
}

/* Reusing existing body styles but ensuring centering */
.service-card__body {
  padding: 1.5rem;
  text-align: center;
  color: white;
  z-index: 2;
}

/* Updating mobile responsiveness for the grid */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Reset height for mobile if aspect ratio is too tall, though square is usually fine */
  .service-card {
    aspect-ratio: auto;
    min-height: 250px;
  }
}



.service-card__title {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
}

.service-card__desc {
  color: var(--muted);
}

/* ====================================================== */
/*                    PROFILE CARDS                        */
/* ====================================================== */

.profile-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  /* Better for individual slides */
  align-items: center;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  /* Center in carousel */
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.profile-card__img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 3px solid var(--accent);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.profile-card__body {
  padding: 0;
}

.profile-card__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.profile-card__desc {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ====================================================== */
/*                       CAROUSEL                          */
/* ====================================================== */

.carousel .carousel-item {
  padding: 1rem 0;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  filter: invert(1) drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6));
}

button {
  color: white;
}

/* ====================================================== */
/*                        FOOTER                           */
/* ====================================================== */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 1rem;
  color: var(--muted);
}

/* ====================================================== */
/*                    PRESENTATION SECTION                 */
/* ====================================================== */

.presentation-header {
  margin-bottom: 3rem;
}

.presentation-subtitle {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

.presentation-card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.presentation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: #d1d5db;
}

.feature-list li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(168, 85, 247, 0.1));
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 2rem 0;
}

/* ====================================================== */
/*                    RESPONSIVE RULES                     */
/* ====================================================== */

@media (max-width: 767.98px) {

  .presentation-grid {
    grid-template-columns: 1fr;
  }

  .profile-card__img {
    width: 100%;
    height: 180px;
  }

  .profile-card {
    flex-direction: column-reverse;
    text-align: center;
  }

  .navbar__title {
    font-size: 1.05rem;
  }
}

/* ====================================================== */
/*                      ACCESSIBILITY                      */
/* ====================================================== */

a:focus,
button:focus {
  outline: 3px solid rgba(124, 58, 237, 0.25);
  outline-offset: 3px
}

/* ====================================================== */
/*                  UTILIDADES EXTRAS BEM                  */
/* ====================================================== */

.u-hidden {
  display: none !important;
}

/* FIN DEL styles.css */