/* ============================================
   AUDITSA - Global Stylesheet
   Paleta: Morado #9B2F8E · Blanco · Negro
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --purple:        #9B2F8E;
  --purple-dark:   #7a2070;
  --purple-deeper: #5c1856;
  --purple-light:  #b84dab;
  --purple-pale:   #f5eaf4;
  --purple-pale2:  #ede0ec;
  --black:         #0e0e0e;
  --black-soft:    #1a1a1a;
  --white:         #ffffff;
  --off-white:     #faf7fa;
  --gray-100:      #f0eaf0;
  --gray-200:      #e2d6e2;
  --gray-400:      #b8a0b6;
  --gray-600:      #7a5e78;
  --gray-800:      #3d2a3c;
  --text-dark:     #0e0e0e;
  --text-body:     #3d2a3c;
  --shadow-sm:     0 2px 12px rgba(155,47,142,0.08);
  --shadow-md:     0 8px 32px rgba(155,47,142,0.14);
  --shadow-lg:     0 20px 60px rgba(155,47,142,0.22);
  --radius-sm:     6px;
  --radius-md:     14px;
  --radius-lg:     24px;
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
  --nav-height:    76px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-dark); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Utility ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section--gray { background: var(--off-white); }
.section--dark { background: var(--black); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
  display: block;
}
.section--dark .section-label { color: var(--purple-light); }

.section-header { margin-bottom: 56px; }
.section-header--center { text-align: center; }
.section-header p { color: var(--gray-600); font-size: 1.05rem; margin-top: 14px; max-width: 580px; }
.section-header--center p { margin-left: auto; margin-right: auto; }

.divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  border-radius: 2px;
  margin: 16px 0 0;
}
.section-header--center .divider { margin: 16px auto 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn-primary { background: var(--purple); color: var(--white); box-shadow: 0 4px 20px rgba(155,47,142,0.35); }
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(155,47,142,0.45); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--purple); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.btn-white:hover { background: var(--purple-pale); transform: translateY(-2px); }

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(155,47,142,0.1);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.navbar-logo { display: flex; align-items: center; text-decoration: none; }
.navbar-logo img { height: 48px; width: auto; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--purple); background: var(--purple-pale); }
.nav-links a.active { color: var(--purple); font-weight: 600; }
.nav-cta { background: var(--purple) !important; color: var(--white) !important; padding: 9px 20px !important; border-radius: 50px !important; }
.nav-cta:hover { background: var(--purple-dark) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; border-radius: 8px; transition: background var(--transition); }
.nav-toggle:hover { background: var(--gray-100); }
.nav-toggle span { width: 22px; height: 2px; background: var(--black); border-radius: 2px; transition: all var(--transition); display: block; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Page Hero ---- */
.page-hero {
  padding: calc(var(--nav-height) + 60px) 0 70px;
  background: linear-gradient(135deg, var(--black) 0%, #2a0d27 60%, var(--purple-deeper) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(155,47,142,0.08);
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -80px; left: -80px;
  width: 350px; height: 350px; border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-top: 12px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: 0.7rem; }

/* ---- Cards ---- */
.card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; transition: all var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ---- Footer ---- */
.footer { background: var(--black); color: rgba(255,255,255,0.7); padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo-img { height: 44px; width: auto; object-fit: contain; margin-bottom: 20px; }
.footer-desc { font-size: 0.9rem; line-height: 1.75; margin-bottom: 24px; color: rgba(255,255,255,0.5); }
.footer-socials { display: flex; gap: 10px; }
.footer-social-link {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(155,47,142,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  transition: all var(--transition);
}
.footer-social-link:hover { background: var(--purple); color: white; transform: translateY(-2px); }
.footer-col h5 {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--purple-light); margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.9rem; color: rgba(255,255,255,0.55);
  transition: color var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.footer-links a::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--purple); flex-shrink: 0;
}
.footer-links a:hover { color: white; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px; font-size: 0.9rem; color: rgba(255,255,255,0.6);
}
.footer-contact-item i { color: var(--purple-light); width: 16px; margin-top: 2px; flex-shrink: 0; }
.footer-hours {
  background: rgba(155,47,142,0.12);
  border-radius: var(--radius-sm); padding: 16px; margin-top: 16px;
  font-size: 0.85rem; border: 1px solid rgba(155,47,142,0.2);
}
.footer-hours p { margin-bottom: 4px; color: rgba(255,255,255,0.5); }
.footer-hours strong { color: white; }
.footer-bottom {
  padding: 24px 0; display: flex; align-items: center;
  justify-content: space-between; font-size: 0.82rem; color: rgba(255,255,255,0.28);
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.5rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: all var(--transition);
  animation: pulse-green 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 6px 36px rgba(37,211,102,0.65), 0 0 0 8px rgba(37,211,102,0.12); }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 768px) {
  :root { --nav-height: 68px; }
  .section { padding: 70px 0; }
  .nav-links {
    display: none; position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: white; flex-direction: column;
    padding: 20px 24px 28px; gap: 4px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md); align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 16px; }
  .nav-cta { margin-top: 8px; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer { padding-top: 56px; }
}
@media (max-width: 480px) { .container { padding: 0 18px; } h1 { font-size: 2rem; } }

/* ---- Animations ---- */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: none; }
.fade-in { opacity: 0; transition: opacity 0.6s ease; }
.fade-in.visible { opacity: 1; }
