/* ============================================================
   AMABILE - Criminal Lawyer Website Stylesheet
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary-dark: #1a1a2e;
  --secondary-dark: #16213e;
  --gold: #c9a84c;
  --gold-light: #d4af37;
  --gold-hover: #e0c068;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --text-dark: #212529;
  --text-light: #e0e0e0;
  --text-muted: #9a9a9a;
  --whatsapp-green: #25D366;
  --whatsapp-dark: #1ebe57;
  --border-subtle: rgba(201, 168, 76, 0.2);
  --card-bg: #0f1a2e;
  --card-bg-hover: #142240;
  --overlay-dark: rgba(26, 26, 46, 0.85);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.15);
  --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.3);
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --section-padding: 100px 0;
  --section-padding-sm: 60px 0;
  --navbar-height: 80px;
}

/* ---------- 1. GENERAL / RESET ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  background-color: var(--primary-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 0.5em;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

a:hover {
  color: var(--gold-hover);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: var(--section-padding);
  position: relative;
}

::selection {
  background: var(--gold);
  color: var(--primary-dark);
}

/* ---------- 2. NAVBAR ---------- */
.navbar {
  padding: 18px 0;
  transition: all var(--transition-base);
  z-index: 1050;
  background: transparent;
}

.navbar.scrolled {
  background: var(--secondary-dark) !important;
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold) !important;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand img {
  height: 45px;
  transition: height var(--transition-base);
}

.navbar.scrolled .navbar-brand img {
  height: 38px;
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 18px !important;
  position: relative;
  transition: color var(--transition-base);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gold) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: 1px solid var(--gold);
  padding: 6px 10px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .btn-gold-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.85rem;
  padding: 6px 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-base);
}

.navbar .btn-gold-outline:hover {
  background: var(--gold);
  color: var(--primary-dark);
}

/* ---------- 3. HERO SECTION ---------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--overlay-dark) 0%,
    var(--secondary-dark) 50%,
    var(--overlay-dark) 100%
  );
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: inline-block;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-title span {
  color: var(--gold);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content [data-aos] {
  animation: hero-fade-up 0.8s ease forwards;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero-scroll-indicator a {
  color: var(--gold);
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-12px); }
  60% { transform: translateX(-50%) translateY(-6px); }
}

/* ---------- 4. ABOUT SECTION ---------- */
.about-section {
  background: var(--secondary-dark);
}

.about-image-wrapper {
  position: relative;
  padding: 15px;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold);
  transform: translate(15px, 15px);
  z-index: 0;
}

.about-image-wrapper img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: grayscale(15%);
  transition: filter var(--transition-base);
}

.about-image-wrapper:hover img {
  filter: grayscale(0%);
}

.about-content {
  padding-left: 2rem;
}

.about-content .lead {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}

.about-qualifications {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.about-qualifications li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.about-qualifications li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--gold);
  font-size: 0.85rem;
}

.about-signature {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold);
  margin-top: 1.5rem;
}

/* ---------- 5. AREAS DE ATUAÇÃO ---------- */
.areas-section {
  background: var(--primary-dark);
}

.area-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.area-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: width var(--transition-base);
}

.area-card:hover {
  transform: translateY(-8px);
  background: var(--card-bg-hover);
  box-shadow: var(--shadow-gold);
  border-color: var(--border-subtle);
}

.area-card:hover::after {
  width: 100%;
}

.area-card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-bg-subtle, rgba(128,0,32,0.1));
  border: 1px solid var(--border-subtle);
  font-size: 1.6rem;
  color: var(--gold);
  transition: all var(--transition-base);
}

.area-card:hover .area-card-icon {
  background: var(--gold);
  color: var(--primary-dark);
  transform: scale(1.1);
}

.area-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: var(--white);
}

.area-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ---------- 6. DIFERENCIAIS ---------- */
.diferenciais-section {
  background: var(--secondary-dark);
}

.diferencial-box {
  text-align: center;
  padding: 2rem 1.5rem;
  transition: all var(--transition-base);
}

.diferencial-box:hover {
  transform: translateY(-5px);
}

.diferencial-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold);
  border: 2px solid var(--border-subtle);
  border-radius: 50%;
  transition: all var(--transition-base);
}

