/* MF Sanchez - Servicios IT Profesionales */
/* =========================================
   Variables & Reset
   ========================================= */
:root {
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-400: #94a3b8;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50:  #f8fafc;
  --white:    #ffffff;
  --green-500: #22c55e;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --radius:    12px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --transition: 0.2s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--gray-800); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* NAV */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.15rem; color: var(--gray-900); }
.nav-logo span { color: var(--blue-600); }
.nav-logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.nav-links { display: none; list-style: none; gap: 2rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--gray-600); transition: color var(--transition); }
.nav-links a:hover { color: var(--blue-600); }
.nav-cta { display: none; align-items: center; gap: 0.5rem; background: var(--blue-600); color: var(--white) !important; padding: 0.5rem 1.25rem; border-radius: 6px; font-weight: 600; font-size: 0.875rem; transition: background var(--transition); }
.nav-cta:hover { background: var(--blue-700) !important; }
.nav-hamburger { background: none; border: none; cursor: pointer; padding: 0.5rem; display: flex; flex-direction: column; gap: 5px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-800); border-radius: 2px; transition: all var(--transition); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; flex-direction: column; background: var(--white); border-top: 1px solid var(--gray-200); padding: 1rem 1.25rem 1.5rem; gap: 0.25rem; }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 0.75rem 0; font-size: 1rem; font-weight: 500; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); transition: color var(--transition); }
.nav-mobile a:hover { color: var(--blue-600); }
.nav-mobile .mobile-cta { margin-top: 0.75rem; background: var(--blue-600); color: var(--white) !important; padding: 0.875rem; border-radius: 8px; text-align: center; font-weight: 600; border-bottom: none; }
.nav-mobile .mobile-cta:hover { background: var(--blue-700) !important; }
@media (min-width: 768px) { .nav-links, .nav-cta { display: flex; } .nav-hamburger { display: none; } .nav-mobile { display: none !important; } }

/* HERO */
.hero { background: linear-gradient(160deg, #ffffff 0%, #f0f7ff 100%); color: var(--gray-900); padding: 5rem 0 4rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; border-radius: 50%; background: rgba(37,99,235,0.15); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,0.04); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-600); font-size: 0.8rem; font-weight: 600; padding: 0.35rem 0.85rem; border-radius: 20px; margin-bottom: 1.5rem; letter-spacing: 0.5px; text-transform: uppercase; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem; max-width: 650px; color: var(--gray-900); }
.hero h1 span { color: var(--blue-600); }
.hero p { font-size: 1.1rem; color: var(--gray-600); max-width: 540px; margin-bottom: 2.5rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 1.75rem; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all var(--transition); border: none; text-decoration: none; }
.btn-primary { background: var(--green-500); color: var(--white); }
.btn-primary:hover { background: #16a34a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34,197,94,0.45); }
.btn-secondary { background: transparent; color: var(--gray-800); border: 2px solid var(--gray-300); }
.btn-secondary:hover { background: var(--gray-100); border-color: var(--blue-600); color: var(--blue-600); }
.btn-blue { background: var(--blue-600); color: var(--white); }
.btn-blue:hover { background: var(--blue-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-size: 1.75rem; font-weight: 800; color: var(--blue-600); }
.hero-stat span { font-size: 0.8rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; }

/* SECTION COMMONS */
section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag { display: inline-block; background: var(--blue-50); color: var(--blue-600); font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.85rem; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 0.75rem; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; color: var(--gray-900); line-height: 1.2; margin-bottom: 0.75rem; }
.section-header p { color: var(--gray-600); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* SERVICES */
.services { background: var(--gray-50); }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 600px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(4,1fr); } }
.service-card { background: var(--white); border-radius: var(--radius); padding: 2rem 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); display: flex; flex-direction: column; gap: 1rem; transition: transform var(--transition), box-shadow var(--transition); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--blue-600); border-radius: var(--radius) var(--radius) 0 0; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon { width: 52px; height: 52px; background: var(--blue-50); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.service-icon svg { width: 26px; height: 26px; color: var(--blue-600); }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); line-height: 1.3; }
.service-card p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; flex: 1; }
.service-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.service-card ul li { font-size: 0.85rem; color: var(--gray-600); display: flex; align-items: flex-start; gap: 0.4rem; }
.service-card ul li::before { content: '✓'; color: var(--blue-600); font-weight: 700; flex-shrink: 0; margin-top: 0.05rem; }
.service-price { display: flex; align-items: baseline; gap: 0.25rem; padding-top: 0.75rem; border-top: 1px solid var(--gray-100); }
.price-from { font-size: 0.78rem; color: var(--gray-400); }
.price-amount { font-size: 1.4rem; font-weight: 800; color: var(--blue-600); }
.price-period { font-size: 0.82rem; color: var(--gray-500); }

/* WHY */
.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 600px) { .why-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(4,1fr); } }
.why-card { background: var(--gray-50); border-radius: var(--radius); padding: 1.75rem 1.5rem; border: 1px solid var(--gray-200); text-align: center; transition: transform var(--transition); }
.why-card:hover { transform: translateY(-3px); }
.why-icon { width: 60px; height: 60px; background: var(--blue-600); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.why-icon svg { width: 28px; height: 28px; color: var(--white); }
.why-card h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.why-card p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; }

