/* ========================================
   Alejandro Rebolledo y Asociados
   Static CSS — Navy Blue + Gold theme
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --primary: #1B3A5C;
  --primary-light: rgba(27,58,92,0.05);
  --primary-10: rgba(27,58,92,0.1);
  --primary-20: rgba(27,58,92,0.2);
  --primary-50: rgba(27,58,92,0.5);
  --accent: #C5A55A;
  --accent-90: rgba(197,165,90,0.9);
  --foreground: #1a2332;
  --muted: #6b7b8d;
  --muted-bg: #f4f5f7;
  --border: #e5e7eb;
  --white: #ffffff;
  --dark-bg: #0f1b2d;
  --dark-section: hsl(218,56%,12%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.03), 0 1px 3px 0 rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --radius: 0.5rem;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

::selection { background: rgba(27,58,92,0.15); color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.25s; }

/* Typography */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.75rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1rem; }

.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }
.text-white { color: #fff; }
.font-mono { font-family: var(--font-mono); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media(min-width:640px){ .container { padding: 0 1.5rem; } }

/* Header */
.site-header {
  position: sticky; top: 18px; z-index: 50;padding-bottom: 20px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner { display: flex; height: 64px; align-items: center; justify-content: space-between; }
.site-header .logo img { height: 100px; width: 120px; height:auto; object-fit: contain; }
.desktop-nav { display: none; align-items: center; gap: 2px; }
@media(min-width:1024px){ .desktop-nav { display: flex; } }
.desktop-nav a {
  padding: 0.5rem 0.75rem; font-size: 0.875rem; border-radius: var(--radius);
  color: var(--muted); transition: all 0.25s;
}
.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary); background: var(--primary-light); font-weight: 500; }
.header-phone { display: none; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--muted); }
.header-phone:hover { color: var(--primary); }
@media(min-width:768px){ .header-phone { display: flex; } }
.mobile-toggle { display: flex; padding: 0.5rem; border-radius: var(--radius); border: none; background: none; cursor: pointer; }
.mobile-toggle svg { width: 20px; height: 20px; }
@media(min-width:1024px){ .mobile-toggle { display: none; } }
.mobile-nav {
  display: none; border-top: 1px solid var(--border); background: #fff; padding: 1rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 0.625rem 0.75rem; font-size: 0.875rem; border-radius: var(--radius); color: var(--muted); }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--primary); background: var(--primary-light); }

/* Hero sections */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg .overlay { position: absolute; inset: 0; background: rgba(10,22,40,0.82); }
.hero .hero-content { position: relative; padding: 6rem 0; }
@media(min-width:768px){ .hero .hero-content { padding: 9rem 0; } }
.hero-gradient {
  background: radial-gradient(ellipse 60% 50% at 50% -10%, rgba(27,58,92,0.08), transparent),
              radial-gradient(ellipse 40% 40% at 80% 0%, rgba(197,165,90,0.06), transparent);
}
.hero-simple { padding: 4rem 0 3rem; }
@media(min-width:768px){ .hero-simple { padding: 6rem 0 4rem; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 500;
  border-radius: var(--radius); transition: all 0.25s; border: none; cursor: pointer;
  text-align: center; justify-content: center;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-90); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { border: 1px solid rgba(255,255,255,0.3); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-dark { border: 1px solid var(--border); color: var(--foreground); background: transparent; }
.btn-outline-dark:hover { background: var(--muted-bg); }
.btn-green { background: #16a34a; color: #fff; }
.btn-green:hover { background: #15803d; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.75rem; }

/* Cards */
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-img { position: relative; aspect-ratio: 16/9; background: var(--muted-bg); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-img .gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.35), transparent); }
.card-body { padding: 1.5rem; }

/* Tags / Badges */
.tag {
  display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 9999px;
}
.tag-primary { background: var(--primary-light); color: var(--primary); }
.tag-muted { background: var(--muted-bg); color: var(--muted); }
.tag-white { background: var(--primary); color: #fff; }
.tag-accent { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 500; }

/* Sections */
.section { padding: 5rem 0; }
.section-muted { background: rgba(244,245,247,0.5); }
.section-dark { background: var(--dark-section); color: #e5e5e5; }
.section-dark h2, .section-dark h3 { color: #fff; }
.text-center { text-align: center; }

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
.grid-7 { grid-template-columns: repeat(2, 1fr); }
@media(min-width:640px){ .grid-3 { grid-template-columns: repeat(2,1fr); } .grid-7 { grid-template-columns: repeat(3,1fr); } }
@media(min-width:768px){ .grid-2 { grid-template-columns: repeat(2,1fr); } .grid-4 { grid-template-columns: repeat(4,1fr); } .grid-7 { grid-template-columns: repeat(4,1fr); } }
@media(min-width:1024px){ .grid-3 { grid-template-columns: repeat(3,1fr); } .grid-7 { grid-template-columns: repeat(7,1fr); } }

/* Two-column layout */
.two-col { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media(min-width:768px){ .two-col { grid-template-columns: 1fr 1fr; } }

/* Animated counter */
.counter-box { text-align: center; padding: 1.5rem; }
.counter-value { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.counter-label { font-size: 0.875rem; font-weight: 600; margin-top: 0.25rem; }
.counter-sub { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }

/* Testimonials */
.testimonial-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; height: 100%; box-shadow: var(--shadow-sm); }
.testimonial-card .quote-icon { width: 2rem; height: 2rem; color: var(--primary-20); margin-bottom: 1rem; }
.testimonial-card .text { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
.testimonial-card .name { font-size: 0.875rem; font-weight: 600; }
.testimonial-card .role, .testimonial-card .location { font-size: 0.75rem; color: var(--muted); }

/* Book grid */
.book-link { display: block; }
.book-link:hover .book-title { color: #fff; }
.book-cover { position: relative; aspect-ratio: 2/3; border-radius: 4px; overflow: hidden; background: #1f2937; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.book-link:hover .book-cover img { transform: scale(1.05); }
.book-title { font-size: 0.75rem; color: #d1d5db; margin-top: 0.5rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-year { font-size: 10px; color: #6b7280; }

/* Footer */
.site-footer { background: var(--dark-section); color: #9ca3af; }
.site-footer a { color: #9ca3af; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media(min-width:768px){ .footer-grid { grid-template-columns: repeat(3,1fr); } }
.footer-brand-box { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.footer-brand-icon { width: 2rem; height: 2rem; border-radius: 4px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.875rem; font-weight: 700; font-family: var(--font-display); }
.footer-links a { display: block; font-size: 0.875rem; padding: 0.25rem 0; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; margin-bottom: 0.75rem; }
.footer-contact-item svg { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; color: #6b7280; }
.disclaimer { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; }
.disclaimer p { font-size: 0.75rem; color: #6b7280; line-height: 1.7; }

/* WhatsApp floating */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

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

/* Service detail card */
.service-detail { border-radius: var(--radius); overflow: hidden; }
.service-detail-even { background: rgba(244,245,247,0.5); }
.service-detail-odd { background: #fff; box-shadow: var(--shadow-sm); }
.service-detail .banner { position: relative; aspect-ratio: 21/7; background: var(--muted-bg); overflow: hidden; }
.service-detail .banner img { width: 100%; height: 100%; object-fit: cover; }
.service-detail .banner .gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.5), transparent); }
.service-detail .content { padding: 2rem; }
.service-icon-box { width: 3rem; height: 3rem; border-radius: var(--radius); background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--primary); }
.detail-list { list-style: none; }
.detail-list li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.875rem; color: var(--muted); }
.detail-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-top: 8px; flex-shrink: 0; }

/* Cases page */
.case-detail { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.case-cols { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media(min-width:768px){ .case-cols { grid-template-columns: repeat(3,1fr); } }
.case-label { font-size: 10px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }

/* Compliance areas */
.compliance-card {
  background: #fff; border-radius: var(--radius); padding: 1.5rem;
  height: 100%; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s;
}
.compliance-card:hover { box-shadow: var(--shadow-md); }
.compliance-num { font-size: 0.75rem; font-family: var(--font-mono); color: var(--primary-50); }

/* Framework card */
.framework-card { background: #fff; border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); height: 100%; }
.framework-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }

/* Methodology */
.method-step .step-num { font-size: 2.5rem; font-weight: 700; font-family: var(--font-display); color: var(--primary-20); margin-bottom: 0.5rem; }

/* News layout */
.news-article { border-radius: var(--radius); overflow: hidden; }
.news-flex { display: flex; flex-direction: column; }
@media(min-width:768px){ .news-flex { flex-direction: row; } }
.news-flex .news-img { position: relative; aspect-ratio: 16/9; background: var(--muted-bg); overflow: hidden; flex-shrink: 0; }
@media(min-width:768px){ .news-flex .news-img { aspect-ratio: auto; width: 16rem; min-height: 180px; } }
.news-flex .news-img img { width: 100%; height: 100%; object-fit: cover; }

/* Publicaciones page book card */
.pub-card { display: flex; flex-direction: column; height: 100%; }
.pub-card .cover-wrap { padding: 1.5rem; display: flex; justify-content: center; background: rgba(244,245,247,0.5); }
.pub-card .cover-box { position: relative; width: 10rem; aspect-ratio: 2/3; border-radius: 4px; overflow: hidden; background: var(--muted-bg); }
.pub-card .cover-box img { width: 100%; height: 100%; object-fit: cover; }
.pub-card .info { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

/* Contact info boxes */
.contact-info-box { background: rgba(244,245,247,0.5); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.contact-info-box h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }

/* Contact layout */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media(min-width:1024px){ .contact-grid { grid-template-columns: 2fr 1fr; } }

/* Form */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 500; margin-bottom: 0.25rem; color: var(--foreground); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.625rem 0.75rem; font-size: 0.875rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; color: var(--foreground); font-family: var(--font-body);
  transition: border-color 0.25s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media(min-width:640px){ .form-row { grid-template-columns: 1fr 1fr; } }

/* Filter buttons */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 2rem 0; border-bottom: 1px solid var(--border); }
.filter-btn {
  padding: 0.5rem 1rem; font-size: 0.75rem; border-radius: 9999px;
  border: none; cursor: pointer; transition: all 0.25s;
  background: var(--muted-bg); color: var(--muted);
}
.filter-btn:hover { background: rgba(244,245,247,0.8); }
.filter-btn.active { background: var(--primary); color: #fff; }

/* Glass cards (compliance hero) */
.glass-card {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 1.25rem;
}
.glass-card .big-num { font-size: 1.5rem; font-weight: 700; font-family: var(--font-display); color: var(--accent); }
.glass-card p { font-size: 0.75rem; color: #d1d5db; margin-top: 0.25rem; }

/* Alert banner */
.alert-banner { display: flex; align-items: flex-start; gap: 0.75rem; }
.alert-icon { color: #fbbf24; flex-shrink: 0; margin-top: 2px; }

/* Success message */
.success-msg { text-align: center; padding: 2rem; }
.success-msg svg { width: 3rem; height: 3rem; color: #16a34a; margin: 0 auto 1rem; }

/* Responsive utilities */
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.inline-flex { display: inline-flex; }
.leading-relaxed { line-height: 1.7; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-base { font-size: 1rem; }
.hidden { display: none; }
@media(min-width:640px){ .sm-flex-row { flex-direction: row; } }
.flex-col { flex-direction: column; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.shrink-0 { flex-shrink: 0; }

/* Aspect ratio helper */
.aspect-4-3 { aspect-ratio: 4/3; }
.aspect-16-9 { aspect-ratio: 16/9; }
.aspect-16-10 { aspect-ratio: 16/10; }
.aspect-21-9 { aspect-ratio: 21/9; }
.aspect-21-7 { aspect-ratio: 21/7; }
.aspect-2-3 { aspect-ratio: 2/3; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.rounded-lg { border-radius: var(--radius); }
