/* ==========================================================================
   ServicioMail — Landing Page Styles
   ========================================================================== */

:root {
  /* Palette */
  --blue-600: #0369a1;
  --blue-500: #0ea5e9;
  --blue-50:  #f0f9ff;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white: #ffffff;
  --green-500: #10b981;
  --green-600: #059669;
  --green-50:  #ecfdf5;
  --orange-500: #f59e0b;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.5rem;
  --fs-5xl: 3.5rem;

  /* Spacing */
  --container: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 30px -5px rgba(0,0,0,0.10), 0 8px 16px -8px rgba(0,0,0,0.06);

  /* Transitions */
  --t-fast: 0.15s ease;
  --t: 0.25s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--slate-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--blue-500); }
img, svg { max-width: 100%; height: auto; display: block; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: var(--fs-base);
  transition: all var(--t);
  cursor: pointer; border: none;
}
.btn-primary { background: var(--green-500); color: var(--white); }
.btn-primary:hover { background: var(--green-600); transform: translateY(-1px); box-shadow: var(--shadow); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--blue-600); border: 2px solid var(--blue-500); }
.btn-secondary:hover { background: var(--blue-50); color: var(--blue-600); }
.btn-lg { padding: 1rem 2.25rem; font-size: var(--fs-lg); }

/* Skip link */
.skip-link { position: absolute; top: -100px; left: 0; background: var(--blue-600); color: var(--white); padding: 0.75rem 1.5rem; z-index: 2000; border-radius: 0 0 8px 0; font-weight: 600; font-size: var(--fs-sm); }
.skip-link:focus { top: 0; color: var(--white); }

/* Checkbox */
.form-row-checkbox { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 1.25rem; }
.checkbox-label { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; font-size: var(--fs-sm); color: var(--slate-700); }
.checkbox-label input { margin-top: 0.2rem; width: auto; }
.checkbox-label a { color: var(--blue-600); text-decoration: underline; }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-100);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 0; }
.nav-brand { display: flex; align-items: center; gap: 0.625rem; font-weight: 700; font-size: var(--fs-xl); color: var(--slate-900); }
.nav-logo { height: 80px; width: auto; display: block; max-width: none; }
.footer-logo { height: 56px; width: auto; margin-bottom: 0.75rem; display: block; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--slate-700); font-weight: 500; font-size: var(--fs-sm); }
.nav-links a:hover { color: var(--blue-600); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--slate-700); margin: 5px 0; transition: var(--t); border-radius: 2px; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--blue-50) 0%, var(--white) 60%);
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--green-50); color: var(--green-600);
  padding: 0.375rem 0.875rem; border-radius: 99px;
  font-size: var(--fs-sm); font-weight: 600; margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: var(--fs-5xl); line-height: 1.1; font-weight: 800;
  color: var(--slate-900); margin-bottom: 1.25rem; letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--blue-600); }
.hero-sub { font-size: var(--fs-xl); color: var(--slate-500); line-height: 1.6; margin-bottom: 2rem; max-width: 540px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--slate-100); }
.hero-stat .num { font-size: var(--fs-3xl); font-weight: 800; color: var(--slate-900); }
.hero-stat .label { font-size: var(--fs-sm); color: var(--slate-500); }

