/* ============================================
   ZONADIGISERV - Estilos Principales
   Asesoría Contable, Financiera y Banca Web
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variables de diseño ── */
:root {
  --navy: #0A1628;
  --navy-mid: #132040;
  --navy-light: #1C3058;
  --gold: #C9A84C;
  --gold-light: #E5C97A;
  --gold-pale: #F5EDD8;
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --gray-100: #F0EEE9;
  --gray-300: #B8B4A8;
  --gray-500: #6E6A60;
  --gray-700: #3A3830;
  --success: #2E7D52;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 32px rgba(10,22,40,0.12);
  --shadow-float: 0 16px 64px rgba(10,22,40,0.22);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ── Reset & Base ── */
*, *::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(--off-white);
  color: var(--gray-700);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
p { font-size: 1rem; color: var(--gray-500); }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--gray-100); }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,22,40,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  transition: var(--transition);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 32px;
  max-width: 1160px; margin: 0 auto;
}
.navbar-brand {
  display: flex; align-items: center; gap: 12px;
}
.brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.brand-text { font-family: var(--font-display); font-size: 1.25rem; color: var(--white); font-weight: 700; }
.brand-text span { color: var(--gold); }
.navbar-nav { display: flex; align-items: center; gap: 32px; list-style: none; }
.navbar-nav a { color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em; transition: color var(--transition); }
.navbar-nav a:hover { color: var(--gold); }
.navbar-cta {
  background: var(--gold); color: var(--navy) !important;
  padding: 9px 20px; border-radius: var(--radius-sm);
  font-weight: 600 !important; transition: var(--transition) !important;
}
.navbar-cta:hover { background: var(--gold-light) !important; color: var(--navy) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding-top: 72px;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute; top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-glow-2 {
  position: absolute; bottom: -10%; left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(28,48,88,0.8) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  position: relative; z-index: 1;
}
.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.3);
  color: var(--gold); padding: 6px 16px; border-radius: 40px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-badge-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.hero-title { color: var(--white); margin-bottom: 20px; }
.hero-title em { font-style: normal; color: var(--gold); display: block; }
.hero-disclaimer {
  background: rgba(201,168,76,0.08);
  border-left: 3px solid var(--gold);
  padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0 32px;
  color: rgba(255,255,255,0.65); font-size: 0.85rem; line-height: 1.5;
}
.hero-disclaimer strong { color: var(--gold-light); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition); border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.35); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.hero-stats {
  display: flex; gap: 32px; margin-top: 48px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-num { font-family: var(--font-display); font-size: 2rem; color: var(--gold); font-weight: 700; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.05em; }

/* Hero Card Visual */
.hero-visual { display: flex; justify-content: center; }
.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
  width: 100%; max-width: 380px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.card-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.card-logo { font-family: var(--font-display); color: var(--gold); font-size: 1rem; font-weight: 700; }
.card-chip { background: linear-gradient(135deg, var(--gold), var(--gold-light)); width: 36px; height: 28px; border-radius: 4px; }
.card-service-list { display: flex; flex-direction: column; gap: 12px; }
.card-service-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.05); border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.card-service-icon { font-size: 1.2rem; }
.card-service-text { color: rgba(255,255,255,0.8); font-size: 0.88rem; font-weight: 500; }
.card-divider { height: 1px; background: rgba(201,168,76,0.15); margin: 20px 0; }
.card-footer-row { display: flex; justify-content: space-between; align-items: center; }
.card-tag { font-size: 0.75rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.06em; }
.card-status { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--success); }
.card-status-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; }

