/* === mdpGestion - Modern Design Overrides === */

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* ===== NAVBAR ===== */
#mainNav {
  transition: background-color 0.3s ease, padding 0.3s ease;
}

@media (min-width: 992px) {
  #mainNav.navbar-shrink {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

#mainNav .navbar-nav .nav-link {
  border-radius: 6px;
  padding: 0.4rem 0.8rem !important;
  margin: 0 2px;
  transition: color 0.2s ease, background-color 0.2s ease !important;
}

#mainNav .navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

/* ===== HERO / MASTHEAD ===== */
header.masthead {
  position: relative;
}

header.masthead .masthead-subheading {
  letter-spacing: 0.35em !important;
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.85) !important;
  text-transform: uppercase !important;
  font-style: normal !important;
  margin-bottom: 1.25rem !important;
}

header.masthead .masthead-heading {
  font-size: 3.5rem !important;
  line-height: 1.1 !important;
  margin-bottom: 2.5rem !important;
}

@media (min-width: 768px) {
  header.masthead .masthead-heading {
    font-size: 5rem !important;
  }
}

.btn-xl {
  border-radius: 50px !important;
  letter-spacing: 0.06em;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 18px rgba(0, 103, 176, 0.35);
}

.btn-xl:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 103, 176, 0.5) !important;
}

/* ===== SECTION HEADINGS ===== */
h2.section-heading {
  position: relative;
  padding-bottom: 1.25rem;
}

h2.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3.5rem;
  height: 3px;
  background: #0067b0;
  border-radius: 2px;
}

h3.section-subheading {
  margin-top: 1rem;
}

/* ===== FEATURES ===== */
#features .col-md-4 {
  padding: 2rem 1.5rem;
  border-radius: 14px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#features .col-md-4:hover {
  background-color: #f5f9fd;
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 103, 176, 0.1);
}

.fa-stack {
  transition: transform 0.3s ease;
}

#features .col-md-4:hover .fa-stack {
  transform: scale(1.1);
}

#features h4.my-3 {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

/* ===== TIMELINE ===== */
.timeline > li .timeline-image {
  box-shadow: 0 4px 16px rgba(0, 103, 176, 0.25);
  border-color: #dee2e6 !important;
}

.timeline-panel {
  transition: transform 0.2s ease;
}

/* ===== TEAM ===== */
.team-member {
  padding: 2rem 1.5rem;
  border-radius: 18px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.team-member:hover {
  box-shadow: 0 10px 36px rgba(0, 103, 176, 0.15);
  transform: translateY(-5px);
}

.team-member img {
  border: 0.375rem solid #0067b0 !important;
  box-shadow: 0 4px 18px rgba(0, 103, 176, 0.2) !important;
  transition: box-shadow 0.3s ease;
}

.team-member h4 {
  margin-top: 1.25rem;
  font-size: 1.2rem;
}

/* ===== INTEGRACIONES ===== */
.integraciones-section {
  background: #f8fafc;
  border-top: 1px solid #eef1f5;
  border-bottom: 1px solid #eef1f5;
}

.integraciones-section .img-fluid {
  filter: grayscale(50%);
  opacity: 0.72;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.integraciones-section .img-fluid:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.06);
}

/* ===== CONTACT FORM ===== */
section#contact .section-subheading {
  color: rgba(255, 255, 255, 0.6);
}

section#contact .form-control {
  border-radius: 8px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* ===== FOOTER ===== */
.footer {
  background-color: #1a1d20 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .text-muted {
  color: rgba(255, 255, 255, 0.45) !important;
}

.footer a.small {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer a.small:hover {
  color: #0067b0;
}

.footer .btn-dark {
  background-color: #2c3036 !important;
  border-color: transparent !important;
  transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.footer .btn-dark:hover {
  background-color: #0067b0 !important;
  transform: translateY(-2px);
}

/* ===== PRICING CARDS ===== */
#pricing .card {
  border: none !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

#pricing .card:hover {
  box-shadow: 0 10px 36px rgba(0, 103, 176, 0.14);
}

/* ===== ACCORDION ===== */
.accordion-item {
  border-radius: 10px !important;
  overflow: hidden;
  margin-bottom: 6px;
  border: 1px solid #e8edf2 !important;
}

.accordion-button:not(.collapsed) {
  color: #0067b0;
  background-color: rgba(0, 103, 176, 0.05);
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 103, 176, 0.15) !important;
}

/* ===== MODALES - TEMA OSCURO ===== */
.portfolio-modal .modal-content {
  border-radius: 0;
  background: #0b0f1a !important;
}

/* Botón de cierre */
.portfolio-modal .close-modal {
  top: 12px !important;
  right: 12px !important;
  width: 34px !important;
  height: 34px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s ease;
}

.portfolio-modal .close-modal:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  opacity: 1 !important;
}

.portfolio-modal .close-modal img {
  width: 14px !important;
  height: 14px !important;
  filter: invert(1) brightness(2);
}

/* Textos */
.portfolio-modal .section-heading {
  color: #e2e8f0;
}

.portfolio-modal .section-heading::after {
  background: #3b82f6;
}

.portfolio-modal .section-subheading,
.portfolio-modal .text-muted {
  color: #64748b !important;
}

/* Accordion */
.portfolio-modal .accordion-item {
  background: #111827 !important;
  border-color: #1f2d45 !important;
}

.portfolio-modal .accordion-button {
  background: #111827 !important;
  color: #e2e8f0 !important;
}

.portfolio-modal .accordion-button:not(.collapsed) {
  background: rgba(59, 130, 246, 0.1) !important;
  color: #3b82f6 !important;
  box-shadow: none !important;
}

.portfolio-modal .accordion-button::after {
  filter: invert(1) brightness(2);
}

.portfolio-modal .accordion-body {
  background: #1a2233 !important;
  color: #94a3b8;
}

/* Links y secciones internas */
.portfolio-modal .page-section {
  background: transparent !important;
}

.portfolio-modal a:not([data-bs-dismiss]) {
  color: #3b82f6;
}

.portfolio-modal a:not([data-bs-dismiss]):hover {
  color: #06b6d4;
}

/* ===== BOTONES GENERALES ===== */
.btn-primary {
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 103, 176, 0.38);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp {
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}
