/* ==========================================================================
   A&A SEG - Estilos customizados
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Poppins', sans-serif;
}

/* ---------- Header ---------- */
#site-header {
  background: transparent;
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(10, 26, 82, 0.08);
}

#site-header.scrolled .nav-link,
#site-header.scrolled a[href="#hero-section"] span.font-heading,
#site-header.scrolled #menu-toggle,
#site-header.scrolled a[href="tel:+5500000000"] {
  color: #0e2371;
}

#site-header:not(.scrolled) .nav-link {
  color: #ffffff;
}

.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #ff9d00;
  transition: width 0.25s ease;
}

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

#menu-toggle {
  transition: color 0.25s ease, background 0.25s ease;
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

/* ---------- Hero pattern ---------- */
.hero-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.4) 1px, transparent 0);
  background-size: 28px 28px;
}

.hero-card-tilt {
  transform: perspective(1000px) rotateY(-2deg);
}

.float-card {
  animation: floatY 4s ease-in-out infinite;
}

.float-card-alt {
  animation: floatY 4s ease-in-out infinite;
  animation-delay: 0.6s;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2456f0, #173dc7);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 0.9rem;
  box-shadow: 0 10px 25px -8px rgba(23, 61, 199, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(23, 61, 199, 0.7);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffb800, #ff9d00);
  color: #0a1a52;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.85rem;
  border-radius: 0.9rem;
  box-shadow: 0 10px 25px -8px rgba(255, 157, 0, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(255, 157, 0, 0.7);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.9);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0a1a52;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 0.9rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-dark:hover {
  transform: translateY(-2px);
  background: #122f9c;
}

/* ---------- Section helpers ---------- */
.section-tag {
  display: inline-block;
  background: rgba(36, 86, 240, 0.08);
  color: #173dc7;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 1.25;
  color: #0e2371;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.4rem;
  }
}

/* ---------- Pillar cards ---------- */
.pillar-card {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 1.5rem;
  padding: 2.25rem 1.75rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.15);
}

.pillar-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

/* ---------- Service cards ---------- */
.service-card {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -12px rgba(15, 23, 42, 0.14);
  border-color: #d9e6ff;
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: rgba(36, 86, 240, 0.08);
  color: #173dc7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* ---------- Contact ---------- */
.contact-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  background: #ffffff;
  color: #173dc7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #173dc7;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.social-icon:hover {
  background: #ff9d00;
  color: #0a1a52;
  transform: translateY(-3px);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #1e293b;
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #2456f0;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(36, 86, 240, 0.12);
}

/* ---------- Footer ---------- */
.footer-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-link {
  color: #cbd5f5;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffb800;
}

/* ---------- Back to top ---------- */
#back-to-top {
  display: none;
}

#back-to-top.show {
  display: flex;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 767px) {
  .hero-card-tilt {
    transform: none;
  }

  .float-card,
  .float-card-alt {
    animation: none;
  }
}
