@import url("components/footer.css");
@import url("components/fonts.css");
@import url("components/normalice.css");
@import url("components/root.css");

/* ============================= */
/* ===== Scrollbar personalizado ===== */
/* ============================= */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--gray);
}
::-webkit-scrollbar-thumb {
  background: var(--black);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--black);
  cursor: pointer;
}

/* ============================= */
/* ===== Generales ===== */
/* ============================= */
html,
body {
  color: var(--black);
  height: 100%;
  width: 100%;
  background-position: center;
  background-size: cover;
}

textarea {
  resize: none;
}
input:focus,
textarea:focus {
  outline: none;
}

/* Imágenes en cards */
.card-img-top {
  width: 100%;
  height: 4.7rem;
  object-fit: contain;
  border-radius: 8px;
}

/* Logos de marca */
.brand-img {
  height: 2.3rem;
  width: auto;
  object-fit: contain;
}
@media (max-width: 768px) {
  .brand-img {
    height: 2rem;
  }
}

/* ============================= */
/* ===== Roles Grid ===== */
/* ============================= */
.role-card {
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  width: 100%;
  max-width: 170px;
  transition: transform 0.2s ease;
}
.role-card:hover {
  transform: translateY(-3px);
}
.role-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 6px;
}
.role-card p {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  color: #223564;
}
.row.g-3 {
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .role-card {
    max-width: 140px;
    padding: 8px;
  }
  .role-card p {
    font-size: 14px;
  }
}

/* ============================= */
/* ===== Responsive Section ===== */
/* ============================= */
.responsive-section {
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4);
  height: auto !important;
}
.responsive-section .container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  word-wrap: break-word;
  overflow: visible;
}
.responsive-section .title h5 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.responsive-section .title p {
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  white-space: normal;
}

/* ============================= */
/* ===== Portfolio ===== */
/* ============================= */
.portfolio-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* ============================= */
/* ===== Ajustes iPhone 12 Pro ===== */
/* ============================= */
@media (max-width: 414px) {
  .infos .subtitle {
    font-size: 14px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-bottom: 6px;
  }
  .infos .subtitle i {
    margin-right: 6px;
  }
  .infos .socials {
    text-align: center;
    margin-top: 10px;
  }
  .infos .row {
    flex-direction: column;
    align-items: center;
  }
  .infos .col {
    text-align: center;
    margin-bottom: 12px;
  }

  .carousel-caption .btn {
    font-size: 14px;
    padding: 8px 16px;
  }
  .carousel-title {
    font-size: 22px;
    line-height: 1.3;
  }
  .carousel-caption h5 {
    font-size: 14px;
  }
}

/* ============================= */
/* ===== Fix sección en móviles ===== */
/* ============================= */
.section.bg-overlay.responsive-section {
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
  display: block;
  padding: 20px 15px;
}
.section.bg-overlay.responsive-section .container {
  overflow: visible !important;
  height: auto !important;
}
.responsive-section .infos,
.responsive-section .title {
  height: auto !important;
  overflow: visible !important;
  white-space: normal !important;
}

/* ============================= */
/* ===== Dots personalizados ===== */
/* ============================= */
.owl-dots {
  text-align: center;
  margin-top: 15px;
}
.owl-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}
.owl-dot.active {
  background: var(--black);
}

/* ============================= */
/* ===== Ajustes Responsivos Generales ===== */
/* ============================= */

/* Celulares pequeños (hasta 480px, ej. POCO X7, iPhone SE) */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .responsive-section {
    padding: 25px 12px;
  }
  .responsive-section .title h5 {
    font-size: 1.2rem;
    line-height: 1.3;
  }
  .responsive-section .title p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .role-card {
    max-width: 120px;
    padding: 6px;
  }
  .role-card p {
    font-size: 13px;
  }

  .carousel-caption .btn {
    font-size: 13px;
    padding: 6px 14px;
  }
  .carousel-title {
    font-size: 20px;
  }
  .infos .subtitle {
    font-size: 13px;
    white-space: normal;
  }
}

/* Celulares medianos (481px - 576px) */
@media (max-width: 576px) {
  .responsive-section {
    padding: 30px 15px;
  }
  .responsive-section .title h5 {
    font-size: 1.4rem;
  }
  .responsive-section .title p {
    font-size: 1rem;
  }
  .role-card {
    max-width: 130px;
  }
  .carousel-title {
    font-size: 22px;
  }
}

/* Celulares grandes (577px - 768px) */
@media (max-width: 768px) {
  .responsive-section {
    padding: 40px 20px;
  }
  .responsive-section .title h5 {
    font-size: 1.6rem;
  }
  .responsive-section .title p {
    font-size: 1rem;
  }
  .role-card {
    max-width: 140px;
  }
}

/* Ajuste universal para texto largo */
.responsive-section .title,
.responsive-section .infos {
  word-wrap: break-word;
  white-space: normal !important;
  overflow-wrap: break-word;
}
