/* base.css - Core styles and components */

/* Navigation */
.nav-link {
  color: var(--text-light);
  font-weight: 500;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.95rem;
}

body.dark-mode .nav-link {
  color: var(--text-dark);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.theme-toggle {
  background: transparent;
  border: 2px solid var(--border-light);
  color: var(--text-light);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-mode .theme-toggle {
  border-color: var(--border-dark);
  color: var(--text-dark);
}

.theme-toggle:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: rotate(180deg);
}

/* Mobile Menu */
.mobile-menu-toggle {
  width: 42px;
  height: 42px;
  background: transparent;
  border: 2px solid var(--border-light);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1001;
}

body.dark-mode .mobile-menu-toggle {
  border-color: var(--border-dark);
}

.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

body.dark-mode .mobile-menu-toggle span {
  background: var(--text-dark);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--card-light);
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 100px 2rem 2rem;
}

body.dark-mode .mobile-menu-overlay {
  background: var(--card-dark);
}

.mobile-menu-overlay.active {
  right: 0;
}

.mobile-menu-overlay .nav-link {
  font-size: 1.5rem;
  padding: 1rem 0;
  margin: 0;
  border-bottom: 1px solid var(--border-light);
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .mobile-menu-overlay .nav-link {
  border-bottom-color: var(--border-dark);
}

.mobile-menu-overlay.active .nav-link {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu-overlay.active .nav-link:nth-child(1) {
  transition-delay: 0.1s;
}
.mobile-menu-overlay.active .nav-link:nth-child(2) {
  transition-delay: 0.15s;
}
.mobile-menu-overlay.active .nav-link:nth-child(3) {
  transition-delay: 0.2s;
}
.mobile-menu-overlay.active .nav-link:nth-child(4) {
  transition-delay: 0.25s;
}
.mobile-menu-overlay.active .nav-link:nth-child(5) {
  transition-delay: 0.3s;
}

/* Buttons */
.btn-primary-custom {
  background: white;
  color: var(--primary-color);
  padding: 16px 42px;
  border-radius: 100px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  font-size: 1.05rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.btn-primary-custom:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.btn-whatsapp {
  background: white;
  color: #25d366;
  padding: 18px 45px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1.2rem;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.btn-whatsapp:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Sections Base */
section {
  padding: 100px 0;
}

section:nth-child(even) {
  background-color: var(--bg-light);
}

body.dark-mode section:nth-child(even) {
  background-color: var(--bg-dark);
}

section:nth-child(odd):not(.banner):not(.cta-whatsapp) {
  background-color: var(--card-light);
}

body.dark-mode section:nth-child(odd):not(.banner):not(.cta-whatsapp) {
  background-color: var(--card-dark);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
  padding-bottom: 20px;
  letter-spacing: -1px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 100px;
}

/* Cards */
.service-card {
  background-color: var(--card-light);
  border-radius: 25px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s ease;
  border: 2px solid var(--border-light);
  height: 100%;
}

body.dark-mode .service-card {
  background-color: var(--card-dark);
  border-color: var(--border-dark);
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.service-icon {
  font-size: 3.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.service-card h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Contact Items */
.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background-color: var(--card-light);
  border-radius: 20px;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  border: 2px solid var(--border-light);
}

body.dark-mode .contact-item {
  background-color: var(--card-dark);
  border-color: var(--border-dark);
}

.contact-item:hover {
  transform: translateX(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.contact-icon {
  font-size: 2rem;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  border-radius: 20px;
  flex-shrink: 0;
}

.contact-info h5 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.contact-info a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.05rem;
}

body.dark-mode .contact-info a {
  color: var(--text-dark);
}

.contact-info a:hover {
  color: var(--primary-color);
}

/* Accordion */
.accordion-item {
  border: 2px solid var(--border-light);
  margin-bottom: 1rem;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card-light);
  transition: all 0.3s ease;
}

body.dark-mode .accordion-item {
  border-color: var(--border-dark);
  background-color: var(--card-dark);
}

.accordion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.accordion-button {
  background-color: transparent;
  color: var(--text-light);
  font-weight: 600;
  padding: 1.5rem;
  font-size: 1.1rem;
}

body.dark-mode .accordion-button {
  color: var(--text-dark);
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-body {
  padding: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Footer */
footer {
  background-color: var(--text-light);
  color: white;
  padding: 4rem 0 2rem;
}

body.dark-mode footer {
  background-color: #000000;
}

.footer-content {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-contact-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .navbar-nav {
    display: none;
  }

  section {
    padding: 60px 0;
  }
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }

  .mobile-menu-overlay {
    display: none;
  }
}

@media (max-width: 767px) {
  .footer-content {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

footer .footer-contact-link {
  a {
    color: white;
    text-decoration: none;
    font-size: 1.05rem;
  }

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

a.whatsapp {
  width: 50px;
  height: 50px;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 90px;
  right: 10px;
  background-color: #45ca5b;
  color: #fff;
  z-index: 99999;
  box-shadow: 0 0 5px 5px rgba(3, 60, 45, 0.1);
  transition: 400ms ease-in-out;
}

a.whatsapp:hover {
  background-color: rgba(3, 60, 45, 1);
  box-shadow: 0 0 5px 9px rgba(3, 60, 45, 0.1);
}

a.whatsapp svg {
  color: #fff;
  font-size: 28px;
  width: 24px;
  height: 24px;
  transition: 400ms ease-in-out;
}

a.whatsapp:hover svg {
  color: #45ca5b;
  filter: inherit;
}

@media (max-width: 768px) {
  a.whatsapp {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
}
