/*
Theme Name: Abogados Villa Córdoba
Theme URI: https://www.abogadosvillacordoba.com
Author: Abogados Villa Córdoba
Author URI: https://www.abogadosvillacordoba.com
Description: Tema personalizado para el despacho de abogados especializado en Derecho Migratorio y Extranjería.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: avc-theme
*/

/* ===== CUSTOM CSS ===== */

* { box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; }
h1, h2, h3, .font-display { font-family: 'Playfair Display', serif; }

/* Tailwind CDN fallbacks for custom colors */
.bg-ink-deep { background-color: #0d0a04 !important; }
.bg-ink { background-color: #1a1208 !important; }
.bg-parchment { background-color: #faf7f0; }
.bg-parchment-dark { background-color: #f0ebe0; }
.text-ink { color: #1a1208; }
.text-gold { color: #c9a227; }
.text-slate-warm { color: #4a4035; }
.text-slate-mid { color: #7a6e5f; }
.text-slate-light { color: #b5a99a; }
.border-gold { border-color: #c9a227; }
.bg-gold { background-color: #c9a227; }

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

.gradient-text {
  background: linear-gradient(135deg, #c9a227 0%, #e2bb45 50%, #c9a227 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-bg {
  background: linear-gradient(145deg, #0d0a04 0%, #1a1208 40%, #2a1a08 70%, #1a0f06 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 800px 600px at 20% 30%, rgba(201,162,39,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 80% 70%, rgba(201,162,39,0.05) 0%, transparent 50%);
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,162,39,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,39,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
}

.cta-dark {
  background: linear-gradient(145deg, #0d0a04 0%, #1a1208 40%, #2a1a08 100%);
}

.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(201,162,39,0.15), 0 8px 16px rgba(0,0,0,0.08);
  border-color: rgba(201,162,39,0.4);
}

.btn-primary {
  background: linear-gradient(135deg, #a8841a, #c9a227, #e2bb45);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201,162,39,0.3);
}
.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(201,162,39,0.45);
}

.btn-secondary {
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
}

.ornament {
  color: #c9a227;
  opacity: 0.5;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(201,162,39,0.1);
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a8841a;
}

.divider-ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
}
.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,0.4), transparent);
}

.testimonial-card {
  position: relative;
  background: white;
  border: 1px solid #e8e0d0;
  border-radius: 12px;
  padding: 28px;
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  border-color: rgba(201,162,39,0.4);
  box-shadow: 0 12px 30px rgba(201,162,39,0.1);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -16px;
  left: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: #c9a227;
  opacity: 0.25;
  line-height: 1;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #c9a227;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.step-line {
  position: absolute;
  top: 32px;
  left: calc(50% + 32px);
  right: calc(-50% + 32px);
  height: 1px;
  background: linear-gradient(90deg, #c9a227, rgba(201,162,39,0.2));
}

nav a { transition: color 0.2s ease; }
nav a:hover { color: #c9a227; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 64px;
  background: white;
  z-index: 40;
  padding: 24px;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu.open { display: flex; }

select option { background: #1a1208; color: #fff; }

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 25px rgba(37,211,102,0.7); }
}
#whatsapp-float { animation: whatsapp-pulse 2s ease-in-out infinite; }

@media (max-width: 768px) {
  .step-line { display: none; }
}

/* ===== PAGE & SINGLE TEMPLATES ===== */

.avc-page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.avc-page-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1208;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.avc-page-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1208;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.avc-page-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1208;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.avc-page-content p {
  color: #4a4035;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.avc-page-content a {
  color: #c9a227;
  text-decoration: underline;
  transition: color 0.2s;
}
.avc-page-content a:hover {
  color: #a8841a;
}

.avc-page-content ul,
.avc-page-content ol {
  color: #4a4035;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.avc-page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.avc-page-content blockquote {
  border-left: 3px solid #c9a227;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: #4a4035;
  font-style: italic;
}

.avc-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}

/* ===== SINGLE (ARTICLE) SPECIFIC ===== */

.avc-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 2rem;
  color: #7a6e5f;
  font-size: 0.875rem;
}

.avc-article-meta .separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b5a99a;
}

.avc-article-featured-img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 2.5rem;
}

/* ===== BLOG INDEX ===== */

.avc-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1152px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.avc-blog-card {
  background: white;
  border: 1px solid #e8e0d0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.avc-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(201,162,39,0.15);
  border-color: rgba(201,162,39,0.4);
}

.avc-blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.avc-blog-card-body {
  padding: 20px;
}

.avc-blog-card-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1208;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.avc-blog-card-body h2 a {
  color: inherit;
  text-decoration: none;
}
.avc-blog-card-body h2 a:hover {
  color: #c9a227;
}

.avc-blog-card-body p {
  color: #4a4035;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.avc-blog-card-body .read-more {
  color: #c9a227;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.avc-blog-card-body .read-more:hover {
  gap: 8px;
}
