/* Variables CSS */
:root {
  --primary-color: #2e73c7;
  --secondary-color: #bb1b47;
  --accent-color: #ea0654;
  --text-color: #262d36;
  --white: #ffffff;
  --gray-light: #eeeeee;
  --gray-medium: #aeaeae;
  --success-color: #79a3dc;

  /* Mobile specific variables */
  --mobile-padding: 15px;
  --mobile-font-size: 16px;
  --mobile-header-height: 70px;
  --touch-target-size: 44px;
}
:root {
  --primary-color: #2e73c7;
  --secondary-color: #bb1b47;
  --accent-color: #ea0654;
  --text-color: #262d36;
  --white: #ffffff;
  --gray-light: #eeeeee;
  --gray-medium: #aeaeae;
  --success-color: #79a3dc;

  /* Mobile specific variables */
  --mobile-padding: 15px;
  --mobile-font-size: 16px;
  --mobile-header-height: 70px;
  --touch-target-size: 44px;

  /* Performance variables */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --border-radius-small: 5px;
  --border-radius-medium: 10px;
  --border-radius-large: 20px;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-link:focus,
.btn-online-banking:focus,
.carousel-control:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: var(--border-radius-small);
}

.nav-link:focus:not(:focus-visible),
.btn-online-banking:focus:not(:focus-visible),
.carousel-control:focus:not(:focus-visible) {
  outline: none;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--border-radius-small);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 6px;
}

/* Hero Carousel - Optimized */
.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #f5f7fa;
  contain: layout style paint;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  will-change: opacity;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  loading: lazy;
  transition: transform var(--transition-slow);
}

.carousel-image:hover {
  transform: scale(1.02);
}

.service-item {
  text-align: center;
  background: var(--white);
  padding: 30px 20px;
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(46, 115, 199, 0.1), transparent);
  transition: left 0.6s ease;
}

.service-item:hover::before {
  left: 100%;
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.service-item:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

.service-item:focus:not(:focus-visible) {
  outline: none;
}

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles - Mobile Optimized */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar {
  background: var(--white);
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
}

.government-logos {
  text-align: center;
  padding: 0 var(--mobile-padding);
}

.gov-logo {
  max-height: 41px;
  width: auto;
  max-width: 100%;
}

.main-nav {
  background: var(--white);
  padding: 15px 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  flex-shrink: 0;
  order: 1;
}

.bdv-logo {
  height: 50px;
  width: auto;
  max-width: 200px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
  order: 2;
}

.online-banking {
  position: relative;
  order: 3;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary-color);
  cursor: pointer;
  padding: 10px;
  order: 4;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--success-color);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  z-index: 1000;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.online-banking:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  border-bottom: none;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dropdown-menu a:hover {
  color: var(--primary-color);
  background: rgba(46, 115, 199, 0.05);
  padding-left: 25px;
}

.online-banking {
  position: relative;
}

.btn-online-banking {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.3s ease;
}

.btn-online-banking:hover {
  background: var(--success-color);
}

.online-banking:hover .btn-online-banking {
  background: var(--success-color);
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #f5f7fa;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Controles del carrusel */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-control:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-control.prev {
  left: 30px;
}

.carousel-control.next {
  right: 30px;
}

/* Indicadores del carrusel */
.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.carousel-indicator:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

/* Services Section - Carrusel horizontal */
.services-section {
  background: var(--white);
  padding: 60px 0;
  position: relative;
}

/* Services Section - Swiper */
.services-section {
  background: var(--white);
  padding: 60px 0;
  position: relative;
}

.services-carousel {
  width: 100%;
  overflow: visible;
}

.swiper-slide.service-item {
  text-align: center;
  background: var(--white);
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  overflow: hidden;
}

.service-icon img {
  max-width: 50%;
  max-height: 50%;
  object-fit: contain;
}

.service-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.3;
}

