/* ============================================
   RESPONSIVE MOBILE FIXES FOR SEDI.PE
   Add this to your existing style.css or load separately
   ============================================ */

/* ============================================
   MOBILE MENU BUTTON & NAVIGATION
   ============================================ */

.mobile-menu-toggle {
  display: none;
  position: relative;
  z-index: 1001;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.mobile-menu-toggle i {
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: var(--accent-color);
  transform: scale(1.05);
}

/* Show mobile toggle on small screens */
@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hide desktop navigation */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 80px 20px 20px;
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 999;
    display: block !important; /* Override the display: none !important */
  }

  .nav-menu.active {
    right: 0;
  }

  /* Mobile menu styles */
  .nav-menu > ul {
    flex-direction: column;
    gap: 0;
  }

  .nav-menu > ul > li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu a {
    padding: 15px 10px;
    font-size: 14px;
  }

  /* Mobile dropdown styles */
  .nav-menu .drop-down ul {
    position: static;
    box-shadow: none;
    border-radius: 0;
    border-top: none;
    border-left: 3px solid var(--secondary-color);
    margin: 0 0 0 15px;
    background: var(--light-bg);
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-menu .drop-down > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    transition: transform 0.3s ease;
  }

  .nav-menu .drop-down.active > a::after {
    transform: rotate(180deg);
  }

  .nav-menu .drop-down ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-menu .drop-down.active ul {
    max-height: 500px;
  }

  /* Header buttons responsive */
  #header .d-none.d-lg-flex {
    display: none !important;
  }

  /* Mobile overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }
}

/* ============================================
   IMPROVED RESPONSIVE TYPOGRAPHY
   ============================================ */

@media (max-width: 768px) {
  /* Better font sizes for mobile */
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }

  p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Section titles mobile */
  .section-title h2 {
    font-size: 1.8rem;
  }

  .section-title p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }
}

/* ============================================
   HERO SECTION MOBILE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  #hero {
    height: auto;
    min-height: 500px;
    margin-top: 65px;
  }

  #hero .carousel-content {
    padding: 40px 20px;
  }

  #hero .carousel-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  #hero .carousel-content h2 i {
    font-size: 1.5rem;
    display: block;
    margin: 0 0 10px 0 !important;
  }

  #hero .carousel-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
  }

  #hero .btn-get-started {
    padding: 12px 24px;
    font-size: 13px;
    white-space: normal;
    text-align: center;
  }

  /* Carousel controls mobile */
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
  }

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

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

  .carousel-indicators {
    bottom: 10px;
  }

  .carousel-indicators li {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 480px) {
  #hero {
    min-height: 450px;
  }

  #hero .carousel-content h2 {
    font-size: 1.5rem;
  }

  #hero .carousel-content p {
    font-size: 0.9rem;
  }

  #hero .btn-get-started {
    padding: 10px 20px;
    font-size: 12px;
  }
}

/* ============================================
   SERVICES SECTION MOBILE
   ============================================ */

@media (max-width: 768px) {
  .servicios .icon-box {
    padding: 25px 20px;
    margin-bottom: 20px;
  }

  .servicios .icon-box .icon {
    margin-bottom: 15px;
  }

  .servicios .icon-box .icon i {
    font-size: 40px;
  }

  .servicios .icon-box h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .servicios .icon-box p {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
}

/* ============================================
   PRICING SECTION MOBILE
   ============================================ */

@media (max-width: 768px) {
  .precios .box {
    margin-bottom: 30px;
    padding: 30px 20px;
  }

  .precios .box h3 {
    font-size: 1.2rem;
  }

  .precios .box h4 {
    font-size: 2.2rem;
  }

  .precios .box h4 sup {
    font-size: 1.2rem;
  }

  .precios .box ul li {
    font-size: 0.9rem;
    padding: 10px 0;
  }
}

/* ============================================
   BUTTONS MOBILE
   ============================================ */

@media (max-width: 768px) {
  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .btn-lg {
    padding: 12px 28px;
    font-size: 14px;
  }

  .btn-sm {
    padding: 8px 16px;
    font-size: 11px;
  }
}

/* ============================================
   BREADCRUMBS MOBILE
   ============================================ */

@media (max-width: 768px) {
  #breadcrumbs {
    padding: 25px 0;
    margin-top: 65px;
  }

  #breadcrumbs h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  #breadcrumbs ol {
    font-size: 0.85rem;
  }

  .breadcrumbs .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
  }
}