.diferencial-box:hover .diferencial-icon {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.diferencial-counter {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.diferencial-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.diferencial-box h5 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.diferencial-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- 7. TESTIMONIALS ---------- */
.testimonials-section {
  background: var(--primary-dark);
  overflow: hidden;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 2rem;
  position: relative;
  margin: 10px;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
}

.testimonial-stars {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.testimonial-author-info h6 {
  margin-bottom: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

.testimonial-author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.swiper-pagination-bullet {
  background: var(--text-muted);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: var(--gold) !important;
  opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--gold) !important;
}

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

/* ---------- 8. CTA SECTION ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cta-section h2 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--text-light);
}

.btn-whatsapp-lg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--whatsapp-green);
  color: var(--white);
  border: none;
  padding: 16px 40px;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition-base);
  text-decoration: none;
  animation: pulse-green 2s infinite;
}

.btn-whatsapp-lg:hover {
  background: var(--whatsapp-dark);
  color: var(--white);
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  animation: none;
}

.btn-whatsapp-lg i {
  font-size: 1.4rem;
}

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

/* ---------- 9. FAQ ---------- */
.faq-section {
  background: var(--secondary-dark);
}

.faq-section .accordion-item {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
  border-radius: 4px !important;
  overflow: hidden;
}

.faq-section .accordion-button {
  background: var(--card-bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 18px 24px;
  box-shadow: none;
  border: none;
}

.faq-section .accordion-button:not(.collapsed) {
  background: var(--card-bg-hover);
  color: var(--gold);
  box-shadow: none;
}

.faq-section .accordion-button::after {
  filter: invert(1);
  transition: transform var(--transition-base);
}

.faq-section .accordion-button:not(.collapsed)::after {
  filter: invert(72%) sepia(50%) saturate(500%) hue-rotate(10deg);
}

.faq-section .accordion-button:focus {
  box-shadow: none;
  border-color: var(--border-subtle);
}

.faq-section .accordion-body {
  background: var(--card-bg-hover);
  color: var(--text-light);
  padding: 20px 24px;
  font-size: 0.95rem;
  line-height: 1.8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- 10. LOCATION ---------- */
.location-section {
  background: var(--primary-dark);
}

.map-wrapper {
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  height: 400px;
  background: var(--card-bg);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(30%) contrast(1.1);
}

.contact-info-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: all var(--transition-base);
  height: 100%;
}

.contact-info-card:hover {
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-gold);
}

.contact-info-card .icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-bg-subtle, rgba(128,0,32,0.1));
  color: var(--gold);
  font-size: 1.2rem;
}

.contact-info-card h6 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--white);
  font-size: 0.95rem;
}

.contact-info-card p {
  margin-bottom: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- 11. FOOTER ---------- */
.site-footer {
  background: #0d0d1a;
  padding: 60px 0 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

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

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: all var(--transition-base);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(5px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-contact-item i {
  color: var(--gold);
  margin-top: 4px;
  min-width: 16px;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

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

/* ---------- 12. WHATSAPP FLOATING BUTTON ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all var(--transition-base);
  animation: pulse-whatsapp 2s infinite;
  text-decoration: none;
}

.whatsapp-float:hover {
  background: var(--whatsapp-dark);
  color: var(--white);
  transform: scale(1.1);
  animation: none;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- 13. ANIMATIONS ---------- */
[data-aos] {
  transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-dark);
}

.hover-glow:hover {
  box-shadow: var(--shadow-gold);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-up { animation: fadeInUp 0.8s ease forwards; }
.animate-fade-in { animation: fadeIn 0.8s ease forwards; }
.animate-slide-left { animation: slideInLeft 0.8s ease forwards; }
.animate-slide-right { animation: slideInRight 0.8s ease forwards; }

/* ---------- 14. RESPONSIVE ---------- */

/* Large desktops */
@media (min-width: 1400px) {
  .container { max-width: 1200px; }
}

/* Desktop */
@media (max-width: 1199.98px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }
  .hero-title { font-size: 3rem; }
}

/* Tablet landscape */
@media (max-width: 991.98px) {
  :root {
    --section-padding: 70px 0;
    --navbar-height: 70px;
  }

  h1 { font-size: 2.4rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }

  .hero-title { font-size: 2.6rem; }
  .hero-description { font-size: 1rem; }

  .about-content { padding-left: 0; margin-top: 2rem; }

  .navbar-collapse {
    background: var(--secondary-dark);
    backdrop-filter: blur(10px);
    padding: 20px;
    margin-top: 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .navbar-nav .nav-link {
    padding: 10px 0 !important;
  }

  .navbar-nav .nav-link::after {
    left: 0;
    right: auto;
    width: 0;
    transition: width var(--transition-base);
  }

  .navbar-nav .nav-link:hover::after {
    width: 30px;
  }
}

/* Tablet portrait */
@media (max-width: 767.98px) {
  :root {
    --section-padding: 60px 0;
  }

  body { font-size: 15px; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.3rem; }

  .hero-section { min-height: 90vh; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 0.85rem; letter-spacing: 3px; }
  .hero-description { font-size: 0.95rem; }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .about-image-wrapper::before {
    transform: translate(8px, 8px);
  }

  .map-wrapper { height: 300px; }

  .cta-section { padding: 60px 0; }

  .site-footer { text-align: center; }

  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

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

  .footer-description {
    margin-left: auto;
    margin-right: auto;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
  }
}

/* Mobile small */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 50px 0;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.6rem; }

  .hero-title { font-size: 1.9rem; }

  .area-card { padding: 1.5rem; }

  .testimonial-card { padding: 1.5rem; }

  .btn-whatsapp-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .diferencial-counter { font-size: 2.2rem; }
}

/* ---------- 15. UTILITY CLASSES ---------- */
.gold-text {
  color: var(--gold) !important;
}

.gold-text-light {
  color: var(--gold-light) !important;
}

.text-white {
  color: var(--white) !important;
}

.bg-primary-dark {
  background-color: var(--primary-dark) !important;
}

.bg-secondary-dark {
  background-color: var(--secondary-dark) !important;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-title-left {
  text-align: left;
  margin-bottom: 2rem;
}

.section-title-left h2::after {
  margin: 12px 0 0;
}

.btn-gold {
  background: var(--gold);
  color: var(--primary-dark);
  border: 2px solid var(--gold);
  font-weight: 600;
  padding: 12px 32px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-base);
  border-radius: 3px;
}

.btn-gold:hover,
.btn-gold:focus {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  font-weight: 600;
  padding: 12px 32px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-base);
  border-radius: 3px;
}

.btn-gold-outline:hover,
.btn-gold-outline:focus {
  background: var(--gold);
  color: var(--primary-dark);
  box-shadow: var(--shadow-gold);
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: var(--white);
  border: none;
  font-weight: 600;
  padding: 12px 28px;
  font-size: 0.95rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-base);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  background: var(--whatsapp-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.separator {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem 0;
}

.separator-center {
  margin-left: auto;
  margin-right: auto;
}

.card-dark {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.border-gold {
  border-color: var(--gold) !important;
}

.shadow-gold {
  box-shadow: var(--shadow-gold) !important;
}

.letter-spacing-sm { letter-spacing: 0.5px; }
.letter-spacing-md { letter-spacing: 1px; }
.letter-spacing-lg { letter-spacing: 2px; }

.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

/* ---------- 16. INDEX PAGE SPECIFIC ---------- */
.bg-dark-section {
  background: var(--primary-dark);
}

.bg-dark-card {
  background: var(--card-bg) !important;
}

.py-section {
  padding: var(--section-padding);
}

.bg-gold-subtle {
  background: var(--accent-bg-subtle, rgba(128,0,32,0.1)) !important;
}

.text-gold {
  color: var(--gold) !important;
}

.ls-wide {
  letter-spacing: 2px;
}

.icon-circle {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-bg-subtle, rgba(128,0,32,0.1));
  border: 1px solid var(--border-subtle);
  color: var(--gold);
  transition: all var(--transition-base);
}

.hover-lift:hover .icon-circle {
  background: var(--gold);
  color: var(--primary-dark);
  transform: scale(1.1);
}

.about-image-frame {
  position: relative;
  padding: 15px;
}

.about-image-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold);
  transform: translate(15px, 15px);
  z-index: 0;
  border-radius: .5rem;
}