/* Hero visual */
.hero-visual { position: relative; }
.hero-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1.5rem; border: 1px solid var(--slate-100);
}
.hero-card .card-header { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1rem; }
.hero-card .card-dots { display: flex; gap: 6px; }
.hero-card .card-dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--slate-300); }
.hero-card .card-dots span:nth-child(1) { background: #ff5f57; }
.hero-card .card-dots span:nth-child(2) { background: #ffbd2e; }
.hero-card .card-dots span:nth-child(3) { background: #28ca42; }
.hero-card .card-title { font-weight: 600; font-size: var(--fs-sm); color: var(--slate-500); margin-left: 0.5rem; }
.hero-card .card-body { display: flex; flex-direction: column; gap: 0.75rem; }
.inbox-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: var(--radius-sm); background: var(--slate-50); }
.inbox-row .avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 0.85rem; font-weight: 700; color: var(--white); flex-shrink: 0; }
.inbox-row .meta { flex: 1; min-width: 0; }
.inbox-row .from { font-weight: 600; font-size: var(--fs-sm); color: var(--slate-800); }
.inbox-row .subject { font-size: var(--fs-sm); color: var(--slate-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row .time { font-size: var(--fs-sm); color: var(--slate-500); flex-shrink: 0; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--slate-50); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-header h2 { font-size: var(--fs-4xl); font-weight: 800; color: var(--slate-900); margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.section-header p { font-size: var(--fs-lg); color: var(--slate-500); }

/* Scroll anchor offset (sticky header fix) */
section[id] { scroll-margin-top: 90px; }

/* Features grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
  background: var(--white); border: 1px solid var(--slate-100); border-radius: var(--radius);
  padding: 2rem; transition: all var(--t);
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--blue-500); }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: grid; place-items: center; margin-bottom: 1.25rem;
  background: var(--blue-50); color: var(--blue-600);
}
.feature-card h3 { font-size: var(--fs-lg); font-weight: 700; color: var(--slate-900); margin-bottom: 0.5rem; }
.feature-card p { font-size: var(--fs-sm); color: var(--slate-500); line-height: 1.6; }

/* Plans */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.plan-card {
  background: var(--white); border: 1px solid var(--slate-100); border-radius: var(--radius);
  padding: 2rem; display: flex; flex-direction: column; transition: all var(--t);
  position: relative;
}
.plan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.plan-card.featured { border-color: var(--blue-500); border-width: 2px; }
.plan-badge {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  background: var(--blue-500); color: var(--white); font-size: 0.75rem; font-weight: 700;
  padding: 0.25rem 0.875rem; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.05em;
}
.plan-name { font-size: var(--fs-lg); font-weight: 700; color: var(--slate-900); margin-bottom: 0.5rem; }
.plan-price { font-size: var(--fs-4xl); font-weight: 800; color: var(--slate-900); }
.plan-price .period { font-size: var(--fs-base); font-weight: 500; color: var(--slate-500); }
.plan-desc { font-size: var(--fs-sm); color: var(--slate-500); margin: 0.5rem 0 1.5rem; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; flex: 1; margin-bottom: 1.5rem; }
.plan-features li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: var(--fs-sm); color: var(--slate-700); }
.plan-features li .check { color: var(--green-500); flex-shrink: 0; font-weight: 700; }
.plan-cta { margin-top: auto; text-align: center; }
.plan-card .btn { width: 100%; justify-content: center; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--slate-100); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.125rem 1.25rem; cursor: pointer; font-weight: 600; color: var(--slate-900);
  background: var(--white); transition: background var(--t-fast);
}
.faq-q:hover { background: var(--slate-50); }
.faq-q .arrow { transition: transform var(--t); color: var(--slate-500); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t); font-size: var(--fs-sm); color: var(--slate-500); }
.faq-a-inner { padding: 0 1.25rem 1.125rem; line-height: 1.6; }
.faq-item.open .faq-a { max-height: 300px; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  border-radius: var(--radius); padding: 3rem; text-align: center; color: var(--white);
}
.cta-band h2 { font-size: var(--fs-3xl); font-weight: 800; margin-bottom: 0.75rem; }
.cta-band p { font-size: var(--fs-lg); opacity: 0.9; margin-bottom: 1.75rem; }
.cta-band .btn-primary { background: var(--white); color: var(--blue-600); }
.cta-band .btn-primary:hover { background: var(--slate-50); color: var(--blue-600); }

/* Footer */
.site-footer { background: var(--slate-900); color: var(--slate-300); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { font-size: var(--fs-xl); font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
.footer-desc { font-size: var(--fs-sm); color: var(--slate-500); max-width: 280px; }
.footer-col h4 { font-size: var(--fs-sm); font-weight: 600; color: var(--white); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-size: var(--fs-sm); color: var(--slate-500); }
.footer-col ul a:hover { color: var(--blue-500); }
.footer-bottom { border-top: 1px solid var(--slate-800); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-sm); color: var(--slate-500); }
.vp-credit { font-size: 0.8rem; opacity: 0.6; }
.vp-credit a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
.vp-credit a:hover { opacity: 1; text-decoration: underline; }

/* Migration Steps */
.migration-steps { display: flex; align-items: stretch; gap: 0.75rem; margin-bottom: 2rem; }
.migration-step {
  flex: 1; background: var(--white); border: 1px solid var(--slate-100);
  border-radius: var(--radius); padding: 1.75rem 1.5rem; text-align: center; transition: all var(--t);
}
.migration-step:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--blue-500); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 1rem;
  background: var(--blue-600); color: var(--white);
  display: grid; place-items: center; font-weight: 700; font-size: var(--fs-lg);
}
.migration-step h3 { font-size: var(--fs-base); font-weight: 700; color: var(--slate-900); margin-bottom: 0.5rem; }
.migration-step p { font-size: var(--fs-sm); color: var(--slate-500); line-height: 1.5; }
.step-arrow { display: grid; place-items: center; color: var(--slate-300); font-size: var(--fs-xl); flex-shrink: 0; }
.migration-note {
  background: var(--blue-50); border-left: 4px solid var(--blue-500); border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem; font-size: var(--fs-sm); color: var(--slate-700); line-height: 1.6;
}
.migration-note strong { color: var(--slate-900); }

