/* ============================================================
   J&A Contadores - Asesores
   Diseño: Moderno · Corporativo · Limpio (Estilo Agencia Miami)
   ============================================================ */

   @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@400;500;600&display=swap');

   :root {
     /* Paleta J&A Oficial */
     --charcoal:   #1b1b1b;
     --gray-dark:  #545454;
     --gray:       #5a5c5e;
     --gray-light: #8b8986;
     --gold-dark:  #946329;
     --gold:       #b28639;
     --gold-light: #d3bb70;
     --gold-pale:  #dbd3b6;
     --cream:      #f6f6f1;
     --white:      #ffffff;
   
     --border:     rgba(27,27,27,0.08);
     --border-gold:rgba(178,134,57,0.2);
   
     /* Tipografía */
     --font-title: 'Outfit', system-ui, sans-serif;
     --font-body:  'Inter', system-ui, sans-serif;
   
     /* Sombras y Radios (Estilo Moderno/Squarespace) */
     --radius-sm:  6px;
     --radius-md:  16px;
     --radius-pill: 50px;
     --shadow-sm:  0 4px 12px rgba(27,27,27,0.04);
     --shadow-md:  0 12px 32px rgba(27,27,27,0.06);
     --shadow-lg:  0 20px 48px rgba(178,134,57,0.08); /* Sombra dorada cálida */
     --t:          0.3s ease;
   }
   
   *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
   html { scroll-behavior: smooth; font-size: 16px; }
   body {
     font-family: var(--font-body);
     background: var(--cream);
     color: var(--charcoal);
     line-height: 1.6;
     overflow-x: hidden;
     -webkit-font-smoothing: antialiased;
   }
   a { text-decoration: none; color: inherit; transition: color var(--t); }
   ul { list-style: none; }
   img { max-width: 100%; height: auto; display: block; }
   
   /* ── Layout & Sections ───────────────── */
   .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 5%; }
   .container-sm { max-width: 800px; margin: 0 auto; }
   .section { padding: 100px 0; }
   .section-sm { padding: 60px 0; }
   .bg-white { background: var(--white); }
   .bg-cream { background: var(--cream); }
   .bg-gold-pale { background: var(--gold-pale); }
   .bg-charcoal { background: var(--charcoal); color: var(--white); }
   
   /* ── Typography ──────────────────────── */
   h1, h2, h3, h4, .title-font {
     font-family: var(--font-title);
     font-weight: 600;
     line-height: 1.15;
     letter-spacing: -0.01em;
   }
   h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; margin-bottom: 24px; }
   h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
   h3 { font-size: 1.5rem; margin-bottom: 12px; }
   h4 { font-size: 1.1rem; margin-bottom: 8px; }
   p { color: inherit; font-size: 1rem; margin-bottom: 16px; opacity: 0.85; }
   .lead { font-size: 1.2rem; font-weight: 400; opacity: 0.8; margin-bottom: 32px; }
   
   .eyebrow {
     display: inline-block;
     font-family: var(--font-body);
     font-size: 0.75rem;
     font-weight: 600;
     letter-spacing: 0.15em;
     text-transform: uppercase;
     color: var(--gold-dark);
     margin-bottom: 16px;
   }
   .text-center { text-align: center; }
   
   /* ── Components (Botones, Tarjetas) ──── */
   .btn {
     display: inline-flex; align-items: center; justify-content: center;
     gap: 8px;
     font-family: var(--font-title);
     font-size: 0.95rem; font-weight: 600;
     padding: 16px 32px;
     border-radius: var(--radius-pill); /* Estilo moderno y amigable */
     border: 2px solid transparent;
     cursor: pointer;
     transition: all var(--t);
     text-align: center;
   }
   .btn:hover { transform: translateY(-2px); }
   .btn-primary { background: var(--gold); color: var(--white); }
   .btn-primary:hover { background: var(--gold-dark); box-shadow: 0 8px 24px rgba(178,134,57,0.3); }
   .btn-charcoal { background: var(--charcoal); color: var(--white); }
   .btn-charcoal:hover { background: var(--gray-dark); box-shadow: 0 8px 24px rgba(27,27,27,0.2); }
   .btn-outline { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
   .btn-outline:hover { background: var(--charcoal); color: var(--white); }
   .btn-outline-white { background: transparent; border-color: var(--white); color: var(--white); }
   .btn-outline-white:hover { background: var(--white); color: var(--charcoal); }
   
   .card {
     background: var(--white);
     border-radius: var(--radius-md);
     padding: 40px 32px;
     box-shadow: var(--shadow-sm);
     transition: transform var(--t), box-shadow var(--t);
     height: 100%;
     display: flex; flex-direction: column; align-items: flex-start;
   }
   .card:hover {
     transform: translateY(-4px);
     box-shadow: var(--shadow-md);
   }
   .card-icon {
     width: 56px; height: 56px;
     background: var(--cream);
     border-radius: 12px;
     display: flex; align-items: center; justify-content: center;
     color: var(--gold-dark);
     margin-bottom: 24px;
   }
   .card-icon svg { width: 28px; height: 28px; }
   
   .badge {
     display: inline-block;
     font-size: 0.72rem; font-weight: 600;
     letter-spacing: 0.08em; text-transform: uppercase;
     background: var(--gold-pale); color: var(--gold-dark);
     padding: 6px 12px; border-radius: 4px;
     margin-bottom: 16px;
   }
   
   /* ── Header & Navbar ─────────────────── */
   .header {
     position: fixed; top: 0; left: 0; width: 100%;
     height: 80px; z-index: 999;
     background: var(--white);
     display: flex; align-items: center;
     transition: box-shadow var(--t), height var(--t);
   }
   .header.scrolled { box-shadow: var(--shadow-sm); height: 70px; }
   .header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
   .logo { display: flex; align-items: center; gap: 12px; }
   .logo img { height: 44px; width: 44px; object-fit: contain; }
   .logo-text { display: flex; flex-direction: column; }
   .logo-title { font-family: var(--font-title); font-size: 1.1rem; font-weight: 700; color: var(--charcoal); line-height: 1.1; }
   .logo-sub { font-size: 0.65rem; color: var(--gray); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
   
   .nav-links { display: flex; gap: 32px; align-items: center; }
   .nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--gray-dark); }
   .nav-links a:hover, .nav-links a.active { color: var(--gold-dark); }
   
   .nav-cta { display: flex; align-items: center; }
   
   .hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
   .hamburger span { display: block; width: 24px; height: 2px; background: var(--charcoal); transition: var(--t); }
   
   .mobile-menu {
     position: fixed; top: 80px; left: 0; width: 100%;
     background: var(--white);
     padding: 24px 5%;
     display: none; flex-direction: column; gap: 16px;
     box-shadow: 0 10px 20px rgba(0,0,0,0.05);
     z-index: 998;
   }
   .mobile-menu.open { display: flex; }
   .mobile-menu a { font-size: 1.1rem; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--border); }
   .header.scrolled + .mobile-menu { top: 70px; }
   
   /* ── Hero Section (Imagen completa) ──── */
   .hero {
     position: relative;
     padding-top: 180px; 
     padding-bottom: 140px;
     display: flex; align-items: flex-start;
     overflow: hidden;
   }
   .hero-bg {
     position: absolute; top: 0; left: 0; width: 100%; height: 100%;
     object-fit: cover; z-index: -2;
   }
   .hero-overlay {
     position: absolute; top: 0; left: 0; width: 100%; height: 100%;
     background: linear-gradient(90deg, rgba(27,27,27,0.92) 0%, rgba(27,27,27,0.6) 100%);
     z-index: -1;
   }
   .hero-content {
     max-width: 650px; color: var(--white);
   }
   .hero-content h1 { color: var(--white); }
   .hero-content .lead { color: #e5e5e5; }
   .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
   
   /* ── Stats Strip ─────────────────────── */
   .stats-strip {
     background: var(--white);
     border-bottom: 1px solid var(--border);
     margin-top: -60px; /* Overlaping card effect */
     position: relative; z-index: 10;
     border-radius: var(--radius-md);
     box-shadow: var(--shadow-md);
     padding: 40px;
   }
   .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
   .stat-number { font-family: var(--font-title); font-size: 2.5rem; font-weight: 700; color: var(--gold-dark); line-height: 1; margin-bottom: 8px; }
   .stat-text { font-size: 0.85rem; font-weight: 500; color: var(--gray-dark); }
   
   /* ── Grid Layouts ────────────────────── */
   .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
   .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
   
   /* ── Image Block (About/Nosotros) ────── */
   .image-block { position: relative; border-radius: var(--radius-md); overflow: hidden; }
   .image-block img { width: 100%; height: auto; border-radius: var(--radius-md); }
   .decorative-box {
     position: absolute; bottom: -20px; right: -20px;
     width: 80%; background: var(--white);
     padding: 32px; border-radius: var(--radius-md);
     box-shadow: var(--shadow-lg);
     border-left: 4px solid var(--gold);
   }
   
   /* ── List / Checks ───────────────────── */
   .check-list { display: flex; flex-direction: column; gap: 16px; }
   .check-item { display: flex; align-items: flex-start; gap: 12px; }
   .check-icon {
     width: 24px; height: 24px;
     background: var(--gold-pale); color: var(--gold-dark);
     border-radius: 50%; display: flex; align-items: center; justify-content: center;
     flex-shrink: 0; margin-top: 2px;
   }
   .check-icon svg { width: 14px; height: 14px; }
   
   /* ── Formulario ──────────────────────── */
   .form-group { margin-bottom: 20px; }
   .form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--charcoal); }
   .form-control {
     width: 100%; padding: 16px 20px;
     background: var(--cream); border: 1px solid var(--border);
     border-radius: var(--radius-sm);
     font-family: var(--font-body); font-size: 1rem;
     transition: all var(--t);
   }
   .form-control:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px var(--border-gold); }
   textarea.form-control { resize: vertical; min-height: 120px; }
   
   /* ── Footer ──────────────────────────── */
   .footer { background: var(--charcoal); color: var(--white); padding: 80px 0 40px; }
   .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 60px; }
   .footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
   .footer-brand img { background: #fff; border-radius: 4px; padding: 4px; width: 44px; height: 44px; }
   .footer-title { font-family: var(--font-title); font-size: 1.2rem; font-weight: 600; }
   .footer p { color: #a0a0a0; font-size: 0.9rem; }
   .footer-heading { font-family: var(--font-title); font-size: 1.1rem; margin-bottom: 24px; font-weight: 500; }
   .footer-links { display: flex; flex-direction: column; gap: 12px; }
   .footer-links a { color: #a0a0a0; font-size: 0.95rem; }
   .footer-links a:hover { color: var(--gold-pale); padding-left: 4px; }
   .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
   .footer-bottom p { margin: 0; font-size: 0.85rem; }
   
   /* ── Utils / Animations ──────────────── */
   .fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
   .fade-up.visible { opacity: 1; transform: translateY(0); }
   .mt-2 { margin-top: 16px; } .mb-2 { margin-bottom: 16px; }
   .mt-4 { margin-top: 32px; } .mb-4 { margin-bottom: 32px; }
   .mb-0 { margin-bottom: 0 !important; }
   
   /* ── Media Queries ───────────────────── */
  @media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { gap: 40px; }
    .hero { min-height: 80vh; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 768px) {
    .section { padding: 60px 0; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }
    
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 32px; }
    
    /* Stats grid fallback to columns on very small */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .stats-strip { margin-top: 0; transform: translateY(-30px); padding: 24px 16px; }
    .stat-number { font-size: 1.8rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    
    .hero { text-align: center; padding-top: 120px; padding-bottom: 80px; min-height: auto; }
    .hero-overlay { background: rgba(27,27,27,0.75); }
    .hero-content { margin: 0 auto; padding-bottom: 40px; }
    .hero-actions { justify-content: center; }
    
    .decorative-box { 
      position: relative; 
      bottom: auto; right: auto; 
      width: 100%; 
      margin-top: 16px; 
      padding: 24px;
      box-shadow: none;
      border: 1px solid var(--border);
      border-left: 4px solid var(--gold);
    }
    
    .card { padding: 24px 20px; }
  }
  @media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; gap: 24px; }
    .btn { width: 100%; }
  }
