@font-face {
  font-family: 'Alumni Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/AlumniSans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Alumni Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/AlumniSans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lexend Deca';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/LexendDeca-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lexend Deca';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/LexendDeca-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  font-size: 12px;
  --accent-1: #16425B;
  --accent-2: #2F6690;
  --accent-3: #82B4D3;
  --accent-4: #235E70;
  --accent-5: #30A2C5;
  --accent-6: #CDE7EF;
  --base: #ffffff;
  --contrast: #111111;
  --midtone: #f4f4f4;
  --contrast-midtone: #323232;
  --title-blue: #127194;
  --title-gray: #666666;
  --font: 'Lexend Deca', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Alumni Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --content-width: 1200px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--contrast);
  background-color: var(--page-bg, #0f2536);
  transition: background-color 0.3s ease;
  line-height: 1.5;
}

.page {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--base);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
}

body:has(.hero-circle:hover) {
  --title-blue: #b8860b;
  --page-bg: #3a2b0d;
}

body:has(.logo:hover) {
  --title-blue: #e6162d;
  --page-bg: #2a0509;
}

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

a { color: var(--accent-1); }
a:hover { color: var(--accent-2); }

strong, b { color: var(--title-blue); }

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

h1, h2, h3 { line-height: 1.15; color: var(--accent-1); font-family: var(--font-heading); font-weight: 700; }
h1 { font-size: clamp(2.4rem, 1.9rem + 2.5vw, 3.6rem); margin: 0 0 24px; color: var(--title-gray); text-transform: lowercase; }
h2 { font-size: clamp(1.8rem, 1.5rem + 1.4vw, 2.4rem); }
h3 { font-size: 1.4rem; font-weight: 600; }
.col-heading { margin-top: 0; color: var(--title-blue); }
.col-heading .muted { color: var(--title-gray); }

.section { padding: 16px 0; }
.section-tint { background-color: var(--midtone); }
main { counter-reset: section-counter; }
.section-title {
  position: relative;
  text-align: left;
  margin-bottom: 32px;
  color: var(--title-gray);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.3px;
  border-left: 6px solid var(--title-blue);
  padding-left: 16px;
}
.section-title::before {
  counter-increment: section-counter;
  content: counter(section-counter);
  position: absolute;
  right: 100%;
  margin-right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #cccccc;
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
}
.section-title .accent { color: var(--title-blue); font-weight: 700; }
.hero h1 .accent { color: var(--title-blue); font-weight: 700; }

/* ---- Collapsible sections ---- */
.collapsible-title {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 40px;
}
.collapsible-title::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 3px solid var(--title-blue);
  border-bottom: 3px solid var(--title-blue);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}
.collapsible-title[aria-expanded="true"]::after {
  transform: translateY(-35%) rotate(-135deg);
}
.collapsible-content[hidden] { display: none !important; }
.sub-heading {
  font-size: 1.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--title-blue);
  margin: 0 0 12px;
}
.section-lede { text-align: left; display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.inline-icon { display: inline-block; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--base);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  padding: 6px 10px;
  background: #127194;
  border: 2px solid #127194;
  border-radius: 8px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.logo img { height: 80px; width: auto; display: block; }
.logo img.logo-gold,
.logo img.logo-red {
  position: absolute;
  top: 6px;
  left: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
body:has(.hero-circle:hover) .logo {
  background: #b8860b;
  border-color: #b8860b;
}
body:has(.hero-circle:hover) .logo img.logo-gold { opacity: 1; }
body:has(.logo:hover) .logo {
  background: #e6162d;
  border-color: #e6162d;
}
body:has(.logo:hover) .logo img.logo-red { opacity: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--accent-1);
}

.site-nav {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 10px;
  flex-wrap: nowrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--contrast);
  font-size: 0.82rem;
  font-weight: 400;
  text-align: center;
}
.site-nav a:hover { color: var(--accent-2); }
.nav-util-badge {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--title-blue);
  border-radius: 999px;
  overflow: hidden;
}
.nav-util-badge button {
  background: none;
  border: none;
  border-left: 1px solid var(--title-blue);
  color: var(--title-blue);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 12px;
  cursor: pointer;
}
.nav-util-badge button:first-child { border-left: none; }
.nav-util-badge button:hover { background: var(--title-blue); color: var(--base); }
.nav-cta {
  background: var(--title-blue);
  color: var(--base) !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--base);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  }
  .site-nav.is-open { display: flex; }
  .nav-cta { align-self: flex-start; }
}

