/* ═══════════════════════════════════════════════════════
   Soy Viajero — Servicios de Visas
   Paleta: Azul Marino (#0a1f3f) + Dorado (#c9a84c)
   ═══════════════════════════════════════════════════════ */

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

:root {
  --navy:       #0a1f3f;
  --navy-light: #132a50;
  --navy-mid:   #1c3665;
  --gold:       #c9a84c;
  --gold-light: #e0c46a;
  --gold-dark:  #a88a2e;
  --cream:      #faf8f2;
  --white:      #ffffff;
  --gray-100:   #f7f7f7;
  --gray-200:   #e9e9e9;
  --gray-400:   #a0a0a0;
  --gray-600:   #666666;
  --gray-800:   #333333;
  --gray-900:   #1a1a1a;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --shadow-sm:  0 1px 3px rgba(10,31,63,0.08);
  --shadow-md:  0 4px 14px rgba(10,31,63,0.10);
  --shadow-lg:  0 10px 40px rgba(10,31,63,0.12);
  --radius:     10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
p { text-align: justify; }
.service-card p { text-align: justify; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--cream); }

/* ─── Typography ──────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy); line-height: 1.3; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 { position: relative; display: inline-block; }
.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-title p {
  color: var(--gray-600);
  max-width: 600px;
  margin: 12px auto 0;
  font-size: 1.05rem;
}

/* ─── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-outline-dark {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-dark:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #25D366;
  color: white;
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #1da851;
  color: white;
  transform: translateY(-2px);
}

/* ─── Navbar ──────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 31, 63, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  transition: all var(--transition);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
  text-decoration: none;
  margin-bottom: -60px;
  white-space: nowrap;
}
.navbar .logo img {
  height: 128px;
  width: 128px;
  background: white;
  border-radius: 50%;
  padding: 12px;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 0 0 4px rgba(255,255,255,0.25);
}
.navbar .logo span { display: none; }
@media (min-width: 480px) { .navbar .logo span { display: inline; } }
.navbar .logo small {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
}
@media (max-width: 600px) { .navbar .logo small { display: none; } }

.nav-links { display: none; gap: 28px; align-items: center; list-style: none; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.lang-switcher { display: flex; gap: 4px; margin-left: 12px; }
.lang-switcher a {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.lang-switcher a:hover,
.lang-switcher a.active { color: var(--gold); background: rgba(201,168,76,0.1); }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 24px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 1rem;
}
.mobile-nav a:last-child { border-bottom: none; }

/* ─── Hero ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 40%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 130px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.04) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--gold-light);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }
.hero p {
  color: rgba(255,255,255,0.7);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  max-width: 700px;
  margin: 0 auto 36px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── Services Grid ──────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

/* Secondary cards (positions 4-6) in navy tone */
.service-card-secondary {
  background: var(--cream);
  border-color: #d5dce6;
}
.service-card-secondary::before {
  background: linear-gradient(90deg, var(--navy-mid), var(--navy-light));
}
.service-card-secondary:hover {
  border-color: transparent;
}
.service-card-secondary .service-icon {
  background: rgba(26, 54, 101, 0.08);
}
.service-card-secondary .service-icon svg {
  stroke: var(--navy-mid);
}
.service-card-secondary h3 a { color: var(--navy-mid); }
.service-card-secondary h3 a:hover { color: var(--navy-mid); }
.service-card-secondary .card-footer a { color: var(--navy-mid); }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(201,168,76,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-icon svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.service-card h3 { font-size: 1.2rem; }
.service-card h3 a { color: var(--navy); }
.service-card h3 a:hover { color: var(--gold); }
.service-card p {
  color: var(--gray-600);
  font-size: 0.92rem;
  margin-top: 8px;
  line-height: 1.6;
}
.service-card .card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service-card .card-footer a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
}
.service-card .card-footer a:hover { color: var(--gold); }

/* ─── Disclaimer Banner ──────────────────────────── */
.disclaimer-banner {
  background: linear-gradient(135deg, #fff8e1, #fffdf0);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin: 40px 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.disclaimer-banner svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--gold-dark); }
.disclaimer-banner p {
  font-size: 0.9rem;
  color: var(--gray-800);
  line-height: 1.6;
}
.disclaimer-banner strong { color: var(--navy); }

/* ─── About Section ───────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-content h2 { margin-bottom: 20px; }
.about-content p {
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.8;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}
.stat-label { font-size: 0.85rem; color: var(--gray-600); }

.about-image {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
}
.about-image svg { width: 120px; height: 120px; opacity: 0.15; }

/* ─── Blog Preview ────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-card-content { padding: 24px; }
.blog-card .category-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-dark);
  background: rgba(201,168,76,0.1);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.blog-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-card h3 a { color: var(--navy); }
.blog-card h3 a:hover { color: var(--gold); }
.blog-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.6;
}
.blog-card .blog-meta {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 16px;
}

/* ─── Contact Section ─────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form { background: var(--white); padding: 32px; border-radius: var(--radius); border: 1px solid var(--gray-200); }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-textarea { resize: vertical; min-height: 120px; }

.contact-info { padding: 32px; }
.contact-info h3 { margin-bottom: 20px; }
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-info-item svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-info-item strong { display: block; font-size: 0.85rem; color: var(--gray-600); }
.contact-info-item span { color: var(--gray-800); }

/* ─── Footer ───────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.footer p { font-size: 0.9rem; line-height: 1.7; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer ul a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--gold); background: rgba(201,168,76,0.1); }
.footer-social svg { width: 18px; height: 18px; color: rgba(255,255,255,0.6); }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ─── WhatsApp Float ──────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transition: all var(--transition);
  animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.5); }
}

/* ─── Service Detail Page ─────────────────────────── */
.service-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 120px 0 60px;
  text-align: center;
}
.service-hero h1 { color: var(--white); }
.service-hero p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 16px auto 0; }

.process-steps { counter-reset: step; }
.process-step {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.process-step:last-child { margin-bottom: 0; }
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.step-content h4 { margin-bottom: 4px; }
.step-content p { color: var(--gray-600); font-size: 0.92rem; }

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  background: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--navy);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--cream); }
.faq-question svg { width: 20px; height: 20px; transition: transform var(--transition); color: var(--gold); }
.faq-question.open svg { transform: rotate(180deg); }
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition);
  color: var(--gray-600);
  font-size: 0.92rem;
}
.faq-answer.open { padding: 0 20px 20px; max-height: 500px; }

/* ─── Blog Detail ─────────────────────────────────── */
.blog-content { max-width: 800px; margin: 0 auto; }
.blog-content p { margin-bottom: 16px; line-height: 1.8; color: var(--gray-800); }
.blog-content h2, .blog-content h3 { margin-top: 32px; }

/* ─── Page Header ─────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 120px 0 60px;
  text-align: center;
}
.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 12px auto 0; }

/* ─── Breadcrumbs ────────────────────────────────── */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--gray-400);
}
.breadcrumbs a { color: var(--gray-600); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { color: var(--gray-800); }

/* ─── Pagination ──────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span {
  padding: 8px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--gray-800);
  transition: all var(--transition);
}
.pagination a:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}
.pagination .current {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* ─── Messages / Alerts ──────────────────────────── */
.alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.92rem;
}
.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

/* ─── Utilities ──────────────────────────────────── */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-32 { margin-bottom: 32px; }
