/* Layout Styles - Estilos específicos del layout principal */

/* Newsletter Footer Styles */
.footer-newsletter .newsletter-form .input-group {
  display: flex;
  gap: 0;
}

.footer-newsletter .newsletter-form .form-control {
  border-radius: 10px 0 0 10px;
  border: 2px solid #e9ecef;
  padding: 12px 16px;
}

.footer-newsletter .newsletter-form .btn {
  border-radius: 0 10px 10px 0;
  padding: 12px 20px;
  background: #e91e63;
  border: 2px solid #e91e63;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-newsletter .newsletter-form .btn:hover {
  background: #c2185b;
  border-color: #c2185b;
}

.footer-newsletter .newsletter-form .form-control:focus {
  border-color: #e91e63;
  box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.25);
}

/* Main content spacing for fixed header */
.main {
  padding-top: 80px;
}

@media (max-width: 1199px) {
  .main {
    padding-top: 70px;
  }
}

@media (max-width: 768px) {
  .main {
    padding-top: 60px;
  }
}

/* Mobile Navigation Fix */
.mobile-nav-toggle {
  display: none;
}

@media (max-width: 1199px) {
  .header {
    padding: 10px 0;
    height: 60px;
  }

  .header .container-fluid {
    height: 100%;
  }

  .logo img {
    max-height: 40px;
    width: auto;
  }

  .mobile-nav-toggle {
    display: block;
    position: relative;
    z-index: 9999;
    color: var(--nav-color);
    font-size: 24px;
    cursor: pointer;
    line-height: 0;
    transition: 0.5s;
    border: none;
    background: none;
    padding: 8px;
    margin-left: 15px;
    order: 3;
  }

  .navmenu ul {
    display: none;
  }

  /* Estilos del botón movidos a responsive-nav.css */
  /*
  .btn-getstarted {
    order: 2;
    margin-left: auto;
    margin-right: 15px;
    font-size: 14px;
    padding: 8px 16px;
  }
  */

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: fixed;
    top: 15px;
    right: 15px;
    font-size: 28px;
    z-index: 10000;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.9);
    transition: 0.3s;
    z-index: 9998;
  }

  .mobile-nav-active .navmenu > ul {
    display: block;
    position: absolute;
    top: 60px;
    right: 15px;
    bottom: 15px;
    left: 15px;
    padding: 20px 0;
    background-color: #fff;
    overflow-y: auto;
    transition: 0.3s;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }

  .mobile-nav-active .navmenu ul li {
    padding: 0;
    margin: 0;
  }

  .mobile-nav-active .navmenu ul li a {
    padding: 15px 25px;
    font-size: 16px;
    color: #333;
    border: none;
    border-radius: 0;
    margin: 0;
    display: block;
    transition: all 0.3s ease;
  }

  .mobile-nav-active .navmenu ul li a:hover,
  .mobile-nav-active .navmenu ul li a:focus,
  .mobile-nav-active .navmenu ul li a.active {
    color: var(--accent-color);
    background: rgba(65, 84, 241, 0.1);
    padding-left: 35px;
  }
}

/* Mobile specific improvements */
@media (max-width: 768px) {
  .header {
    height: 55px;
    padding: 8px 0;
  }

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

  .mobile-nav-toggle {
    font-size: 22px;
    padding: 6px;
  }

  /* Estilos responsive del botón movidos a responsive-nav.css */
  /*
  .btn-getstarted {
    font-size: 13px;
    padding: 6px 12px;
    margin-right: 10px;
  }
  */

  .mobile-nav-active .navmenu > ul {
    top: 55px;
    right: 10px;
    left: 10px;
    bottom: 10px;
    padding: 15px 0;
  }

  .mobile-nav-active .navmenu ul li a {
    padding: 12px 20px;
    font-size: 15px;
  }
}

/* Additional mobile nav improvements */
@media (max-width: 1199px) {
  .mobile-nav-toggle:hover {
    color: var(--accent-color);
    transform: scale(1.1);
  }

  .mobile-nav-toggle:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
  }
}

/* Footer Styles */
.footer {
  /* background: #f8f9fa; */
  color: var(--default-color);
  padding: 60px 0 0;
}

.footer-top {
  padding-bottom: 40px;
}

.footer-section {
  margin-bottom: 30px;
}

.footer-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.footer-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-icon i {
  color: white;
  font-size: 18px;
}

.footer-content h4 {
  color: var(--heading-color);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-content p {
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.4;
}

.footer-logo {
  margin-bottom: 15px;
}

.footer-logo-img {
  max-height: 50px;
  width: auto;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-link {
  width: 35px;
  height: 35px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--default-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.footer-newsletter-section {
  background: white;
  padding: 30px 0;
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}

.footer-newsletter-section h4 {
  color: var(--heading-color);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.footer-newsletter-section p {
  color: var(--default-color);
  font-size: 14px;
  margin-bottom: 0;
}

.footer-bottom {
  background: white;
  padding: 20px 0;
}

.developer-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dev-logo {
  width: 40px;
  height: 40px;
  background: var(--heading-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dev-logo i {
  color: white;
  font-size: 20px;
}

.dev-content {
  display: flex;
  flex-direction: column;
}

.dev-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading-color);
}

.dev-title {
  font-size: 10px;
  color: var(--default-color);
  letter-spacing: 0.5px;
}

.copyright {
  font-size: 14px;
  color: var(--default-color);
}

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

  .footer-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-icon {
    align-self: center;
  }

  .developer-info {
    justify-content: center;
    margin-bottom: 15px;
  }

  .footer-bottom .text-end {
    text-align: center !important;
  }
}
