@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");

/* ============================================================
   RESET & BASE
   ============================================================ */
* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #ffffff;
}

/* ============================================================
   NAVBAR
   ============================================================ */
/* ============================================================
   NAVBAR — Reemplaza TODA la sección navbar en style.css
   ============================================================ */

.navbar {
  background-color: #fff;
  padding: 10px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.navbar-brand {
  padding-bottom: 0;
}
.navbar .navbar-nav li {
  margin-left: 5px;
}
#navbarNav {
  justify-content: flex-end;
}
.navbar-nav .nav-link {
  color: #404040;
  text-transform: uppercase;
  padding: 0;
  border-bottom: 2px solid transparent;
  font-weight: 400;
  transition: all 0.3s;
}
#navbarNav .navbar-nav {
  margin-top: 0.8rem;
}
#navbarNav .navbar-nav .nav-link:hover,
#navbarNav .navbar-nav .nav-link:focus {
  border-bottom: 2px solid #a84849;
  color: #a84849;
}
.nav-item.active {
  border-bottom: 2px solid #a84849;
}

/* ── Hamburger ─────────────────────────────── */
.navbar-toggler {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
}

.toggler-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #404040;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  transform-origin: center;
}

.navbar-toggler.active .toggler-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggler.active .toggler-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar-toggler.active .toggler-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile 991px ──────────────────────────── */
@media (max-width: 991px) {
  .navbar-toggler {
    display: flex;
  }

  #navbarNav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 8px 16px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
  }

  #navbarNav.open {
    display: block !important;
    animation: navSlideDown 0.2s ease forwards;
  }

  @keyframes navSlideDown {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #navbarNav .navbar-nav {
    flex-direction: column;
    margin-top: 0;
    gap: 0;
  }

  #navbarNav .nav-item {
    margin-left: 0;
    border-bottom: 1px solid #f0f0f0;
  }

  #navbarNav .nav-item:last-child {
    border-bottom: none;
  }

  #navbarNav .navbar-nav .nav-link {
    padding: 12px 4px;
    border-bottom: none;
    display: block;
    width: 100%;
  }

  .nav-item.active {
    border-bottom: none;
  }

  .nav-item.active .nav-link {
    color: #a84849;
    font-weight: 600;
  }

  .navbar-brand img {
    width: 180px !important;
  }
}

@media (max-width: 480px) {
  .navbar-brand img {
    width: 155px !important;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: rgba(11, 140, 170, 0.1) url(../img/bg-shapes-lines.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-bottom: 50px;
  width: 100%;
}

.hero .underText {
  width: 100%;
  height: 100%;
  padding-top: 50px;
}

.hero .underText h1 {
  color: #a84849;
  margin-top: 5px;
}

.hero .underText a {
  text-decoration: none;
  color: #ff0003;
  transition: color 0.3s;
}

.hero .underText a:hover {
  text-decoration: underline;
  color: #a84849;
}

.hero .underText .d-none {
  text-align: right;
}

.hero .underText img {
  max-width: 425px;
  float: right;
  vertical-align: middle;
  border-style: none;
}

.hero .btn {
  color: royalblue !important;
  margin-top: 2rem;
  background-color: transparent;
  border: 2px solid currentColor;
  transition: all 0.4s;
}

.hero .btn:hover,
.hero .btn:focus {
  color: #fff !important;
  background-color: royalblue !important;
  border-color: royalblue !important;
}

/* ============================================================
   SECTIONS — BASE
   ============================================================ */
.section .title {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.2rem;
  cursor: default;
  font-size: 28px;
  color: #a84849;
  text-align: center;
  margin-bottom: 10px;
}

.section .subtitle {
  font-size: 18px;
  margin-bottom: 40px;
  color: #555;
  text-align: center;
}

.page-margin {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* ============================================================
   PRODUCTS — HOME (#ourProducts)
   ============================================================ */
#ourProducts {
  margin: 20px 0;
  border-bottom: 1px solid #e4e4e4;
  padding-bottom: 10px;
}

#ourProducts h2 {
  font-size: 28px;
  color: #a84849;
  text-align: center;
  border-bottom: 1px solid #e4e4e4;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

#ourProducts .row {
  justify-content: center;
}

#ourProducts .row .col-md {
  border: 1px solid #e4e4e4;
  margin-right: 0.5rem;
}

.item-services {
  position: relative;
  text-align: center;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: all 0.3s;
  border-radius: 3px;
  padding: 5px;
}

.item-services .img-fluid {
  display: inline-block;
  width: 100px;
  background-color: white;
  margin-bottom: 10px;
  box-shadow:
    0px 2px 1px -1px #c7c7c7,
    0px 1px 1px 0px #ababab,
    0px 1px 3px 0px #bdbdbd;
  border-radius: 5px;
  padding: 5px;
}

.item-services h3 {
  font-size: 1.2rem;
}

.item-services p {
  font-size: 0.8rem;
  color: #666;
}

.item-services#item-prestamostapp:hover,
.item-services#item-prestamostapp .btn:hover,
.item-services#item-prestamostapp:focus {
  color: #007bff;
  background-color: rgba(0, 123, 255, 0.2);
  border-color: transparent;
}