.services-carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.services-carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.services-carousel-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.service-item {
  flex: 0 0 250px;
  text-align: center;
  background: var(--white);
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  overflow: hidden;
}

.service-icon img {
  max-width: 50%;
  max-height: 50%;
  filter: brightness(0) invert(1);
}

.service-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.3;
}

/* Botones de navegación del carrusel de servicios */
.services-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--primary-color);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 10;
}

.services-nav-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.services-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Exchange Rates Section */
.exchange-rates {
  background: var(--secondary-color);
  padding: 20px 0;
  color: var(--white);
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.rate-item {
  padding: 20px;
}

.rate-item h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.rate-item p {
  font-size: 16px;
  font-weight: normal;
  margin: 5px 0;
  line-height: 1.5;
}

/* Gallery Section */
.gallery-section {
  background: var(--white);
  padding: 80px 0;
}

.gallery-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.gallery-video {
  flex: 1;
}

.gallery-video iframe {
  width: 100%;
  height: 315px;
  border-radius: 10px;
}

.gallery-info {
  flex: 1;
}

.gallery-info h2 {
  font-size: 30px;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.gallery-info p {
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: justify;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 20px 50px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: var(--success-color);
}

/* BDVApp Section */
.bdvapp-section {
  background: linear-gradient(135deg, #623086c4 0%, #5e2b82 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.bdvapp-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: url("/placeholder.svg?height=400&width=300") no-repeat center right;
  background-size: contain;
  opacity: 0.5;
}

.app-content h2 {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 30px;
}

.btn-download {
  background: var(--white);
  color: var(--primary-color);
  border: none;
  padding: 20px 50px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-download:hover {
  background: #f0f0f0;
  color: var(--text-color);
}

/* Transfer Section */
.transfer-section {
  background: var(--white);
  padding: 80px 0;
  text-align: center;
}

.transfer-section h2 {
  font-size: 30px;
  color: var(--text-color);
  margin-bottom: 50px;
  line-height: 1.4;
}

.transfer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.transfer-features,
.app-benefits {
  flex: 1;
}

.feature,
.benefit {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 500;
}

.feature i,
.benefit i {
  color: var(--primary-color);
  font-size: 20px;
}

.app-mockup {
  flex: 1;
  text-align: center;
}

.app-mockup video {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* EmprendeBDV Section */
.emprende-section {
  background: var(--primary-color);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.emprende-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  background: url("/placeholder.svg?height=400&width=300") no-repeat center left;
  background-size: contain;
  opacity: 0.3;
}

.emprende-section h2 {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 10px;
}

.emprende-section h4 {
  font-size: 22px;
  font-weight: normal;
  margin-bottom: 30px;
  line-height: 1.4;
}

/* Mobile App Section */
.mobile-app-section {
  background: var(--accent-color);
  padding: 80px 0;
  color: var(--white);
}

.mobile-app-section .app-content {
  display: flex;
  align-items: flex-end; /* Alinea elementos al fondo */
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.app-text {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-text h2 {
  font-size: 45px;
  font-weight: bold;
  margin-bottom: 20px;
}

.app-text p {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
  text-align: justify;
}

.download-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.download-btn img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.download-btn:hover img {
  transform: scale(1.05);
}

.app-phone {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Alinea al fondo */
}

.phone-mockup {
  max-height: 500px;
  width: auto;
  object-fit: contain;
}

/* News Section */
.news-section {
  background: var(--white);
  padding: 80px 0;
  text-align: center;
}

.news-section h2 {
  font-size: 30px;
  color: var(--text-color);
  margin-bottom: 50px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.news-item {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: left;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.news-content p {
  font-size: 16px;
  color: var(--gray-medium);
  margin-bottom: 15px;
  line-height: 1.5;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--success-color);
}

/* Contact Section Styles */
.contact-section {
  background: var(--primary-color);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}

.contact-section h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.contact-section p {
  font-size: 18px;
  margin-bottom: 30px;
}

/* Goals Section Styles */
.goals-section {
  background: var(--white);
  padding: 80px 0;
  text-align: center;
}

.goals-section h2 {
  font-size: 30px;
  color: var(--text-color);
  margin-bottom: 50px;
}

.goals-section .highlight {
  color: var(--accent-color);
  font-weight: bold;
}

.video-gallery {
  max-width: 1000px;
  margin: 0 auto;
}

.main-video {
  margin-bottom: 30px;
}

.main-video iframe {
  width: 100%;
  max-width: 800px;
  height: 450px;
  border-radius: 10px;
}

.video-thumbnails {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.thumbnail {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.thumbnail img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  display: block;
}

/* Account Section Styles */
.account-section {
  background: var(--gray-light);
  padding: 80px 0;
}

/* Services Payment Section */
.services-payment {
  background: var(--white);
  padding: 80px 0;
}

.services-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Footer */
.site-footer {
  background: var(--gray-light);
  color: var(--text-color);
  padding: 70px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--primary-color);
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
  background: var(--gray-medium);
}

.social-link {
  color: var(--white);
  font-size: 24px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  color: var(--white);
  background: var(--gray-medium);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

/* Mobile First Responsive Design */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--mobile-header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--mobile-header-height));
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.mobile-active {
    display: flex;
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
  }

  .nav-link {
    padding: 15px 0;
    font-size: 18px;
    min-height: var(--touch-target-size);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
    margin: 10px 0;
    border-radius: 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
    .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
    margin: 10px 0;
    border-radius: 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 0 192px 0;
    width: 12px;
    position: relative;
    bottom: 17px;
    display: none;
}
.dropdown-menu-active{
      position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
    margin: 10px 0;
    border-radius: 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 0 192px 0;
    width: 12px;
    position: relative;
    bottom: 17px;
  display: block;
}

  .nav-item.active .dropdown-menu {
    max-height: 300px;
  }

  .online-banking {
    width: 100%;
    margin-top: 20px;
  }

  .btn-online-banking {
    width: 100%;
    justify-content: center;
    min-height: var(--touch-target-size);
    font-size: 16px;
    display: none;

  }

  /* Hero carousel mobile */
  .hero-carousel {
    height: 300px;
  }

  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .carousel-control.prev {
    left: 10px;
  }

  .carousel-control.next {
    right: 10px;
  }

  /* Services section mobile */
  .services-section {
    padding: 40px 0;
  }

  .services-carousel .swiper-slide {
    width: 200px !important;
  }

  .service-item {
    padding: 20px 15px;
    margin: 0 5px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .service-item h3 {
    font-size: 14px;
    line-height: 1.2;
  }
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 300px;
  }

  .nav-menu {
    height: calc(100vh - 60px);
  }

  .services-section {
    padding: 20px 0;
  }
  
  .container {
    padding: 0 var(--mobile-padding);
  }

  /* Typography mobile */
  body {
    font-size: var(--mobile-font-size);
  }

  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 24px;
  }
  h3 {
    font-size: 20px;
  }
  h4 {
    font-size: 18px;
  }
  

  /* Header mobile */
  .nav-content {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
  }
      .dropdown-menu {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        /* margin: 10px 0; */
        border-radius: 5px;
        max-height: 230px;
        overflow: hidden;
        transition: max-height 0.3s ease;
        top: 123px;
        left: -185px;
        background: #2e73c7;
        color: white;
      }

  .logo {
    order: 1;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
  }

  .bdv-logo {
    height: 40px;
  }

  .top-bar {
    padding: 8px 0;
  }

  .gov-logo {
    max-height: 35px;
  }

  .online-banking {
    order: 2;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
  }

  .mobile-menu-toggle {
    display: block;
    order: 3;
    margin-left: 10px;
    margin-right: 0;
    align-self: flex-end;
  }

  /* Agrupa banca y hamburguesa en una fila debajo del logo */
  .nav-content > .online-banking,
  .nav-content > .mobile-menu-toggle {
    margin-top: 0;
  }
  .nav-content > .online-banking,
  .nav-content > .mobile-menu-toggle {
    /* No cambia el display aquí, ya que .online-banking ya es flex */
  }
  .nav-content {
    /* Agrupa banca y hamburguesa en una fila */
  }
  .online-banking,
  .mobile-menu-toggle {
    /* Alinea horizontalmente */
    display: inline-flex;
    vertical-align: middle;
  }
  .online-banking {
    width: auto;
  }
  .mobile-menu-toggle {
    margin-left: 10px;
  }

  /* Hero carousel mobile */
  .hero-carousel {
    height: 250px;
  }

  .carousel-indicators {
    bottom: 15px;
    gap: 8px;
  }

  .carousel-indicator {
    width: 8px;
    height: 8px;
  }

  /* Services mobile optimization */
  .services-section {
    padding: 30px 0;
  }

  .services-carousel {
    margin: 0 -15px;
    padding: 0 15px;
  }

  .services-carousel .swiper-slide {
    width: 160px !important;
  }

  .service-item {
    padding: 15px 10px;
    border-radius: 8px;
  }

  .service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
  }

  .service-item h3 {
    font-size: 13px;
    line-height: 1.1;
  }

  /* Content sections mobile */
  .gallery-content,
  .mobile-app-section .app-content,
  .transfer-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .gallery-info h2,
  .app-text h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .gallery-info p,
  .app-text p {
    font-size: 16px;
    text-align: center;
    margin-bottom: 15px;
  }

  /* Mobile app section */
  .mobile-app-section .app-content {
    flex-direction: column-reverse;
    align-items: center;
  }

  .app-text {
    align-items: center;
    text-align: center;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .download-btn img {
    height: 50px;
  }

  .phone-mockup {
    max-height: 300px;
  }

  /* Transfer section mobile */
  .transfer-section h2 {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .app-mockup iframe {
    width: 280px;
    height: 400px;
  }

  /* Video gallery mobile */
  .main-video iframe {
    height: 200px;
  }

  .video-thumbnails {
    justify-content: center;
    gap: 8px;
  }

  .thumbnail img {
    width: 50px;
    height: 35px;
  }

  /* Footer mobile */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    text-align: left;
  }

  .footer-column h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .footer-column a {
    font-size: 14px;
    padding: 5px 0;
    display: block;
  }

  .social-media {
    gap: 15px;
    padding: 15px 0;
  }

  .social-link {
    font-size: 20px;
    padding: 10px;
    min-width: var(--touch-target-size);
    min-height: var(--touch-target-size);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-bottom {
    font-size: 12px;
    padding: 15px 10px;
    line-height: 1.4;
  }

  /* Buttons mobile */
  .btn-primary,
  .btn-download,
  .btn-contact {
    padding: 15px 25px;
    font-size: 11px;
    min-height: var(--touch-target-size);
    border-radius: 5px;
  }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
  .service-item:hover {
    transform: none;
  }

  .service-item:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }

  .carousel-control:hover {
    transform: translateY(-50%);
  }

  .carousel-control:active {
    transform: translateY(-50%) scale(0.9);
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-icon img,
  .bdv-logo,
  .gov-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Mobile Accessibility & Touch Improvements */
.mobile-menu-toggle:focus,
.carousel-control:focus,
.service-item:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Prevent zoom on input focus in iOS */
input,
select,
textarea {
  font-size: 16px;
}

/* Smooth scrolling for mobile */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
}

/* Improve tap targets */
a,
button,
.service-item,
.thumbnail {
  min-height: var(--touch-target-size);
  min-width: var(--touch-target-size);
}

/* Loading states for mobile */
.service-item {
  -webkit-tap-highlight-color: rgba(46, 115, 199, 0.1);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .carousel-slide,
  .service-item,
  .animated,
  .nav-menu {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

}