/* ---- Hero ---- */
.hero {
  padding: 24px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}
.hero-text, .hero-image { min-width: 0; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { color: var(--title-gray); font-weight: 400; }

.feature-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feature-list li img { flex: 0 0 auto; margin-top: 2px; }
.feature-list li p { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--title-blue);
  color: var(--base);
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(18, 113, 148, 0.3);
}
.btn::after {
  content: "\2192";
}
.btn:hover { color: var(--base); }

.hero-circle {
  position: relative;
  width: 100%;
  max-width: min(360px, calc((100vw - 20px) / 1.45));
  aspect-ratio: 1 / 1;
  margin: 40px auto;
}
@media (max-width: 860px) {
  .hero-circle { margin: 16px auto; }
}
.hero-circle img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--title-blue);
  transition: border-color 0.3s ease;
  display: block;
}
.hero-circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 145%;
  height: 145%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-circle-text text {
  fill: var(--title-blue);
  transition: fill 0.3s ease;
}
.hero-circle:hover .hero-circle-text text {
  fill: #b8860b;
}

.hero-circle img.ai-badge {
  top: 50%;
  left: auto;
  right: 8%;
  bottom: auto;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 0;
  border: none;
  opacity: 0.5;
  z-index: 2;
}

.team-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 20px;
}
@media (max-width: 860px) {
  .team-row { flex-wrap: wrap; }
}
.team-avatar {
  position: relative;
  display: inline-flex;
}
.team-avatar-tip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--title-blue);
  color: var(--base);
  font-size: 0.72rem;
  line-height: 1.3;
  padding: 6px 10px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 20;
}
.team-avatar-tip strong { color: var(--base); }
.hero-circle .team-avatar-tip { transform: translateX(-50%) translateY(-30px); }
.team-avatar:hover .team-avatar-tip,
.team-avatar:focus-within .team-avatar-tip,
.hero-circle:hover .team-avatar-tip,
.hero-circle:focus-within .team-avatar-tip {
  opacity: 1;
  visibility: visible;
}
.team-row img {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--title-blue);
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

/* ---- Two-column generic sections ---- */
.two-col {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.two-col > div, .two-col > .col-text, .two-col > .col-image {
  flex: 1 1 380px;
}
#ComoTeAyudamos .two-col > div:last-child,
#contact .two-col > div:last-child {
  border-left: 1px solid rgba(0,0,0,0.12);
  padding-left: 48px;
}
.col-image img { border-radius: 8px; }

.team-cluster {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  margin: 40px auto;
}
.team-cluster img {
  position: absolute;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--title-blue);
  transition: border-color 0.3s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transform: translate(-50%, -50%);
}
.team-cluster .tc-1 { width: 38%; height: 38%; top: 20%; left: 50%; z-index: 1; }
.team-cluster .tc-2 { width: 34%; height: 34%; top: 38%; left: 33%; z-index: 2; }
.team-cluster .tc-3 { width: 34%; height: 34%; top: 38%; left: 67%; z-index: 2; }
.team-cluster .tc-4 { width: 32%; height: 32%; top: 58%; left: 22%; z-index: 3; }
.team-cluster .tc-5 { width: 34%; height: 34%; top: 64%; left: 50%; z-index: 3; }
.team-cluster .tc-6 { width: 32%; height: 32%; top: 58%; left: 78%; z-index: 3; }