.about-image-placeholder {
  position: relative;
  z-index: 1;
}

.about-image-placeholder .image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.differential-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all var(--transition-base);
}

.differential-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-color: var(--gold);
}

.contact-card {
  background: #fff;
  border: 1px solid #e9ecef;
  transition: all var(--transition-base);
  color: var(--text-dark);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-color: var(--gold);
  color: var(--text-dark);
}

.map-container {
  border: 2px solid var(--border-subtle);
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.pulse-animation {
  animation: pulse-green 2s infinite;
}

.section-title-light h2 {
  color: var(--white) !important;
}

.btn-whatsapp-nav {
  background: var(--whatsapp-green);
  color: var(--white) !important;
  border: none;
  font-weight: 600;
  padding: 8px 20px;
  font-size: 0.85rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-whatsapp-nav:hover {
  background: var(--whatsapp-dark);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.counter-box {
  padding: 1rem;
}

/* Light section text colors */
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5 {
  color: var(--text-dark);
}

.bg-light .section-title h2 {
  color: var(--text-dark);
}

/* Preloader override for Bootstrap spinner */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* FAQ in dark section */
.bg-dark-section .accordion-item {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.bg-dark-section .accordion-button {
  background: var(--card-bg);
  color: var(--white);
  font-weight: 600;
}

.bg-dark-section .accordion-button:not(.collapsed) {
  background: var(--card-bg-hover);
  color: var(--gold);
  box-shadow: none;
}

.bg-dark-section .accordion-button::after {
  filter: invert(1);
}

.bg-dark-section .accordion-button:not(.collapsed)::after {
  filter: invert(72%) sepia(50%) saturate(500%) hue-rotate(10deg);
}

.bg-dark-section .accordion-body {
  background: var(--card-bg-hover);
  color: var(--text-light);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* ---------- 17. ADMIN STYLES ---------- */
body.admin-page {
  background: var(--light-gray);
  color: var(--text-dark);
}

body.admin-page .content-wrapper {
  min-height: 100vh;
}

body.admin-page .card {
  border: none;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

body.admin-page .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--primary-dark);
}

body.admin-page .btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

body.admin-page .table th {
  border-top: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

body.admin-page .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
  background: var(--gold);
  color: var(--primary-dark);
}

/* ---------- Preloader (optional) ---------- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--primary-dark);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

@media (max-width: 767.98px) {
  .back-to-top {
    right: 20px;
    bottom: 82px;
    width: 38px;
    height: 38px;
  }
}
