/* ==========================================================================
   Halabalush — Hoja de estilos compartida
   Última actualización: 2026-05-11
   ========================================================================== */

/* --- FONTS ---------------------------------------------------------------- */
@font-face {
  font-family: 'MadeTommy';
  src: url('fonts/MadeTommy-thin-100.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MadeTommy';
  src: url('fonts/MadeTommy-light-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MadeTommy';
  src: url('fonts/MadeTommy-regular-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MadeTommy';
  src: url('fonts/MadeTommy-medium-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MadeTommy';
  src: url('fonts/MadeTommy-bold-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- VARIABLES & RESET --------------------------------------------------- */
:root {
  --navy: #282A73;
  --orange: #F6A71C;
  --gray: #C0C2C4;
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --bg-alt: #F0F0F3;
  --text-primary: #1A1A2E;
  --text-secondary: #5A5A72;
  --border: rgba(0, 0, 0, 0.06);
  --danger: #c0392b;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font-family: 'MadeTommy', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- CIRCUIT PATTERN ----------------------------------------------------- */
.circuit-pattern { position: relative; }
.circuit-pattern::before, .circuit-pattern::after {
  content: ''; position: absolute; top: 0; width: 220px; height: 100%;
  pointer-events: none; opacity: 0.20; background-repeat: no-repeat;
  background-size: contain; z-index: 0;
}
.circuit-pattern::before {
  left: 0; background-position: left center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120' fill='none'%3E%3Cpath d='M10 60h30l10-10h20l10 10h20' stroke='%23282A73' stroke-width='1.5'/%3E%3Ccircle cx='10' cy='60' r='3' fill='%23F6A71C'/%3E%3Ccircle cx='100' cy='60' r='3' fill='%23F6A71C'/%3E%3Cpath d='M10 30h20l10 10h25' stroke='%23282A73' stroke-width='1.2' opacity='0.6'/%3E%3Cpath d='M10 90h25l10-10h30' stroke='%23282A73' stroke-width='1.2' opacity='0.6'/%3E%3C/svg%3E");
}
.circuit-pattern::after {
  right: 0; background-position: right center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120' fill='none'%3E%3Cpath d='M190 50h-30l-10 10h-20l-10-10h-15' stroke='%23282A73' stroke-width='1.5'/%3E%3Ccircle cx='190' cy='50' r='3' fill='%23F6A71C'/%3E%3Ccircle cx='105' cy='60' r='3' fill='%23F6A71C'/%3E%3Cpath d='M190 25h-25l-10 10h-30' stroke='%23282A73' stroke-width='1.2' opacity='0.6'/%3E%3Cpath d='M190 85h-30l-10-10h-25' stroke='%23282A73' stroke-width='1.2' opacity='0.6'/%3E%3C/svg%3E");
}
.circuit-pattern > * { position: relative; z-index: 1; }

/* --- NAV ----------------------------------------------------------------- */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}
nav.circuit-pattern::before, nav.circuit-pattern::after { opacity: 0.15; width: 160px; overflow: hidden; }
nav .nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; }
nav .nav-logo img { height: 44px; width: auto; }
nav .nav-links { display: flex; gap: 28px; list-style: none; }
nav .nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.3px; transition: all .3s; position: relative; }
nav .nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--orange); transition: width .3s ease; border-radius: 1px; }
nav .nav-links a:hover { color: var(--navy); }
nav .nav-links a:hover::after { width: 100%; }
nav .nav-cta { background: var(--navy); color: #fff; padding: 9px 20px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: .3px; transition: all .3s; }
nav .nav-cta:hover { background: #1e1f5a; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(40, 42, 115, .25); }
.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); transition: all .3s; }

/* --- CONTAINERS --------------------------------------------------------- */
section { position: relative; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.section-divider { width: 40px; height: 3px; background: var(--orange); border-radius: 2px; }

/* --- BUTTONS ------------------------------------------------------------ */
.btn-primary {
  background: var(--navy); color: #fff; padding: 12px 28px; border-radius: 6px;
  text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .3px;
  transition: all .3s; border: none; cursor: pointer; display: inline-flex;
  align-items: center; gap: 8px; font-family: 'MadeTommy', sans-serif;
}
.btn-primary:hover { background: var(--orange); color: #fff; transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 28px rgba(40, 42, 115, .22); }
.btn-secondary {
  background: transparent; color: var(--navy); padding: 12px 28px; border-radius: 6px;
  text-decoration: none; font-weight: 500; font-size: 15px; letter-spacing: .3px;
  transition: all .3s; border: 1px solid var(--navy); cursor: pointer; display: inline-flex;
  align-items: center; gap: 8px; font-family: 'MadeTommy', sans-serif;
}
.btn-secondary:hover { background: var(--navy); color: #fff; transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 28px rgba(40, 42, 115, .15); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #e09510; transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 28px rgba(246, 167, 28, .25); }

/* --- HERO --------------------------------------------------------------- */
.hero { padding: 110px 32px 60px; text-align: center; background: #fff; }
.hero-content { max-width: 720px; margin: 0 auto; }
.hero-logo { width: 200px; height: auto; margin-bottom: 32px; }
.hero h1 { font-size: clamp(27px, 3.5vw, 41px); font-weight: 500; color: var(--navy); margin-bottom: 16px; line-height: 1.2; }
.hero h1 span { color: var(--orange); }
.hero .subtitle { font-size: clamp(16px, 1.8vw, 18px); color: var(--text-secondary); font-weight: 300; max-width: 580px; margin: 0 auto 32px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- SERVICES ----------------------------------------------------------- */
.services { padding: 64px 32px; background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: clamp(23px, 2.8vw, 33px); font-weight: 700; color: var(--navy); margin-top: 12px; }
.section-header p { font-size: 16px; color: var(--text-secondary); font-weight: 300; max-width: 560px; margin: 8px auto 0; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
.service-card { background: #fff; border: 2px solid var(--border); border-radius: 14px; padding: 0; transition: all .4s cubic-bezier(.25, .8, .25, 1); position: relative; overflow: hidden; cursor: default; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--navy), var(--orange)); transform: scaleX(0); transition: transform .4s cubic-bezier(.25, .8, .25, 1); transform-origin: left; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(40, 42, 115, .10); border-color: rgba(40, 42, 115, .15); }
.service-card-img { width: 100%; height: 160px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.25, .8, .25, 1); }
.service-card:hover .service-card-img img { transform: scale(1.08); }
.service-card-body { padding: 22px 20px 24px; }
.service-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--text-secondary); font-weight: 300; line-height: 1.7; }

/* --- WHY + STATS -------------------------------------------------------- */
.why-us { padding: 64px 32px; background: #fff; }
.why-content { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.why-text h2 { font-size: clamp(23px, 2.8vw, 33px); font-weight: 700; color: var(--navy); margin: 12px 0 20px; }
.why-text p { font-size: 15px; color: var(--text-secondary); font-weight: 300; line-height: 1.8; margin-bottom: 12px; }
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 24px 16px; text-align: center; }
.stat-card .number { font-size: 33px; font-weight: 700; color: var(--orange); display: block; margin-bottom: 4px; }
.stat-card .label { font-size: 13px; color: var(--text-secondary); font-weight: 400; }

/* --- MID CTA ------------------------------------------------------------ */
.mid-cta { padding: 48px 32px; text-align: center; background: var(--navy); color: #fff; }
.mid-cta p { font-size: clamp(19px, 2.2vw, 25px); font-weight: 300; margin-bottom: 20px; }
.mid-cta p span { color: var(--orange); font-weight: 500; }

/* --- CASES (NEW) -------------------------------------------------------- */
.cases { padding: 64px 32px; background: #fff; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
.case-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 28px 24px; transition: all .3s; }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(40, 42, 115, .08); }
.case-card .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .8px; color: var(--orange); text-transform: uppercase; margin-bottom: 12px; }
.case-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 12px; line-height: 1.3; }
.case-card .problem, .case-card .solution { font-size: 13px; color: var(--text-secondary); font-weight: 300; line-height: 1.7; margin-bottom: 10px; }
.case-card .result { font-size: 14px; font-weight: 500; color: var(--navy); padding-top: 12px; border-top: 1px solid var(--border); margin-top: 12px; }
.case-card .result span { color: var(--orange); font-weight: 700; }

/* --- TEAM (NEW) --------------------------------------------------------- */
.team { padding: 64px 32px; background: var(--bg-alt); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.team-card { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px 20px; }
.team-card .avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--bg-alt); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 28px; color: var(--navy); border: 2px solid var(--border); }
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.team-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.team-card .role { font-size: 13px; color: var(--orange); font-weight: 500; margin-bottom: 8px; }
.team-card p { font-size: 13px; color: var(--text-secondary); font-weight: 300; line-height: 1.6; margin-bottom: 12px; }
.team-card a.linkedin { font-size: 12px; color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color .3s; }
.team-card a.linkedin:hover { color: var(--orange); }

/* --- PRESENCE ----------------------------------------------------------- */
.presence { padding: 64px 32px; background: #fff; }
.presence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 700px; margin: 0 auto; }
.presence-card { text-align: center; padding: 24px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; }
.presence-card .city-img { width: 100%; height: 140px; border-radius: 6px; object-fit: cover; margin-bottom: 16px; }
.presence-card h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.presence-card p { font-size: 14px; color: var(--text-secondary); font-weight: 300; }

/* --- TESTIMONIALS ------------------------------------------------------- */
.testimonials { padding: 64px 32px; background: var(--bg-alt); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1100px; margin: 0 auto; }
.testimonial-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 28px 24px; }
.testimonial-card .quote { font-size: 14px; color: var(--text-secondary); font-weight: 300; line-height: 1.8; margin-bottom: 16px; font-style: italic; }
.testimonial-card .quote::before { content: '"'; font-size: 37px; color: var(--orange); font-style: normal; font-weight: 700; line-height: 0; display: block; margin-bottom: 12px; }
.testimonial-card .author { font-size: 15px; font-weight: 700; color: var(--navy); }
.testimonial-card .role { font-size: 13px; color: var(--text-secondary); font-weight: 300; }

/* --- FINAL CTA ---------------------------------------------------------- */
.final-cta { padding: 64px 32px; background: #fff; text-align: center; }
.final-cta h2 { font-size: clamp(23px, 2.8vw, 33px); font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.final-cta p { font-size: 16px; color: var(--text-secondary); font-weight: 300; max-width: 540px; margin: 0 auto 28px; }
.final-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- FOOTER ------------------------------------------------------------- */
footer { padding: 40px 32px 28px; border-top: 1px solid var(--border); background: #fff; overflow: hidden; }
footer.circuit-pattern::before, footer.circuit-pattern::after { opacity: 0.15; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer-brand img { height: 50px; width: auto; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; color: var(--text-secondary); font-weight: 300; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact a { font-size: 13px; color: var(--text-secondary); text-decoration: none; font-weight: 400; transition: color .3s; display: flex; align-items: center; gap: 6px; }
.footer-contact a:hover { color: var(--orange); }
.footer-legal { display: flex; flex-direction: column; gap: 6px; }
.footer-legal a { font-size: 12px; color: var(--text-secondary); text-decoration: none; font-weight: 400; transition: color .3s; }
.footer-legal a:hover { color: var(--orange); }
.footer-bottom { max-width: 1100px; margin: 24px auto 0; padding-top: 16px; border-top: 1px solid var(--border); text-align: center; font-size: 12px; color: var(--gray); font-weight: 300; }

/* --- ANIMATIONS --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- WHATSAPP FLOAT ----------------------------------------------------- */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; }
.wa-float .wa-icon { width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0, 0, 0, .2); transition: transform .3s, box-shadow .3s; }
.wa-float:hover .wa-icon { transform: scale(1.08); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.wa-float .wa-icon svg { width: 30px; height: 30px; fill: #fff; }
.wa-float .wa-tooltip { background: #fff; color: var(--text-primary); font-family: 'MadeTommy', -apple-system, sans-serif; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 8px; box-shadow: 0 2px 12px rgba(0, 0, 0, .12); white-space: nowrap; opacity: 0; transform: translateX(10px); transition: opacity .3s, transform .3s; pointer-events: none; }
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* --- COOKIE BANNER ----------------------------------------------------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000;
  background: var(--navy); color: #fff; padding: 16px 24px;
  display: none; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; box-shadow: 0 -4px 20px rgba(0, 0, 0, .15);
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 13px; font-weight: 300; line-height: 1.5; max-width: 720px; }
.cookie-banner p a { color: var(--orange); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-btn { padding: 8px 18px; border-radius: 6px; font-family: 'MadeTommy', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; border: none; transition: all .3s; }
.cookie-btn-accept { background: var(--orange); color: #fff; }
.cookie-btn-accept:hover { background: #e09510; }
.cookie-btn-reject { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.cookie-btn-reject:hover { background: rgba(255, 255, 255, .1); }

/* --- LEGAL PAGES -------------------------------------------------------- */
.legal-page { max-width: 800px; margin: 110px auto 60px; padding: 0 32px; }
.legal-page h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.legal-page .updated { font-size: 13px; color: var(--text-secondary); margin-bottom: 32px; }
.legal-page h2 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 28px 0 10px; }
.legal-page p, .legal-page li { font-size: 14px; color: var(--text-secondary); line-height: 1.8; font-weight: 300; margin-bottom: 10px; }
.legal-page ul { padding-left: 24px; }

/* --- RESPONSIVE --------------------------------------------------------- */
@media (max-width: 900px) {
  nav .nav-links, nav .nav-cta-desktop { display: none; }
  .hamburger { display: flex; order: -1; }
  nav .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #e2e2e8; padding: 20px 32px; gap: 16px; border-bottom: 1px solid var(--border); box-shadow: 0 6px 20px rgba(0, 0, 0, .15); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-content { grid-template-columns: 1fr; gap: 32px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .presence-grid { grid-template-columns: 1fr; max-width: 340px; }
  .cases-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card-img { height: 140px; }
  .hero-ctas, .final-cta-buttons { flex-direction: column; align-items: center; }
  .team-grid { grid-template-columns: 1fr; }
  .wa-float .wa-tooltip { display: none; }
}