.item-services#item-ventac:hover,
.item-services#item-ventac .btn:hover,
.item-services#item-ventac:focus {
  color: #ff381e;
  background-color: rgba(255, 56, 30, 0.2);
  border-color: transparent;
}

.item-services#item-lotteryapp:hover,
.item-services#item-lotteryapp .btn:hover,
.item-services#item-lotteryapp:focus {
  color: rgb(98, 189, 98);
  background-color: rgba(98, 189, 98, 0.2);
  border-color: transparent;
}

/* Product badges */
.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  line-height: 1.4;
  pointer-events: none;
  z-index: 2;
}

.product-badge.badge-new {
  background-color: #c62828;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.35);
}

.product-badge.badge-popular {
  background-color: #e65100;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(230, 81, 0, 0.35);
}

.product-badge i {
  font-size: 0.62rem;
}

/* ============================================================
   SERVICES — HOME (#services)
   ============================================================ */
#services {
  padding: 60px 20px;
  background-color: #f7f7f7;
  text-align: center;
  color: #333;
}

.header-section {
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
}

.header-section h2 {
  font-size: 28px;
  color: #a84849;
  line-height: 25px;
  position: relative;
  margin: 0;
  margin-bottom: 20px;
}

.header-section .subtitle {
  font-size: 18px;
  margin-bottom: 40px;
  color: #555;
}

#services .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

#services .card-grid .item {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

#services .card-grid .item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#services .card-grid .item h3 {
  font-size: 22px;
  margin: 15px 0;
  color: #c62828;
}

#services .card-grid .item p {
  font-size: 16px;
  color: #666;
}

#services .card-grid .item .icon {
  font-size: 40px;
  color: #c62828;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials .title {
  margin-top: 30px;
}

#testimonials .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 20px;
}

#testimonials .testimonials-card {
  background-color: #f7f7f7;
  border-radius: 12px;
  padding: 30px;
  position: relative;
  font-style: italic;
  transition: transform 0.3s ease;
}

#testimonials .testimonials-card:hover {
  transform: translateY(-10px);
}

#testimonials .testimonials-card p {
  font-size: 16px;
  margin-bottom: 20px;
}

#testimonials .client-info {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

#testimonials .client-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #c62828;
}

#testimonials .client-info strong {
  color: #000;
}

/* ============================================================
   FOOTER
   ============================================================ */
.f-main {
  box-shadow: 0px 1px 5px #d1d1d1 inset;
  background-color: #f4f8fc;
  color: #242424;
  padding: 30px 0;
  display: block;
}

.f-main .footer-contacts {
  padding: 0;
}

.f-main .footer-contacts li {
  list-style: none;
}

.f-main a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s;
}

.f-main a:hover,
.f-main a:focus {
  color: #a84849;
  text-decoration: underline;
}

.f-main .footer-contacts .social-icons {
  padding: 0;
  padding-top: 10px;
}

.f-main .footer-contacts .social-icons li {
  display: inline-block;
  background: white;
  color: #a84849;
  padding: 5px 11px;
  font-size: 17px;
  border-radius: 4px;
}

.f-main .footer-menu {
  padding: 0;
  list-style: none;
}

.f-main .footer-menu li {
  margin-top: 0.5rem;
}

.f-main .credit {
  text-align: right;
  padding-top: 10px;
}

.f-main .credit p {
  color: gray;
}

/* ============================================================
   IN-PAGE (páginas internas)
   ============================================================ */
.in-page {
  padding-top: 2.5rem;
  border-top: 1px solid #e4e4e4;
  margin-bottom: 1rem;
}

.in-page .main {
  padding: 30px 0;
}

.in-page .about-img {
  border-radius: 3px;
  box-shadow: 0px 0px 3px 3px rgba(11, 140, 170, 0.1);
}

