/* mobile.css - Mobile Responsive Styles */

/* Benefits Section Animation */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply animation to benefits grid on all screens */
.benefits-grid {
  animation: slideInFromRight 1s ease-out 0.5s both;
}

/* Stagger the animation for individual columns */
.benefit-column:nth-child(1) {
  animation: slideInFromRight 1s ease-out 0.5s both;
}

.benefit-column:nth-child(2) {
  animation: slideInFromRight 1s ease-out 1s both;
}

.benefit-column:nth-child(3) {
  animation: slideInFromRight 1s ease-out 1.5s both;
}

/* Ensure the elements are hidden initially before animation */
.benefit-column {
  opacity: 0;
}

/* Base Mobile Styles */
@media (max-width: 1200px) {
  .navbar {
    padding: 20px 40px !important;
    margin: 0 15px !important;
  }
  
  .content,
  .inner {
    padding: 40px 20px !important;
    margin: 0 15px !important;
  }
  
  .benefits {
    margin: 80px 20px 0 !important;
    padding: 80px 20px !important;
  }
}

@media (max-width: 768px) {
  /* Navigation Mobile Styles - Login Left, Logo Center, Menu Right */
  .nav-container {
    top: 15px;
  }
  
  .navbar {
    padding: 15px 20px !important;
    margin: 0 10px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }
  
  /* Hide desktop elements on mobile */
  .nav-links {
    display: none !important;
  }
  
  .nav-buttons .btn {
    display: none !important;
  }
  
  .nav-buttons .icon-link:not(.menu-button) {
    display: none !important; /* Hide search icon on mobile */
  }
  
  /* Show mobile login icon on left */
  .mobile-login-icon {
    display: flex !important;
    align-items: center;
    text-decoration: none;
    color: #001391;
    flex: 0 0 auto;
    order: 1;
  }
  
  /* Logo in center */
  .header__logo {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    height: 32px;
    min-width: 96px;
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Nav buttons container - menu on right */
  .nav-buttons {
    margin-top: 0 !important;
    display: flex;
    margin-left: 0;
    width: auto !important;
    flex: 0 0 auto;
    order: 3;
  }
  
  /* Menu button on mobile - icon + text in column */
  .menu-button {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #001391;
    flex: 0 0 auto;
    gap: 4px;
    padding: 8px 4px;
  }
  
  .menu-text {
    font-size: 12px;
    font-weight: 500;
    color: #001391;
    line-height: 1;
  }
  
  .menu-icon {
    width: 24px;
    height: 24px;
    color: #001391 !important;
    fill: currentColor !important;
  }
  
  /* Mobile icon wrapper for login icon + text */
  .mobile-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
  }
  
  /* Mobile icon text */
  .mobile-icon-text {
    font-size: 12px;
    font-weight: 500;
    color: #001391;
    line-height: 1;
  }
  
  /* Icon styles */
  .mobile-login-icon .header__icon {
    width: 24px;
    height: 24px;
    color: #001391 !important;
    fill: currentColor !important;
  }
  
  /* Mobile Menu Adjustments */
  .mobile-menu-container {
    width: 100%;
    right: -100%;
    top: 80px;
    height: calc(100vh - 80px);
  }
  
  .mobile-menu-container.active {
    right: 0;
  }
  
  /* Adjust body when menu is open */
  body.menu-open {
    overflow: hidden;
  }
  
  /* Update menu text when open */
  body.menu-open .menu-button .menu-text {
    content: "Cerrar";
  }

  /* Rest of your mobile styles */
  .content {
    margin-top: 100px !important;
    padding: 40px 20px !important;
    margin: 0 10px !important;
  }
  
  .content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  
  .content-text h1 {
    font-size: 32px !important;
    line-height: 1.2;
  }
  
  .content-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
  }
  
  /* Video Section */
  .content-video {
    height: 300px;
  }
  
  /* Swiper/Grid Items */
  .swiper-wrapper {
    flex-direction: column;
    gap: 15px;
  }
  
  .swiper-wrapper li {
    padding: 20px 15px;
  }
  
  .swiper-wrapper img {
    width: 80px;
    height: 80px;
  }
  
  /* Benefits Section */
  .benefits {
    flex-direction: column;
    padding: 60px 20px !important;
    margin: 60px 10px 0 !important;
  }
  
  .benefits-header {
    flex-direction: column;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 30px;
    margin-bottom: 30px;
  }
  
  .benefits-image {
    height: auto;
    width: 100%;
    margin-bottom: 20px;
  }
  
  .benefits-image img {
    max-width: 150px;
  }
  
  .benefits-title h1 {
    font-size: 32px !important;
    line-height: 1.2;
    text-align: center;
  }
  
  .benefits-title p {
    text-align: center;
  }
  
  .benefits-grid {
    gap: 20px;
  }
  
  .benefit-column:not(:last-child) {
    padding-bottom: 20px;
  }
  
  /* Opportunity Grid */
  .opportunity-grid {
    flex-direction: column;
    gap: 20px;
  }
  
  .opportunity-card.horizontal {
    flex-direction: column;
  }
  
  .opportunity-cards-small {
    flex-direction: column;
    gap: 15px;
  }
  
  .opportunity-card.small {
    padding: 20px;
  }
  
  .card-content h3 {
    font-size: 18px !important;
    line-height: 1.3;
  }
  
  /* Digital Grid */
  .digital-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  
  .digital-card {
    height: auto;
    padding: 30px 0;
  }
  
  .digital-card .card-content {
    flex-direction: column;
    height: auto;
  }
  
  .digital-card .card-text {
    padding: 20px;
  }
  
  .digital-card .card-image {
    padding: 20px;
  }
  
  .digital-card .card-image img {
    max-width: 80px;
    transform: scale(1);
  }
  
  /* Hide hover effects on mobile */
  .digital-card::before {
    display: none;
  }
  
  .digital-card:hover .card-image {
    opacity: 1;
    visibility: visible;
  }
  
  .digital-card .description {
    height: auto;
    opacity: 1;
    visibility: visible;
    margin-bottom: 15px;
  }
  
  /* Matters Section */
  .matters-control {
    padding: 0 !important;
  }
  
  .matters-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .matters-card {
    min-height: auto;
  }
  
  .matters-card-content {
    padding: 30px 20px;
  }
  
  .matters-card-image img {
    max-width: 120px;
    height: 120px;
  }
  
  .matters-card-text h3 {
    font-size: 24px !important;
    line-height: 1.3;
  }
  
  /* Help Grid */
  .help-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .help-link {
    padding: 30px 20px;
  }
  
  .help-image img {
    max-width: 100px;
    height: 100px;
  }
  
  .help-card h3 {
    font-size: 24px !important;
  }
  
  /* Footer */
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-content {
    padding: 0 20px !important;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 15px;
    margin: 40px 0;
    text-align: center;
  }
  
  /* Typography Mobile */
  h1 {
    font-size: 32px !important;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 28px !important;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 20px !important;
    line-height: 1.3;
  }
  
  .content-header h2,
  .matters-header h2,
  .help-header h2 {
    font-size: 32px !important;
    line-height: 1.2 !important;
  }
  
  .matters-subtitle {
    font-size: 16px;
    padding: 0 10px;
  }
}

