/* ============================================================
   SERVIJURIDICOS — Style Sheet & Design System
   Premium Dark Legal Tech Theme with Gold & Amber Accents
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Colors — Deep Royal Indigo-Navy Core */
  --bg-primary: #080a10;
  --bg-secondary: #0d101a;
  --bg-tertiary: #141724;
  --bg-card: rgba(20, 24, 38, 0.75);
  --bg-glass: rgba(13, 16, 26, 0.7);
  --bg-glass-hover: rgba(20, 26, 42, 0.85);

  /* Brand Colors */
  --primary: #f59e0b; /* Gold / Amber */
  --primary-rgb: 245, 158, 11;
  --primary-hover: #fbbf24;
  --accent: #f97316; /* Warm Orange */
  --accent-rgb: 249, 115, 22;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: var(--primary);

  /* Borders & Glassmorphism */
  --border-subtle: rgba(148, 163, 184, 0.08);
  --border-glass: rgba(245, 158, 11, 0.12);
  --border-hover: rgba(245, 158, 11, 0.3);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #080a10 0%, #0d101a 50%, #291a05 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b, #f97316);
  --gradient-card: linear-gradient(145deg, rgba(20, 24, 38, 0.95), rgba(13, 16, 26, 0.45));

  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 30px rgba(245, 158, 11, 0.15);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-title: 'Outfit', sans-serif;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Dimensions */
  --max-width: 1280px;
  --nav-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--text-primary);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

/* --- Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

/* ============================================================
   TYPOGRAPHY & HEADER
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.section-label::before,
.section-label::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--primary);
  opacity: 0.4;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  font-weight: 800;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-spring);
}

.btn-primary {
  background: var(--gradient-gold);
  color: #080a10; /* Dark contrast */
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-glass);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(245, 158, 11, 0.05);
  transform: translateY(-3px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(8, 10, 16, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom-color: var(--border-glass);
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand .logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: #080a10;
  box-shadow: var(--shadow-gold);
}

.nav-brand .brand-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.nav-brand .brand-text span {
  color: var(--primary);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--gradient-gold);
  color: #080a10 !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-full);
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}
.nav-cta::after {
  display: none !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
}

.nav-back {
  border-left: 1px solid var(--border-subtle);
  padding-left: 1.25rem !important;
  color: var(--text-muted) !important;
  margin-left: 0.5rem;
}
.nav-back:hover {
  color: var(--text-primary) !important;
}
.nav-back::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.65) scale(1.02);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 16, 0.4) 0%,
    rgba(8, 10, 16, 0.7) 60%,
    var(--bg-primary) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding-top: var(--nav-height);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero-badge .pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   NOSOTROS SECTION (Misión, Visión, Objetivos)
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.about-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all var(--transition-slow);
}

.about-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.about-list {
  list-style: none;
  margin-top: 1rem;
}

.about-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}
.about-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* ============================================================
   SERVICIOS SECTION
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   APP SHOWCASE SECTION
   ============================================================ */
.app-section {
  background: var(--bg-secondary);
}

.app-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.app-tagline {
  font-size: 1.2rem;
  color: var(--primary);
  font-family: var(--font-title);
  margin-bottom: 1rem;
}

.app-features {
  list-style: none;
  margin: 1.75rem 0 2.5rem;
}

.app-features li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.app-features li strong {
  color: var(--text-primary);
}

.app-actions {
  display: flex;
  gap: 1rem;
}

/* Mockup Layout */
.app-card-mockup {
  background: #0f121d;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(245, 158, 11, 0.05);
  overflow: hidden;
  position: relative;
}

.mockup-header {
  background: #0b0c12;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-header .dot.red { background: #ef4444; }
.mockup-header .dot.yellow { background: #f59e0b; }
.mockup-header .dot.green { background: #10b981; }

.mockup-title {
  margin-left: 20px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.mockup-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dashboard-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.widget-title {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.88rem;
}

.chat-area {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-bubble {
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  max-width: 85%;
  line-height: 1.4;
}

.chat-bubble.user {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.15);
  color: var(--text-primary);
  align-self: flex-end;
}

.chat-bubble.system {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  align-self: flex-start;
}

.chat-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.82rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mini-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.88rem;
}

.mini-icon {
  font-size: 1.5rem;
}

.mini-text h5 {
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.mini-text p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-slow);
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.blog-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-img {
  transform: scale(1.04);
}

.blog-date {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(8, 10, 16, 0.8);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-primary);
  z-index: 2;
}

.blog-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 10, 16, 0.8) 100%);
  z-index: 1;
}

.blog-body {
  padding: 2rem;
}

.blog-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}

.blog-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-link {
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform var(--transition-fast);
  display: inline-block;
}
.blog-link:hover {
  transform: translateX(5px);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-box {
  display: grid;
  grid-template-columns: 4fr 6fr;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-info-panel {
  background: rgba(245, 158, 11, 0.03);
  border-right: 1px solid var(--border-subtle);
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
}

.contact-info-panel h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-info-panel p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.5rem;
}

.info-details h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.info-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.contact-form-panel {
  padding: 3.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

input, select, textarea {
  background: rgba(8, 10, 16, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
  background: rgba(8, 10, 16, 0.8);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-feedback {
  font-size: 0.88rem;
  text-align: center;
  margin-top: 0.5rem;
  display: none;
}
.form-feedback.success {
  color: #10b981;
  display: block;
}
.form-feedback.error {
  color: #ef4444;
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 4rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}
.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-showcase {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-box {
    grid-template-columns: 1fr;
  }
  .contact-info-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-back {
    border-left: none;
    padding-left: 0 !important;
    margin-left: 0;
  }
  .about-grid,
  .services-grid,
  .blog-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