.in-page .title-page {
  font-size: 33px;
  color: #a84849;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

/* ============================================================
   NOSOTROS
   ============================================================ */
.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  padding: 40px 20px;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

.about-img-container {
  flex: 1;
  text-align: center;
}

.blocks-mvv {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 20px;
  justify-content: center;
  text-align: center;
}

.blocks-mvv .mvv-card {
  background-color: #f7f7f7;
  border-radius: 10px;
  padding: 30px;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.blocks-mvv .mvv-card h3 {
  color: #c62828;
  margin-bottom: 10px;
  font-size: 20px;
}

.blocks-mvv .mvv-card i {
  margin-right: 8px;
  color: #c62828;
}

#about .title {
  font-weight: bold;
  font-style: normal;
  border-bottom: 2px solid #a84849;
  width: 37%;
  max-width: 100%;
  text-align: center;
}

#about .container-desc {
  margin-top: 2.5rem;
  width: 90%;
}

#about .container-desc .sub-title {
  font-weight: bold;
  border-bottom: 1px solid #a84849;
  width: auto;
  padding-bottom: 0.5rem;
  margin-top: 2.5rem;
  text-transform: uppercase;
  display: inline-block;
}

/* ============================================================
   SERVICIOS PAGE
   ============================================================ */
#services-page {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

#services-page .services-header {
  text-align: center;
  font-size: 20px;
  color: #444;
  font-weight: bold;
  margin-bottom: 40px;
}

#services-page .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

#services-page .service-card {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

#services-page .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

#services-page .service-card .icon {
  font-size: 36px;
  color: #c62828;
  margin-bottom: 20px;
}

#services-page .service-card h4 {
  font-size: 20px;
  color: #c62828;
  margin-bottom: 10px;
}

#services-page .service-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

.btn-service {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #c62828;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-service:hover {
  background-color: #a61b1b;
  color: #f9f9f9;
}

/* ============================================================
   PORTAFOLIO / BRIEFCASE
   ============================================================ */
#systems-ready,
#systems-clients {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

#systems-ready .title,
#systems-clients .title {
  font-size: 32px;
  color: #c62828;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

#systems-ready .description,
#systems-clients .description {
  text-align: center;
  font-size: 16px;
  color: #555;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.system-card {
  background-color: #fff;
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.system-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.system-card img {
  width: 80px;
  height: auto;
  margin-bottom: 20px;
}

.system-card h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

.system-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  min-height: 60px;
}

.system-card .btn-open {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 25px;
  font-weight: bold;
  font-size: 14px;
  background-color: #c62828;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.system-card .btn-open:hover {
  background-color: #a32020;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-form {
  max-width: 600px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-form .title {
  color: #c62828;
  text-align: center;
}

.contact-form .description {
  text-align: center;
  margin-bottom: 30px;
}

.contact-form #contactForm input,
.contact-form #contactForm select {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

.contact-form #contactForm small {
  font-size: 13px;
  color: #777;
  display: block;
  margin-bottom: 15px;
}

.contact-form #contactForm button {
  width: 100%;
  padding: 12px;
  background-color: #c62828;
  color: white;
  font-weight: bold;
  font-size: 16px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 2rem;
}

.contact-form #contactForm button:hover {
  background-color: #a32020;
}

.contact-socials {
  text-align: center;
  padding: 40px 20px;
  background-color: #fff;
  margin-top: 30px;
}

.contact-socials .title {
  font-size: 28px;
  color: #c62828;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.contact-socials .title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #c62828;
  margin: 10px auto 0;
  border-radius: 2px;
}

.contact-socials .socials-icons {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.contact-socials .socials-icons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.contact-socials .socials-icons a:hover {
  transform: scale(1.2);
}

.contact-socials .socials-icons i {
  font-size: 56px;
  margin-bottom: 10px;
}

.contact-socials .socials-icons span {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.icon-red a#facebook i {
  color: #1877f2;
}
.icon-red a#instagram i {
  color: #e1306c;
}
.icon-red a#whatsapp i {
  color: #25d366;
}

/* ============================================================
   SOCIAL ICONS
   ============================================================ */
.social-icons li a:hover,
.social-icons li a:focus {
  color: #ff0000;
  text-decoration: underline;
}

.social-icons li#s-i-f a:hover,
.social-icons li#s-i-f a:focus {
  color: #3b5998;
}

.social-icons li#s-i-i a:hover,
.social-icons li#s-i-i a:focus {
  color: #405de6;
}

.social-icons li#s-i-w a:hover,
.social-icons li#s-i-w a:focus {
  color: #25d366;
}

