/*
Theme Name: MakeSolutions
Theme URI: https://makesolutions.cl
Author: MakeSolutions
Author URI: https://makesolutions.cl
Description: Tema a medida para el sitio de MakeSolutions - Empresa de tecnología especializada en desarrollo de software a medida, aplicaciones web, móviles e integraciones para tu negocio.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: makesolutions
*/

/* ===== Variables ===== */
:root {
  /* Colores extraídos del logo de MakeSolutions */
  --brand-bright: #10A0DD;
  --brand-mid: #1A83C2;
  --brand-dark: #216B92;

  --navy-950: #0c2533;
  --navy-900: #113649;
  --navy-800: #19506e;
  --navy-700: #216b92;
  --blue-600: #10A0DD;
  --blue-500: #1A83C2;
  --blue-400: #4BB7E5;
  --cyan-400: #5BBDE8;
  --white: #ffffff;
  --gray-100: #f4f6fb;
  --gray-200: #e6eaf5;
  --gray-400: #94a3b8;
  --gray-600: #556080;
  --gray-900: #101728;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-soft: 0 20px 50px rgba(15, 25, 56, 0.12);
  --container: 1180px;
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; color: var(--navy-900); }

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--blue-500); }

.eyebrow {
  display: inline-block;
  color: var(--blue-600);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  color: var(--white);
  box-shadow: 0 12px 30px rgba(16, 160, 221, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(16, 160, 221, 0.45); }

.btn--ghost {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-900);
}
.btn--ghost:hover { background: var(--navy-900); color: var(--white); }

.btn--light {
  background: var(--white);
  color: var(--navy-900);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.2); }

.btn--full { width: 100%; }

.btn--nav { margin-left: 24px; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
}
.logo__img {
  height: 40px;
  width: auto;
}
.footer .logo__img { height: 34px; }

.nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav__link {
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--navy-900); }
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--blue-500);
  transition: width 0.2s ease;
}
.nav__link:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--navy-900);
  transition: all 0.25s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(16, 160, 221, 0.16), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(26, 131, 194, 0.14), transparent 40%);
  z-index: -1;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero__text {
  color: var(--gray-600);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }
.stat__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-900);
}
.stat__label { color: var(--gray-600); font-size: 0.88rem; }

/* Hero visual: code card */
.hero__visual { display: flex; justify-content: center; }

.code-card {
  width: 100%;
  max-width: 440px;
  background: var(--navy-950);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transform: rotate(1.5deg);
}

.code-card__dots { display: flex; gap: 8px; margin-bottom: 16px; }
.code-card__dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--gray-600);
}
.code-card__dots span:nth-child(1) { background: #ff5f56; }
.code-card__dots span:nth-child(2) { background: #ffbd2e; }
.code-card__dots span:nth-child(3) { background: #27c93f; }

.code-card__body {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #cbd5f5;
  overflow-x: auto;
}
.c-key { color: var(--cyan-400); }
.c-fn { color: var(--blue-400); }
.c-str { color: #a3e635; }
.c-comment { color: var(--gray-400); }

/* ===== Trust / Tech logos ===== */
.trust { padding: 40px 0; background: var(--gray-100); }
.trust__inner { text-align: center; }
.trust__label {
  color: var(--gray-600);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.trust__logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-400);
}
.trust__logos span:hover { color: var(--blue-600); }

/* ===== Section head ===== */
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}
.section-head p { color: var(--gray-600); }

/* ===== Servicios ===== */
.servicios { padding: 110px 0; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}
.card__icon {
  font-size: 1.8rem;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--gray-600); font-size: 0.95rem; }

/* ===== Nosotros ===== */
.nosotros { padding: 110px 0; background: var(--gray-100); }
.nosotros__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.nosotros__visual { display: flex; justify-content: center; }
.glow-card {
  width: 280px; height: 280px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-900), var(--blue-600));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 60px rgba(16, 160, 221, 0.3);
}
.glow-card__icon { font-size: 5rem; color: var(--cyan-400); }

.nosotros__content h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 20px; }
.nosotros__content p { color: var(--gray-600); margin-bottom: 16px; }

.check-list { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--navy-900);
  font-weight: 500;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--blue-500);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Proceso ===== */
.proceso { padding: 110px 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.step {
  padding: 28px 24px;
  border-left: 3px solid var(--blue-500);
  background: var(--gray-100);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.step__number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--blue-500);
  display: block;
  margin-bottom: 8px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--gray-600); font-size: 0.92rem; }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--navy-900), var(--blue-600) 120%);
  padding: 80px 0;
}
.cta__inner { text-align: center; color: var(--white); }
.cta h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,0.85); margin-bottom: 32px; }

/* ===== Contacto ===== */
.contacto { padding: 110px 0; }
.contacto__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.contacto__info h2 { font-size: clamp(1.8rem, 3vw, 2.2rem); margin: 0 0 16px; }
.contacto__info p { color: var(--gray-600); margin-bottom: 28px; }

.info-list { display: flex; flex-direction: column; gap: 16px; }
.info-list li {
  display: flex; align-items: center; gap: 12px;
  font-weight: 500;
  color: var(--navy-900);
}
.info-list__icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100);
  border-radius: 50%;
}

.map {
  margin-top: 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.map iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

.form {
  background: var(--gray-100);
  padding: 36px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form__group { display: flex; flex-direction: column; gap: 8px; }
.form__group label { font-weight: 600; font-size: 0.9rem; color: var(--navy-900); }
.form__group input, .form__group textarea {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.form__group input:focus, .form__group textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(16, 160, 221, 0.15);
}
.form__group.is-invalid input, .form__group.is-invalid textarea {
  border-color: #ef4444;
}
.form__error {
  color: #ef4444;
  font-size: 0.82rem;
  min-height: 1em;
}
.form__success {
  display: none;
  color: #16a34a;
  font-weight: 600;
  text-align: center;
}
.form__success.show { display: block; }

/* ===== Footer ===== */
.footer { background: var(--navy-950); padding: 40px 0; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy { color: var(--gray-400); font-size: 0.88rem; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-800);
  border-radius: 50%;
  color: var(--gray-400);
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}
.footer__social a:hover { background: var(--blue-600); color: var(--white); }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(16, 160, 221, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ===== WhatsApp button ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 28px; left: 28px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 90;
}
.whatsapp-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.5);
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .nosotros__inner { grid-template-columns: 1fr; }
  .nosotros__visual { order: -1; }
  .contacto__inner { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .btn--nav { display: none; }
  .nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--gray-200);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .nav.is-open { transform: translateY(0); }
  .menu-toggle { display: flex; }
  .cards-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__stats { gap: 28px; }
  .footer__inner { flex-direction: column; text-align: center; }
}
