/* ═══════════════════════════════════════════════════════════
   DESPACHO MARCO TULIO RUIZ CRUZ
   style.css — Custom styles over Bootstrap 5
   Paleta: #0F528C (azul) · #BF800A (dorado) · #8AA1BF (azul claro)
           #D9AE5F (dorado claro) · #F2F2F2 (fondo)
════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --blue-deep:    #0F528C;
  --blue-light:   #8AA1BF;
  --blue-dark:    #0a3a63;
  --gold:         #BF800A;
  --gold-light:   #D9AE5F;
  --gold-lighter: #f0d898;
  --bg-light:     #F2F2F2;
  --white:        #ffffff;
  --text-dark:    #1a1a2e;
  --text-mid:     #3d3d4e;
  --text-muted:   #6b7280;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', sans-serif;

  --shadow-sm:    0 2px 8px rgba(15,82,140,0.08);
  --shadow-md:    0 8px 32px rgba(15,82,140,0.12);
  --shadow-lg:    0 16px 48px rgba(15,82,140,0.18);

  --transition:   all 0.3s ease;
  --radius:       4px;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.25;
}

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

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

.section-padding { padding: 96px 0; }

/* ── Utility ────────────────────────────────────────────── */
.text-gold  { color: var(--gold) !important; }
.bg-navy    { background-color: var(--blue-dark); }
.bg-light-custom { background-color: var(--bg-light); }

/* ── Buttons ────────────────────────────────────────────── */
.btn-gold {
  background-color: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-gold:hover, .btn-gold:focus {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(191,128,10,0.35);
}

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
  background-color: var(--blue-dark);
  padding: 8px 0;
  font-size: 0.82rem;
}
.topbar a {
  color: var(--blue-light);
  text-decoration: none;
  transition: var(--transition);
}
.topbar a:hover { color: var(--gold-light); }
.topbar .fa-solid, .topbar .fa-brands { margin-right: 6px; font-size: 0.75rem; }
.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(138,161,191,0.4);
  border-radius: 50%;
  font-size: 0.75rem;
  margin-right: 0;
}

/* ── Navbar ─────────────────────────────────────────────── */
#mainNav {
  background-color: var(--blue-deep);
  padding: 0;
  transition: var(--transition);
  border-bottom: 3px solid var(--gold);
  z-index: 1030;
}
#mainNav.scrolled {
  background-color: var(--blue-dark);
  box-shadow: var(--shadow-md);
}
.navbar-logo {
  height: 56px;
  width: auto;
  padding: 8px 0;
  filter: brightness(0) invert(1); /* logo blanco sobre fondo azul */
}
.navbar-brand { padding: 0; }

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1.25rem 0.9rem !important;
  position: relative;
  transition: var(--transition);
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gold-light) !important;
}
.navbar-nav .nav-link:hover::after { width: 100%; }