/* ============================================================
   PRIVACIDAD / TÉRMINOS
   ============================================================ */
#privacy-policy {
  padding: 60px 20px;
  background: #fff;
  color: #333;
}

#privacy-policy .title {
  text-align: center;
  color: #c62828;
  font-size: 32px;
  margin-bottom: 30px;
  border-bottom: 2px solid #c62828;
  padding-bottom: 10px;
}

.container-desc {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
}

.container-desc h2 {
  font-size: 22px;
  color: #c62828;
  margin-top: 40px;
  margin-bottom: 10px;
  border-left: 4px solid #c62828;
  padding-left: 10px;
}

.container-desc p {
  margin-bottom: 16px;
  color: #444;
}

.container-desc .ult-line {
  text-align: right;
  font-size: 14px;
  color: #666;
  margin-top: 40px;
}

.container-desc .alert-foot {
  text-align: center;
  font-weight: bold;
  font-size: 15px;
  color: #222;
  margin-top: 20px;
}

.container-desc ul.list-group {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 30px;
  color: #444;
}

.container-desc ul.list-group li {
  margin-bottom: 10px;
}

.terms-footer {
  text-align: center;
  font-weight: bold;
  font-size: 15px;
  margin-top: 50px;
  color: #222;
}

/* ============================================================
   404
   ============================================================ */
.w_404 {
  padding: 45px 15px;
  border: 0;
  border-radius: 0px;
  min-height: calc(100vh - 45px);
  background: transparent url(../img/404.webp) center / cover no-repeat;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.w_404 h4 {
  font-size: 60px;
  font-weight: 600;
  font-family: "Lato", sans-serif;
  color: #d9e7f9;
  margin: 80px 0 148px;
  position: relative;
}

.w_404 h4 svg {
  position: absolute;
  bottom: -150px;
  left: 90px;
  width: 130px;
  transform: rotate(270deg);
}

.w_404 h1 {
  font-size: 30vh;
  position: relative;
  color: #497ab5;
  font-family: "Dosis", sans-serif;
  font-weight: 800;
}

.w_404 h1 svg {
  width: 30vh;
}

.w_404 .btn {
  margin: auto 0 80px;
  border-radius: 9px;
  padding: 12px 33px;
  z-index: 2;
  border: 0;
  box-shadow:
    0px 6px 0px 0px #812f30,
    0px 0px 20px 0px #bbb;
  text-transform: uppercase;
  font-weight: 600;
  font-family: "Lato", sans-serif;
  letter-spacing: 1.5px;
  transition: all 0.3s;
}

.w_404 .btn:active {
  box-shadow: 0px 2px 0px 0px #812f30;
}

.w_404 .w_404_moon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -725px;
  width: calc(100% + 290px);
  height: 1000px;
}

/* ============================================================
   RESPONSIVE — 991px (tablet)
   ============================================================ */
@media (max-width: 991px) {
  /* Navbar — mostrar hamburger, ocultar menu */
  .navbar-toggler {
    display: flex;
  }

  #navbarNav {
    display: none !important;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: rgba(12, 12, 14, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 14px 14px;
    padding: 12px 8px 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    z-index: 1000;
  }

  #navbarNav.open {
    display: flex !important;
    animation: navSlideDown 0.2s ease forwards;
  }

  @keyframes navSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #navbarNav .navbar-nav {
    flex-direction: column;
    width: 100%;
    gap: 2px;
    margin-top: 0;
  }

  #navbarNav .nav-item {
    width: 100%;
    margin-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  #navbarNav .navbar-nav .nav-link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 10px;
    border-bottom: none;
    color: rgba(255, 255, 255, 0.8);
  }

  #navbarNav .navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-bottom-color: transparent;
  }

  #navbarNav .nav-item.active .nav-link {
    background: rgba(198, 40, 40, 0.12);
    color: #c62828 !important;
  }

  .nav-item.active {
    border-bottom: none;
  }

  .navbar-brand img {
    width: 170px !important;
  }

  /* Hero */
  .hero .underText {
    padding-top: 30px;
  }

  .hero .underText h1 {
    font-size: 1.8rem;
  }

  /* Nosotros */
  .about-grid {
    gap: 24px;
    padding: 24px 16px;
  }

  .blocks-mvv {
    padding: 24px 16px;
    gap: 20px;
  }

  /* Footer */
  .f-main .credit {
    text-align: left;
    margin-top: 1rem;
  }
}

/* ============================================================
   RESPONSIVE — 767px (móvil)
   ============================================================ */