/* ── Notice Banner ── */
.notice-banner {
  background: var(--navy);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 14px 0;
  text-align: center;
}
.notice-banner p {
  color: rgba(255,255,255,0.7); font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.notice-banner strong { color: var(--gold-light); }

/* ── Services ── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block;
  color: var(--gold); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 { color: var(--navy); margin-bottom: 16px; }
.section-header p { max-width: 560px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--gray-100);
  transition: 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: var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.06));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.service-card h3 { color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; line-height: 1.65; }

/* ── Why Us / Features ── */
.why-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-text h2 { color: var(--navy); margin-bottom: 20px; }
.why-text > p { margin-bottom: 36px; }
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--navy); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.feature-item h4 { font-family: var(--font-body); font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.feature-item p { font-size: 0.88rem; }
.why-image-box {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
}
.metric-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.metric-card:last-child { margin-bottom: 0; }
.metric-label { font-size: 0.78rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.metric-value { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); font-weight: 700; }
.metric-bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-top: 12px; overflow: hidden; }
.metric-bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 2px; transition: width 1.2s ease; }

/* ── Process Steps ── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.process-grid::before {
  content: ''; position: absolute; top: 32px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.process-step { text-align: center; position: relative; }
.step-circle {
  width: 64px; height: 64px;
  background: var(--navy); border: 2px solid var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700; color: var(--gold);
  position: relative; z-index: 1;
}
.process-step h3 { color: var(--navy); margin-bottom: 8px; font-size: 1rem; }
.process-step p { font-size: 0.88rem; }

/* ── Disclaimer Section ── */
.disclaimer-section {
  background: var(--navy);
  padding: 64px 0;
}
.disclaimer-box {
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.disclaimer-icon { font-size: 2.5rem; margin-bottom: 16px; }
.disclaimer-box h2 { color: var(--gold); margin-bottom: 20px; font-size: 1.8rem; }
.disclaimer-box p { color: rgba(255,255,255,0.65); max-width: 700px; margin: 0 auto 12px; }

/* ── Contact ── */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h2 { color: var(--navy); margin-bottom: 16px; }
.contact-info > p { margin-bottom: 36px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--navy); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.contact-item-text strong { display: block; color: var(--navy); font-weight: 600; margin-bottom: 3px; font-size: 0.9rem; }
.contact-item-text span { font-size: 0.88rem; color: var(--gray-500); }
.contact-item-text a { color: var(--gray-500); }
.contact-item-text a:hover { color: var(--gold); }
.contact-form {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-card);
}
.contact-form h3 { color: var(--navy); margin-bottom: 24px; font-size: 1.3rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem; color: var(--gray-700);
  transition: var(--transition); background: var(--off-white);
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gold); background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
  width: 100%;
  background: var(--navy); color: var(--white);
  padding: 14px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem;
  border: none; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover { background: var(--navy-light); box-shadow: var(--shadow-card); }

/* ── Footer ── */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 64px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.88rem; margin-top: 16px; max-width: 280px; }
.footer-col h4 { color: var(--gold); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.5); font-size: 0.88rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.8rem; }
.footer-bottom a { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.footer-bottom a:hover { color: var(--gold); }
.footer-legal-links { display: flex; gap: 20px; }

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--navy);
  border-top: 2px solid var(--gold);
  padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-text { flex: 1; }
.cookie-text p { color: rgba(255,255,255,0.75); font-size: 0.88rem; }
.cookie-text a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--gold); color: var(--navy);
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.85rem; border: none; cursor: pointer;
  transition: var(--transition);
}
.btn-cookie-accept:hover { background: var(--gold-light); }
.btn-cookie-reject {
  background: transparent; color: rgba(255,255,255,0.6);
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.2); cursor: pointer;
  transition: var(--transition);
}
.btn-cookie-reject:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }

/* ── Schema / SEO invisible ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Animations ── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ── Whatsapp Float Button ── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 56px; height: 56px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.4);
  transition: var(--transition);
  font-size: 1.5rem;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.5); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .navbar-nav { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy); padding: 24px; gap: 16px; }
  .navbar-nav.open { display: flex; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; gap: 24px; }
  .hero-disclaimer { text-align: left; }
  .services-grid { grid-template-columns: 1fr; }
  .why-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cookie-banner { flex-direction: column; padding: 20px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .disclaimer-box { padding: 32px 20px; }
}