/* Desktop Styles - Show search & buttons, hide mobile login */
@media (min-width: 769px) {
  /* Hide mobile login icon on desktop */
  .mobile-login-icon {
    display: none !important;
  }

  /* Menu button on desktop - icon + text in row */
  .menu-button {
    display: flex !important;
    align-items: center;
    text-decoration: none;
    color: #001391 !important;
    padding: 8px 12px;
    gap: 8px;
  }

  .menu-text {
    font-size: 15px;
    font-weight: 500;
    color: #001391 !important;
    display: inline !important;
  }

  .menu-icon {
    width: 24px;
    height: 24px;
    color: #001391 !important;
    fill: currentColor !important;
    display: inline !important;
  }

  /* Show search icon on desktop */
  .nav-buttons .icon-link:not(.menu-button) {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #001391;
    transition: color 0.3s;
  }

  /* Show desktop nav links */
  .nav-links {
    display: flex !important;
    gap: 30px;
    align-items: center;
  }

  /* Show desktop buttons */
  .nav-buttons .btn {
    display: inline-block !important;
  }
}

/* The rest of your media queries remain the same */
@media (max-width: 480px) {
  /* Extra Small Devices */
  .navbar {
    padding: 12px 15px !important;
  }
  
  .content {
    margin-top: 80px !important;
    padding: 30px 15px !important;
  }
  
  .content-text h1 {
    font-size: 28px !important;
  }
  
  .benefits-title h1 {
    font-size: 28px !important;
  }
  
  .swiper-wrapper img {
    width: 60px;
    height: 60px;
  }
  
  .btn {
    padding: 14px 20px;
    font-size: 14px;
  }
  
  .footer {
    padding: 40px 0 30px;
    margin-top: 60px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .icon-link,
  .mobile-menu-list a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .menu-button {
    padding: 12px;
  }
}

/* Landscape Orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .mobile-menu-container {
    height: calc(100vh - 60px);
    top: 60px;
  }
  
  .mobile-menu-list a {
    padding: 12px 20px;
  }
  
  .content {
    margin-top: 80px !important;
  }
}

/* Ensure menu button has proper colors on both desktop and mobile */
.menu-button {
  color: #001391 !important;
}

.menu-button .menu-icon {
  color: #001391 !important;
  fill: currentColor !important;
}

.menu-button .menu-text {
  color: #001391 !important;
}

/* Hover states */
.menu-button:hover {
  color: #070e46 !important;
}

.menu-button:hover .menu-icon {
  color: #070e46 !important;
}

.menu-button:hover .menu-text {
  color: #070e46 !important;
}