/* FACI HOUSE — SHARED STYLES v2 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=PT+Sans:ital,wght@0,400;0,700;1,400&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* === BRAND COLORS === */
  --teal-dark:  #052C2E;  /* verde muy oscuro — fondos, textos */
  --teal:       #026763;  /* verde teal — H del logo, acentos */
  --teal-light: #e6f2f2;  /* teal muy claro — fondos sutiles */
  --amber:      #F5A100;  /* amarillo/dorado — F del logo, CTAs */
  --amber-light:#f7b733;
  --amber-dim:  rgba(245,161,0,.15);
  --cream:      #F2F2F2;  /* gris claro — fondos de sección */
  --cream-2:    #e8e8e8;
  --dark:       #052C2E;
  --white:      #ffffff;
  --gray-100:   #f5f5f5;
  --gray-200:   #e0e0e0;
  --gray-400:   #9e9e9e;
  --gray-600:   #616161;
  --gray-800:   #333333;
  /* === TYPOGRAPHY === */
  --font-title: 'Poppins', sans-serif;
  --font-body:  'PT Sans', sans-serif;
  /* === TOKENS === */
  --radius:    10px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,.1);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.14);
  --shadow-xl: 0 32px 80px rgba(0,0,0,.18);
  --ease:        cubic-bezier(.4,0,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --t: .3s var(--ease);
  /* gradient helper */
  --gradient-1: linear-gradient(90deg, var(--teal), var(--amber));
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

/* LAYOUT */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-dim);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--teal-dark);
  margin-bottom: 14px;
  line-height: 1.1;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.accent { color: var(--amber); }
.accent-teal { color: var(--teal); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .92rem;
  transition: var(--t);
  letter-spacing: .01em;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.1);
  opacity: 0;
  transition: opacity .2s;
}
.btn:hover::after { opacity: 1; }
.btn-primary { background: var(--amber); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,160,32,.35); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: var(--white); color: var(--teal-dark); border-color: var(--white); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,107,90,.3); }
.btn-ghost { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-ghost:hover { background: var(--teal); color: var(--white); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-2); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .3s var(--ease-spring); }
.btn:hover svg { transform: translateX(3px); }

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.scale-in { transform: scale(.92); }
.reveal.visible { opacity: 1; transform: none; }

/* TOPBAR */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  background: var(--teal-dark);
  color: rgba(255,255,255,.85);
  font-size: .77rem;
  padding: 7px 0;
  letter-spacing: .02em;
  overflow: hidden;
  width: 100%;
}
.topbar-marquee, .topbar-track {
  display: inline-flex;
  gap: 60px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.topbar strong { color: var(--amber); }
.topbar-dot { color: var(--amber); margin: 0 8px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 34px; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250,248,244,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow-md); }

/* push page content below fixed topbar + nav */
body { padding-top: 104px; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .8; }
.nav-logo-icon-img {
  height: 32px;
  width: auto;
  display: block;
}
.nav-logo-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--teal-dark);
  letter-spacing: -.01em;
}
.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.footer-logo-img {
  height: 44px;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: 7px 13px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--teal-dark); background: var(--teal-light); }
.nav-links a.active { color: var(--teal-dark); background: var(--teal-light); font-weight: 600; }

/* Desktop CTA */
.nav-cta {
  padding: 9px 20px !important;
  font-size: .83rem !important;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ---- Burger (hidden on desktop) ---- */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background .2s;
  flex-shrink: 0;
}
.nav-burger:hover { background: var(--gray-100); }
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}
/* Burger → X animation */
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile Drawer (hidden by default) ---- */
.nav-drawer {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  padding: 16px 24px 24px;
  gap: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}
.nav-drawer a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: 13px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .2s, color .2s;
  border-bottom: 1px solid var(--gray-100);
}
.nav-drawer a:last-of-type { border-bottom: none; }
.nav-drawer a:hover { color: var(--teal-dark); background: var(--teal-light); }
.nav-drawer a.active { color: var(--teal-dark); font-weight: 700; }
.nav-drawer-cta {
  margin-top: 12px;
  text-align: center;
  justify-content: center;
  width: 100%;
  border-bottom: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav-links,
  .nav-cta { display: none !important; }

  .nav-burger { display: flex; }

  .nav-drawer.open { display: flex; }
}

/* FOOTER */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 80px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 52px;
}
.footer-brand p { margin-top: 14px; font-size: .88rem; line-height: 1.75; }
.footer h4 {
  font-family: var(--font-title);
  color: var(--white);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 18px;
}
.footer-links a {
  font-size: .86rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  transition: var(--t);
  color: rgba(255,255,255,.55);
}
.footer-links a:hover { color: var(--amber); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: var(--t);
  color: rgba(255,255,255,.6);
}
.footer-socials a:hover { background: var(--amber); border-color: var(--amber); color: var(--white); transform: translateY(-2px); }
.footer-socials svg { width: 16px; height: 16px; fill: currentColor; }

/* PAGE HERO */
.page-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, #0a2e24 100%);
  padding: 130px 0 80px;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(232,160,32,.12) 0%, transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(26,107,90,.2) 0%, transparent 45%);
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero .section-title { color: var(--white); }
.page-hero .section-sub { color: rgba(255,255,255,.65); }

/* CARDS */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--t);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }

/* FORM */
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .83rem;
  margin-bottom: 7px;
  color: var(--gray-800);
  letter-spacing: .01em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  transition: var(--t);
  background: var(--cream);
  color: var(--dark);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(26,107,90,.08);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* CUSTOM CURSOR */
.cursor {
  width:
.cursor.hover { width: 20px; height: 20px; background: var(--teal); }
.cursor-ring.hover { width: 54px; height: 54px; opacity: .3; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 32px; right: 32px;
  background: var(--dark);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  font-weight: 500;
  font-size: .9rem;
  transform: translateY(80px);
  opacity: 0;
  transition: var(--t);
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  border-left: 4px solid var(--amber);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 20px; height: 20px; color: var(--amber); flex-shrink: 0; }

/* NOISE TEXTURE OVERLAY */
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .4;
}

/* RESPONSIVE */
@media(max-width:900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .section { padding: 80px 0; }
  .cursor, .cursor-ring { display: none; }
}
@media(max-width:600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}