/* CONTACT */
.contact { background: var(--gray-50); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info h3 { font-size: 1.35rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1rem; }
.contact-info p { color: var(--gray-600); margin-bottom: 1.75rem; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact-detail { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; color: var(--gray-700); }
.contact-detail svg { width: 20px; height: 20px; color: var(--blue-600); flex-shrink: 0; }
.contact-detail a { color: var(--blue-600); font-weight: 500; }
.contact-detail a:hover { text-decoration: underline; }
.whatsapp-cta { display: flex; align-items: center; gap: 0.75rem; background: #25d366; color: var(--white); padding: 1rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem; width: fit-content; transition: all var(--transition); box-shadow: 0 4px 12px rgba(37,211,102,0.35); }
.whatsapp-cta:hover { background: #20bd5c; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37,211,102,0.4); }
.whatsapp-cta svg { width: 24px; height: 24px; }
.contact-form-wrap { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--gray-700); }
.form-group input, .form-group textarea { padding: 0.75rem 1rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.95rem; color: var(--gray-800); background: var(--white); transition: border-color var(--transition), box-shadow var(--transition); width: 100%; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { background: var(--blue-600); color: var(--white); border: none; padding: 0.875rem 1.5rem; border-radius: var(--radius-sm); font-family: var(--font); font-size: 1rem; font-weight: 600; cursor: pointer; transition: all var(--transition); display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; }
.form-submit:hover { background: var(--blue-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.form-note { font-size: 0.78rem; color: var(--gray-400); text-align: center; }
.form-success { display: none; text-align: center; padding: 2rem; color: var(--gray-800); }
.form-success svg { width: 48px; height: 48px; color: var(--green-500); margin: 0 auto 1rem; }
.form-success h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.form-success p { font-size: 0.9rem; color: var(--gray-600); }

/* FOOTER */
.footer { background: var(--gray-900); color: #94a3b8; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-top: 0.75rem; max-width: 280px; }
.footer-logo { font-weight: 700; font-size: 1.1rem; color: var(--white); }
.footer-logo span { color: #60a5fa; }
.footer-col h4 { font-size: 0.875rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { font-size: 0.875rem; color: #94a3b8; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; font-size: 0.8rem; }
.footer-bottom a { color: #64748b; transition: color var(--transition); }
.footer-bottom a:hover { color: #94a3b8; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; }

/* COOKIES BANNER */
.cookie-banner { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 480px; background: var(--gray-900); color: #cbd5e1; padding: 1.25rem 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 999; font-size: 0.875rem; display: none; flex-direction: column; gap: 1rem; border: 1px solid #1e293b; }
.cookie-banner p { line-height: 1.6; }
.cookie-banner p a { color: #60a5fa; text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-cookie-accept { background: var(--blue-600); color: var(--white); border: none; padding: 0.6rem 1.25rem; border-radius: 6px; font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: background var(--transition); }
.btn-cookie-accept:hover { background: var(--blue-700); }
.btn-cookie-reject { background: transparent; color: #94a3b8; border: 1px solid #334155; padding: 0.6rem 1.25rem; border-radius: 6px; font-size: 0.875rem; cursor: pointer; transition: all var(--transition); }
.btn-cookie-reject:hover { color: var(--white); border-color: #475569; }

/* LEGAL PAGES */
.legal-page { padding: 5rem 0; }
.legal-page h1 { font-size: 2rem; font-weight: 800; color: var(--gray-900); margin-bottom: 0.5rem; }
.legal-page .legal-updated { font-size: 0.875rem; color: var(--gray-400); margin-bottom: 2.5rem; }
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.2rem; font-weight: 700; color: var(--gray-900); margin: 2rem 0 0.75rem; }
.legal-content p, .legal-content li { font-size: 0.95rem; color: var(--gray-700); line-height: 1.8; margin-bottom: 0.75rem; }
.legal-content ul { padding-left: 1.5rem; }
.legal-content a { color: var(--blue-600); text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--blue-600); font-weight: 500; margin-bottom: 2rem; font-size: 0.9rem; }

/* UTILS */
.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; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } .hero { padding: 3.5rem 0 3rem; } .hero-stats { gap: 1.25rem; } }

/* =========================================
   Stats section
   ========================================= */
.stats-section {
  background: var(--white);
  padding: 4rem 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.stat-item:hover { transform: translateY(-3px); }
.stat-num {
  display: inline-block;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--blue-600);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================================
   Hosting comparison table
   ========================================= */
.hosting-compare {
  margin-top: 3.5rem;
}
.compare-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
  background: var(--white);
}
.compare-table th,
.compare-table td {
  padding: 0.9rem 1.1rem;
  text-align: center;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
}
.compare-table thead tr {
  background: var(--gray-50);
}
.compare-table th {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  position: relative;
}
.compare-table .feature-name {
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--gray-50);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: var(--gray-50); }
.compare-table tbody tr:hover .col-featured { background: rgba(37,99,235,0.12); }

/* Featured column */
.col-featured {
  background: rgba(37,99,235,0.06);
  color: var(--blue-700);
  font-weight: 600;
  border-left: 2px solid var(--blue-600);
  border-right: 2px solid var(--blue-600);
}
.compare-table thead .col-featured {
  background: var(--blue-600);
  color: var(--white);
  font-size: 1rem;
}
.featured-badge {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  background: #fbbf24;
  color: #78350f;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.col-basic { color: var(--gray-600); }
.col-agency { color: var(--gray-600); }
.check { color: #16a34a; font-weight: 700; font-size: 1.1rem; }
.cross { color: #dc2626; font-weight: 700; font-size: 1.1rem; }
.compare-table .col-featured.check { color: #16a34a; }

/* =========================================
   Hero canvas
   ========================================= */
.hero { position: relative; }
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.hero-inner { position: relative; z-index: 1; }

/* =========================================
   Service icon size override
   ========================================= */
.service-icon svg[width="48"] {
  width: 36px;
  height: 36px;
}

/* =========================================
   Entrance animations
   ========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero stat hover border */
.hero-stat { padding-bottom: 4px; border-bottom: 2px solid transparent; transition: border-color 0.2s ease; cursor: default; }
.hero-stat:hover { border-bottom-color: var(--blue-600); }