.tc-label {
  position: absolute;
  width: 118px;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--contrast-midtone);
  transform: translate(-50%, -50%);
}
.tc-label strong { display: block; color: var(--title-blue); font-size: 0.8rem; }
.tl-1 { top: -8%; left: 50%; text-align: center; }
.tl-2 { top: 38%; left: -16%; text-align: right; }
.tl-3 { top: 38%; left: 116%; text-align: left; }
.tl-4 { top: 60%; left: -16%; text-align: right; }
.tl-5 { top: 90%; left: 50%; text-align: center; }
.tl-6 { top: 60%; left: 116%; text-align: left; }

/* ---- Team ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px 12px;
  margin-top: 32px;
}
.team-member { text-align: center; }
.team-member img {
  width: 100%;
  max-width: 130px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 1px solid var(--title-blue);
  transition: border-color 0.3s ease;
}
.team-member .name { font-weight: 700; margin: 0; color: var(--title-blue); }
.team-member .role { font-size: 0.85rem; color: var(--contrast-midtone); margin: 4px 0 0; }

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.hero-services-copy {
  margin-top: 32px;
}
.service-card {
  background: var(--base);
  border-radius: 8px;
  padding: 24px;
  text-align: left;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.service-card img { margin: 0 0 16px; }
.service-card h3 { margin: 0 0 10px; color: var(--title-blue); }
.service-card p { margin: 0; font-size: 0.92rem; }

hr {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.12);
  margin: 16px 0;
}
.feature-divider { margin: 6px 0; }

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: flex-start;
}
#Servicios .logo-row { gap: 6px; justify-content: center; }
.hero-services-copy .logo-row { gap: 4px; justify-content: center; }
.hero-services-copy .logo-row img { width: 28px; height: 28px; }
.icon-tooltip {
  position: relative;
  display: inline-flex;
}
.icon-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--title-blue);
  color: var(--base);
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 20;
}
.icon-tooltip:hover::after,
.icon-tooltip:focus-within::after {
  opacity: 1;
  visibility: visible;
}
.logo-row-clients img { max-height: 70px; width: auto; }
.logo-row-clients a { display: flex; align-items: center; }

.skills { font-size: 0.85rem; color: var(--contrast-midtone); line-height: 1.7; }

/* ---- Proyectos ---- */
.client-list {
  columns: 2;
  gap: 40px;
  padding-left: 20px;
  margin: 24px 0;
}
.client-list li { margin-bottom: 10px; break-inside: avoid; }
.stars { font-size: 1.5rem; text-align: left; }

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
details {
  background: var(--base);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
summary { font-weight: 600; cursor: pointer; color: var(--accent-1); }
details p { margin: 10px 0 0; font-size: 0.92rem; }

/* ---- Contact ---- */
.card-image { margin-top: 16px; max-width: 350px; border: 1px solid var(--accent-6); border-radius: 4px; }

#contact form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
}
#contact label { font-weight: 600; font-size: 0.9rem; margin-top: 10px; }
.req { font-weight: 400; color: var(--contrast-midtone); font-size: 0.8rem; margin-left: 6px; }
#contact input, #contact textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
#contact input:focus, #contact textarea:focus {
  outline: 2px solid var(--accent-5);
  outline-offset: 1px;
}
#contact .btn { margin-top: 16px; align-self: flex-start; }
#tb-form-status { font-size: 0.9rem; display: none; }

.tagline { text-align: left; padding: 32px 0; font-size: 0.95rem; }

/* ---- Footer ---- */
.site-footer {
  background: var(--contrast-midtone);
  color: var(--midtone);
  padding: 32px 0;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.footer-grid p { margin: 0; }
.social-links { display: flex; gap: 16px; }
.social-links a { color: var(--midtone); }
.social-links a:hover { color: var(--accent-3); }
.footer-links a { color: var(--midtone); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .client-list { columns: 1; }
}
@media (max-width: 860px) {
  #ComoTeAyudamos .two-col > div:last-child,
  #contact .two-col > div:last-child {
    border-left: none;
    padding-left: 0;
  }
}