@media (max-width: 767px) {
  /* Hero */
  .hero {
    margin-top: 0;
    padding-bottom: 30px;
  }

  .hero .underText {
    padding-top: 24px;
  }

  .hero .underText h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .hero .underText p {
    font-size: 0.95rem;
  }

  .hero .btn {
    width: 100%;
    text-align: center;
    margin-top: 1.25rem;
  }

  /* Secciones */
  .section .title {
    font-size: 22px;
    letter-spacing: 0.1rem;
  }

  .section .subtitle {
    font-size: 15px;
    padding: 0 8px;
  }

  /* Productos */
  #ourProducts .row .col-md {
    margin-right: 0;
    margin-bottom: 0.75rem;
    border-radius: 8px;
  }

  .item-services {
    padding: 16px;
  }

  .product-badge {
    top: 8px;
    right: 8px;
    font-size: 0.6rem;
    padding: 2px 8px;
  }

  /* Servicios home */
  #services {
    padding: 40px 16px;
  }

  #services .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #services .card-grid .item {
    padding: 20px;
  }

  #services .card-grid .item h3 {
    font-size: 18px;
  }

  .header-section h2 {
    font-size: 22px;
    line-height: 1.3;
  }

  .header-section .subtitle {
    font-size: 15px;
  }

  /* Testimonios */
  #testimonials .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }

  #testimonials .testimonials-card {
    padding: 20px;
  }

  #testimonials .testimonials-card p {
    font-size: 14px;
  }

  /* Nosotros */
  .about-text {
    min-width: unset;
    width: 100%;
  }

  .about-img-container img {
    max-width: 100%;
    height: auto;
  }

  .in-page .title-page {
    font-size: 24px;
  }

  .blocks-mvv .mvv-card {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }

  /* Servicios page */
  #services-page {
    padding: 40px 16px;
  }

  #services-page .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #services-page .service-card {
    padding: 20px;
  }

  /* Portafolio */
  #systems-ready,
  #systems-clients {
    padding: 40px 16px;
  }

  .systems-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .system-card {
    padding: 20px 16px;
  }

  .system-card p {
    min-height: unset;
  }

  /* Contacto */
  .contact-form {
    margin: 20px 16px;
    padding: 20px;
  }

  .contact-socials .socials-icons {
    gap: 30px;
  }

  .contact-socials .socials-icons i {
    font-size: 42px;
  }

  /* Footer */
  .f-main {
    padding: 24px 0;
  }

  .f-main .credit {
    text-align: left;
    margin-top: 1rem;
  }

  /* Privacidad */
  #privacy-policy {
    padding: 40px 16px;
  }

  .container-desc {
    font-size: 15px;
  }
}

/* ============================================================
   RESPONSIVE — 575px
   ============================================================ */
@media (max-width: 575px) {
  .hero .underText h1 {
    font-size: 1.4rem;
  }

  .section .title,
  #systems-ready .title,
  #systems-clients .title,
  .header-section h2 {
    font-size: 20px;
  }

  #systems-clients .system-card {
    padding: 24px 16px;
  }

  .contact-form #contactForm button {
    font-size: 15px;
  }

  .f-main .footer-contacts .social-icons li {
    padding: 4px 9px;
    font-size: 15px;
  }

  #privacy-policy .title {
    font-size: 24px;
  }

  .container-desc h2 {
    font-size: 18px;
  }
}

/* ============================================================
   RESPONSIVE — 480px (navbar)
   ============================================================ */
@media (max-width: 480px) {
  .navbar {
    padding: 10px 0;
  }

  .navbar-brand img {
    width: 145px !important;
  }
}

/* ============================================================
   RESPONSIVE — 400px (móvil pequeño)
   ============================================================ */
@media (max-width: 400px) {
  .hero .underText h1 {
    font-size: 1.25rem;
  }

  .hero .underText p,
  .hero .underText a:not(.btn) {
    font-size: 0.88rem;
  }

  .item-services .img-fluid {
    width: 80px;
  }

  .item-services h3 {
    font-size: 1rem;
  }

  #services .card-grid .item h3 {
    font-size: 16px;
  }

  #services .card-grid .item p,
  #services-page .service-card p {
    font-size: 14px;
  }

  .system-card h3 {
    font-size: 17px;
  }

  .contact-socials .socials-icons {
    gap: 20px;
  }

  .contact-socials .socials-icons i {
    font-size: 36px;
  }

  .contact-socials .socials-icons span {
    font-size: 13px;
  }
}