/* Pricing Table */
.pricing-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--slate-100); box-shadow: var(--shadow-sm); }
.pricing-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); background: var(--white); }
.pricing-table thead { background: var(--slate-900); color: var(--white); }
.pricing-table th { padding: 1rem 1.25rem; text-align: left; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.pricing-table td { padding: 1.125rem 1.25rem; border-top: 1px solid var(--slate-100); color: var(--slate-700); }
.pricing-table td strong { color: var(--slate-900); }
.pricing-table tr:hover td { background: var(--slate-50); }
.pricing-table .featured-row { background: var(--blue-50); }
.pricing-table .featured-row:hover td { background: #e0f2fe; }
.pricing-notes { margin-top: 1.5rem; text-align: center; font-size: var(--fs-sm); color: var(--slate-500); line-height: 1.7; max-width: 720px; margin-left: auto; margin-right: auto; }
.pricing-notes .muted { color: var(--slate-500); margin-top: 0.5rem; }

/* Contact Form */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: start; }
.contact-info h2 { font-size: var(--fs-3xl); font-weight: 800; color: var(--slate-900); margin-bottom: 1rem; letter-spacing: -0.02em; }
.contact-info p { font-size: var(--fs-base); color: var(--slate-500); line-height: 1.7; margin-bottom: 1.5rem; }
.contact-benefits { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 2rem; }
.contact-benefits li { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); color: var(--slate-700); }
.contact-benefits .check { color: var(--green-500); font-weight: 700; }
.contact-direct { padding-top: 1.5rem; border-top: 1px solid var(--slate-100); }
.contact-direct p { font-size: var(--fs-sm); color: var(--slate-500); margin-bottom: 0.75rem; }
.contact-form-wrap { background: var(--white); border: 1px solid var(--slate-100); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.contact-form { display: flex; flex-direction: column; gap: 1.125rem; }
.form-row { display: flex; flex-direction: column; gap: 0.375rem; }
.form-row-2 { flex-direction: row; gap: 1rem; }
.form-row-2 > div { flex: 1; display: flex; flex-direction: column; gap: 0.375rem; }
.form-row label { font-size: var(--fs-sm); font-weight: 600; color: var(--slate-900); }
.form-row input, .form-row select, .form-row textarea {
  padding: 0.75rem 0.875rem; border: 1px solid var(--slate-300); border-radius: var(--radius-sm);
  font-size: var(--fs-base); color: var(--slate-900); background: var(--white); transition: border-color var(--t-fast);
  font-family: var(--font);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}
.form-row textarea { resize: vertical; }
.btn-block { width: 100%; justify-content: center; margin-top: 0.5rem; }
.form-note { font-size: 0.75rem; color: var(--slate-500); text-align: center; margin-top: 0.5rem; line-height: 1.5; }
.form-success { background: var(--green-50); border: 1px solid var(--green-500); border-radius: var(--radius-sm); padding: 1.5rem; text-align: center; color: var(--green-600); font-weight: 600; font-size: var(--fs-lg); }
.form-error { background: #fef2f2; border: 1px solid #ef4444; border-radius: var(--radius-sm); padding: 1rem; text-align: center; color: #dc2626; font-weight: 600; margin-bottom: 1rem; }

/* Responsive — new sections */
@media (max-width: 1024px) {
  .migration-steps { flex-wrap: wrap; }
  .migration-step { flex: 1 1 calc(50% - 0.5rem); }
  .step-arrow:nth-of-type(4) { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .migration-steps { flex-direction: column; }
  .migration-step { flex: 1; }
  .step-arrow { transform: rotate(90deg); padding: 0.25rem 0; }
  .pricing-table { font-size: 0.75rem; }
  .pricing-table th, .pricing-table td { padding: 0.75rem 0.625rem; }
  .form-row-2 { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: var(--fs-2xl); }
  .footer-grid { grid-template-columns: 1fr; }
}
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: var(--fs-4xl); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--slate-100); padding: 1rem 1.25rem;
    gap: 1rem; box-shadow: var(--shadow);
  }
  .hero { padding: 3rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: var(--fs-3xl); }
  .hero-sub { font-size: var(--fs-base); }
  .hero-stats { gap: 1.5rem; }
  .hero-visual { display: none; }
  .section { padding: 3rem 0; }
  .section-header h2 { font-size: var(--fs-2xl); }
  .features-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .cta-band { padding: 2rem 1.5rem; }
  .cta-band h2 { font-size: var(--fs-xl); }
}

@media (max-width: 480px) {
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .hero-stat .num { font-size: var(--fs-2xl); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}