/* ============================================
   FOOTER MOBILE
   ============================================ */

@media (max-width: 768px) {
  #footer {
    padding: 40px 0 20px;
  }

  #footer .footer-top {
    padding-bottom: 30px;
    margin-bottom: 30px;
  }

  #footer .footer-contact,
  #footer .footer-links,
  #footer .footer-newsletter {
    margin-bottom: 30px;
  }

  #footer h3,
  #footer h4 {
    font-size: 1.1rem;
  }

  #footer ul li {
    margin-bottom: 8px;
  }

  #footer .social-links {
    justify-content: center;
    margin-top: 15px;
  }

  #footer .footer-newsletter form input[type="email"] {
    width: 100%;
    margin-bottom: 10px;
  }

  #footer .footer-newsletter form input[type="submit"] {
    width: 100%;
  }
}

/* ============================================
   CONTACT PAGE MOBILE
   ============================================ */

@media (max-width: 768px) {
  .info-wrap .info {
    margin-bottom: 20px;
    padding: 25px 20px;
  }

  .info-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .info h4 {
    font-size: 1rem;
  }

  .info p {
    font-size: 0.85rem;
  }

  .whatsapp-banner {
    padding: 25px 20px;
    text-align: center;
  }

  .whatsapp-banner h4 {
    font-size: 1.2rem;
  }

  .whatsapp-banner p {
    font-size: 0.9rem;
  }

  .whatsapp-banner .col-md-8,
  .whatsapp-banner .col-md-4 {
    margin-bottom: 15px;
  }

  .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .contact-form-wrapper {
    padding: 25px 20px;
  }

  .contact-form-wrapper h3 {
    font-size: 1.2rem;
  }

  .map-section iframe {
    height: 300px !important;
  }
}

/* ============================================
   ABOUT SECTION MOBILE
   ============================================ */

@media (max-width: 768px) {
  .about-us .col-lg-6 {
    margin-bottom: 30px;
  }

  .about-us h3 {
    font-size: 1.2rem;
  }

  .about-us p {
    font-size: 0.9rem;
  }

  .about-us i {
    font-size: 28px !important;
  }
}

/* ============================================
   UTILITY CLASSES FOR MOBILE
   ============================================ */

@media (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }

  .mobile-block {
    display: block !important;
  }

  .mobile-text-center {
    text-align: center !important;
  }

  .mobile-mb-3 {
    margin-bottom: 1rem !important;
  }

  .mobile-p-2 {
    padding: 0.5rem !important;
  }
}

/* ============================================
   TOUCH FRIENDLY IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  /* Larger touch targets */
  a,
  button,
  .btn,
  .nav-menu a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Better spacing for touch */
  .servicios .icon-box,
  .precios .box,
  .faq-list li {
    margin-bottom: 20px;
  }

  /* Prevent text selection on double tap */
  .btn,
  .nav-menu a,
  .carousel-control-prev,
  .carousel-control-next {
    -webkit-user-select: none;
    user-select: none;
  }
}

/* ============================================
   LANDSCAPE PHONE ORIENTATION
   ============================================ */

@media (max-width: 768px) and (orientation: landscape) {
  #hero {
    height: auto;
    min-height: 400px;
  }

  #hero .carousel-content h2 {
    font-size: 1.5rem;
  }

  #hero .carousel-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
}

/* ============================================
   BACK TO TOP MOBILE
   ============================================ */

@media (max-width: 768px) {
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
    font-size: 16px;
  }
}