/* ── Hero ───────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--blue-dark);

  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center center;
}

/* Textura sutil */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
  background: linear-gradient(to bottom, rgba(10,58,99,0.75) 0%, rgba(10,58,99,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 0.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-content .d-flex {
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* ── Pillars ────────────────────────────────────────────── */
.pillars-section {
  background-color: var(--white);
  padding: 0;
  position: relative;
  z-index: 1;
}
.pillars-row {
  border-bottom: 1px solid rgba(15,82,140,0.08);
}
.pillar-item {
  padding: 48px 20px;
  text-align: center;
  border-right: 1px solid rgba(15,82,140,0.08);
}
.pillar-item:last-child { border-right: none; }
.pillar-center {
  background-color: var(--blue-deep);
}
.pillar-center .pillar-number,
.pillar-center .pillar-label,
.pillar-center .pillar-icon { color: var(--white) !important; }
.pillar-center .pillar-icon i { color: var(--gold-light); }

.pillar-inner { display: flex; flex-direction: column; align-items: center; }
.pillar-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.pillar-icon i {
  font-size: 1.8rem;
  color: var(--gold);
}
.pillar-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1;
  margin-bottom: 8px;
}
.pillar-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 767px) {
  .pillar-item { border-right: none; border-bottom: 1px solid rgba(15,82,140,0.08); }
  .pillar-item:last-child { border-bottom: none; }
}

/* ── Section Headers ────────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Services ───────────────────────────────────────────── */
.services-section {
  background-color: var(--bg-light);
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  height: 100%;
  border: 1px solid rgba(15,82,140,0.06);
  border-top: 3px solid transparent;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  border-top-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service-card--featured {
  border-top-color: var(--blue-deep);
  background: linear-gradient(135deg, #fff 80%, rgba(15,82,140,0.04) 100%);
}
.service-card--featured:hover {
  border-top-color: var(--gold);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(191,128,10,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--gold);
}
.service-icon i {
  font-size: 1.3rem;
  color: var(--gold);
  transition: var(--transition);
}
.service-card:hover .service-icon i { color: var(--white); }

.service-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.service-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ── About ──────────────────────────────────────────────── */
.about-section {
  background-color: var(--white);
}
.about-photo-wrapper {
  position: relative;
}
.about-photo-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.about-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.photo-placeholder-box {
  background: linear-gradient(135deg, var(--bg-light) 0%, rgba(138,161,191,0.2) 100%);
  border: 2px dashed rgba(15,82,140,0.2);
  border-radius: var(--radius);
  height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--blue-light);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.photo-placeholder-box i {
  font-size: 4rem;
  color: var(--blue-light);
  opacity: 0.4;
}
.about-photo-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 80%;
  height: 80%;
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  z-index: 0;
}
.about-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 20px 0 28px;
}
.about-text {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}
.about-credential {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(15,82,140,0.08);
  padding-top: 16px;
}

/* ── CTA Band ───────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-deep) 100%);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border: 2px solid rgba(255,255,255,0.04);
  border-radius: 50%;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(191,128,10,0.1);
  border-radius: 50%;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 0.5rem;
}
.cta-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  margin: 0;
}

/* ── Contact ────────────────────────────────────────────── */
.contact-section {
  background-color: var(--bg-light);
}
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
}
.contact-form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--blue-dark);
  margin-bottom: 4px;
}
.contact-form-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.form-label {
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.form-control, .form-select {
  border: 1px solid rgba(15,82,140,0.2);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px rgba(15,82,140,0.1);
}
.form-control::placeholder { color: rgba(107,114,128,0.6); }

.contact-info-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--blue-dark);
  margin-bottom: 24px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 40px;
  height: 40px;
  background: rgba(15,82,140,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon i {
  color: var(--blue-deep);
  font-size: 0.9rem;
}
.contact-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-info-value {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 2px;
}
a.contact-info-value:hover { color: var(--gold); }

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15,82,140,0.1);
}
.map-wrapper iframe { display: block; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background-color: var(--blue-dark);
  padding: 56px 0 0;
}
.footer-logo {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.footer-nav {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-nav a {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
}
.footer-nav a:hover { color: var(--gold-light); }
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-3px);
}
.footer-divider {
  border-color: rgba(255,255,255,0.08);
  margin: 40px 0 24px;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 24px;
}
.footer-copy a {
  color: rgba(255,255,255,0.5);
}
.footer-copy a:hover { color: var(--gold-light); }

/* ── Back to Top ────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(191,128,10,0.4);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--blue-deep);
  box-shadow: 0 4px 16px rgba(15,82,140,0.4);
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 991px) {
  .section-padding { padding: 72px 0; }
  .navbar-collapse { background: var(--blue-dark); padding: 16px; }
  .navbar-nav .nav-link { padding: 0.75rem 0.5rem !important; }
  .navbar-nav .nav-link::after { display: none; }
  .contact-form-wrapper { padding: 28px 20px; }
}

@media (max-width: 575px) {
  .section-padding { padding: 56px 0; }
  .hero-section { min-height: 80vh; }
  .topbar-contact { gap: 12px; }
  .about-photo-accent { display: none; }
}
