@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #d97706;
  --accent-hover: #b45309;
  --background: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #334155;
  --text-dark: #0f172a;
  --text-light: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Layout Sections */
section {
  padding: 3.5rem 0;
}

/* Page Banner */
.page-banner {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.98) 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 10rem 0 6rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(217, 119, 6, 0.15), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.page-banner-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-banner h1 {
  font-size: 3rem;
  color: #fff !important;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  font-weight: 800;
}

.page-banner p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.92) !important;
  margin-bottom: 0;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

header.scrolled {
  background-color: rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition);
}

header.scrolled .header-container {
  height: 70px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  display: flex;
  flex-direction: column;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-top: -2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

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

.nav-cta {
  background-color: var(--accent);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

.nav-cta:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(217, 119, 6, 0.4);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  position: absolute;
  transition: var(--transition);
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 11px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-dark:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
  height: 64px;
  width: 64px;
  object-fit: contain;
  align-self: flex-start;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand .logo-text {
  color: #fff;
}

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

.footer-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 0.15rem;
}

.footer-socials a:hover {
  color: var(--accent) !important;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--accent);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Floating WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: var(--transition);
  animation: pulse-green 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-chat {
  width: 330px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 15px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-chat.show {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.whatsapp-chat-header {
  background-color: #075e54;
  color: #fff;
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.whatsapp-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  cursor: pointer;
}

.whatsapp-close-btn:hover {
  color: #fff;
}

.whatsapp-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  position: relative;
}

.whatsapp-avatar::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background-color: var(--success);
  border-radius: 50%;
  border: 2px solid #075e54;
}

.whatsapp-operator-info h5 {
  color: #fff;
  font-size: 0.95rem;
}

.whatsapp-operator-info span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.whatsapp-chat-body {
  background-color: #ece5dd;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.whatsapp-message {
  background-color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 8px;
  font-size: 0.85rem;
  color: #333;
  max-width: 85%;
  position: relative;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.whatsapp-message::after {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent #fff transparent transparent;
}

.whatsapp-chat-footer {
  padding: 1rem;
  background-color: #fff;
}

.whatsapp-chat-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #25d366;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
}

.whatsapp-chat-link:hover {
  background-color: #128c7e;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-chat-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Animations */
.fade-in-up {
  animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Grid Breakpoints */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 2rem;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .whatsapp-widget {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-chat {
    width: 290px;
  }
}

/* ==========================================================================
   Shared Form Styles (Modern & High-Converting)
   ========================================================================== */
.contact-form-wrapper {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  align-self: start;
}

.contact-form-wrapper:hover {
  border-color: rgba(217, 119, 6, 0.15);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background-color: var(--background);
  border-radius: 8px;
  color: var(--text-dark);
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent);
  background-color: var(--surface);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Spinner for AJAX Form Button */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   WhatsApp Interactive Mockup Input
   ========================================================================== */
.whatsapp-input-container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 0.25rem 0.25rem 0.25rem 1rem;
  transition: var(--transition);
}

.whatsapp-input-container:focus-within {
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

#wa-chat-input {
  flex: 1;
  border: none;
  background: none;
  font-size: 0.85rem;
  color: var(--text-dark);
  outline: none;
  padding: 0.5rem 0;
  width: 100%;
}

#wa-chat-input::placeholder {
  color: var(--text-light);
}

#wa-chat-send-btn {
  width: 36px;
  height: 36px;
  background-color: #25d366;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  padding: 0;
}

#wa-chat-send-btn:hover {
  background-color: #128c7e;
  transform: scale(1.05);
}

#wa-chat-send-btn svg {
  width: 16px;
  height: 16px;
  color: #fff;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* ==========================================================================
   Swiper Custom Pagination & Navigation Styling
   ========================================================================== */
.swiper-pagination-bullet {
  background: var(--text-light);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: var(--accent) !important;
  opacity: 1 !important;
  width: 20px !important;
  border-radius: 4px !important;
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--accent) !important;
  background-color: var(--surface);
  border: 1px solid var(--border);
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 1.1rem !important;
  font-weight: 800;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  transform: scale(1.05);
}

/* ==========================================================================
   Accordion FAQs & Deudas (Global Accordion System)
   ========================================================================== */
.accordion {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item.open {
  border-color: rgba(217, 119, 6, 0.3);
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: var(--surface-alt);
}

.accordion-icon {
  width: 28px;
  height: 28px;
  background-color: #0c63e4; /* Elegant blue background */
  color: #fff !important;
  border-radius: 50%;
  padding: 4px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(12, 99, 228, 0.2);
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  background-color: var(--accent); /* Changes color on open */
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}



