/* ===================================================================
   TCOE — Hoja de estilos
   Colores oficiales (Manual de Identidad TCOE):
   Navy    #2F386D  (primario / logotipo)
   Pink    #D98BAC  (Psicología Organizacional)
   Green   #299348  (Construcción y Remodelaciones)
   Teal    #249A80  (Sistemas de Software)
   Dark    #1F4458  (Producción Audiovisual)
   Purple  #7367A8  (secundario)
   Tipografías: Nexa (títulos) · Mulish (texto)
   =================================================================== */

@font-face {
  font-family: 'Nexa';
  src: url('../fonts/Nexa-Heavy.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Nexa';
  src: url('../fonts/Nexa-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('../fonts/Mulish-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --navy: #2F386D;
  --pink: #D98BAC;
  --green: #299348;
  --teal: #249A80;
  --dark: #1F4458;
  --purple: #7367A8;
  --ink: #26304f;
  --muted: #5c6480;
  --bg: #ffffff;
  --bg-soft: #f5f6fa;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(31, 68, 88, .10);
  --font-title: 'Nexa', 'Mulish', sans-serif;
  --font-body: 'Mulish', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-title); font-weight: 800; color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.22rem; }

.eyebrow {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .9rem;
}
.eyebrow.light { color: var(--pink); }

.grad-text {
  background: linear-gradient(90deg, var(--teal), var(--green) 45%, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(31, 68, 88, .10); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; }
.brand-logo { height: 44px; width: auto; }
.main-nav { display: flex; gap: 1.8rem; align-items: center; }
.main-nav a {
  font-weight: 700; font-size: .95rem; color: var(--ink);
  transition: color .2s;
}
.main-nav a:hover { color: var(--teal); }
.nav-cta {
  background: var(--navy); color: #fff !important;
  padding: .55rem 1.3rem; border-radius: 999px;
  transition: background .2s;
}
.nav-cta:hover { background: var(--dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 5rem 0 6rem; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50% 50% 50% 0; filter: blur(60px); opacity: .16; }
.blob-1 { width: 420px; height: 420px; background: var(--teal);  top: -120px; right: -80px; }
.blob-2 { width: 340px; height: 340px; background: var(--pink);  bottom: -120px; left: -100px; }
.blob-3 { width: 260px; height: 260px; background: var(--purple); top: 40%; left: 55%; opacity: .10; }
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.2fr .8fr;
  gap: 3rem; align-items: center;
}
.hero-sub { color: var(--muted); font-size: 1.08rem; margin: 1.4rem 0 2rem; max-width: 34rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-art img { width: min(320px, 70%); margin-inline: auto; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; font-family: var(--font-title); font-weight: 800;
  font-size: .95rem; padding: .85rem 1.7rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 24px rgba(47, 56, 109, .30); }
.btn-primary:hover { background: var(--dark); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--pink); color: #fff; }

/* ---------- Secciones ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 3.2rem; }
.section-sub { color: var(--muted); margin-top: 1rem; }

/* ---------- Nosotros ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.value-card {
  background: #fff; border: 1px solid #e8eaf2; border-radius: var(--radius);
  padding: 2rem 1.7rem; box-shadow: var(--shadow);
}
.value-dot {
  width: 46px; height: 46px; border-radius: 50% 50% 50% 0;
  background: var(--c, var(--navy)); margin-bottom: 1.2rem;
  transform: rotate(-45deg);
}
.value-card p { color: var(--muted); margin-top: .6rem; font-size: .97rem; }

/* ---------- Divisiones ---------- */
.div-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.div-card {
  background: #fff; border-radius: var(--radius);
  padding: 2.2rem 2rem; box-shadow: var(--shadow);
  border-top: 5px solid var(--accent, var(--navy));
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.div-card:hover { transform: translateY(-6px); box-shadow: 0 18px 50px rgba(31, 68, 88, .16); }
.div-logo { height: 64px; width: auto; align-self: flex-start; margin-bottom: 1.2rem; }
.div-card h3 { color: var(--accent, var(--navy)); }
.div-card > p { color: var(--muted); margin: .7rem 0 1rem; font-size: .97rem; }
.div-card ul { list-style: none; margin-bottom: 1.4rem; }
.div-card li {
  position: relative; padding-left: 1.3rem; color: var(--ink);
  font-size: .94rem; font-weight: 600; margin-bottom: .35rem;
}
.div-card li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 9px; height: 9px; border-radius: 50% 50% 50% 0;
  background: var(--accent, var(--navy));
}
.div-link {
  margin-top: auto; font-family: var(--font-title); font-weight: 800;
  font-size: .9rem; color: var(--accent, var(--navy));
}
.div-link:hover { text-decoration: underline; }

/* ---------- Alianzas ---------- */
.alianzas-inner {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 3rem; align-items: center;
}
.alianzas-inner .btn { margin-top: 1.8rem; }
.alianzas-logo { width: min(380px, 80%); margin-inline: auto; }

/* ---------- Contacto ---------- */
.section-dark {
  background: linear-gradient(135deg, var(--navy), var(--dark) 70%);
  color: #fff;
}
.section-dark h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.contact-item { margin-bottom: 1.6rem; }
.contact-label {
  display: block; font-family: var(--font-title); font-weight: 800;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--pink); margin-bottom: .2rem;
}
.contact-item a, .contact-item p { font-size: 1.1rem; font-weight: 700; color: #fff; }
.contact-address { font-size: 1rem !important; font-weight: 600 !important; line-height: 1.55; }
.contact-item a:hover { color: var(--pink); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 0; border-radius: 12px;
  padding: .9rem 1.1rem; width: 100%; resize: vertical;
}
.contact-form select:invalid { color: #8a8fa3; }
.contact-form :focus { outline: 3px solid var(--teal); }
.contact-form .btn { align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer { background: #17203c; color: #cfd4e6; padding: 2.6rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-logo { height: 38px; width: auto; }
.footer-nav { display: flex; gap: 1.4rem; }
.footer-nav a { font-size: .9rem; font-weight: 600; }
.footer-nav a:hover { color: #fff; }
.footer-note { font-size: .85rem; opacity: .7; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art img { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner, .alianzas-inner, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 4.5rem; }
  .hero-art { order: -1; }
  .hero-art img { width: 180px; }
  .values-grid, .div-grid { grid-template-columns: 1fr; }
  .alianzas-logo { width: min(300px, 70%); }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: center;
    padding: 1.4rem 0; gap: 1.1rem;
    box-shadow: 0 16px 30px rgba(31, 68, 88, .12);
    display: none;
  }
  .main-nav.open { display: flex; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
}
