/* Grupo Constructor Toledo — gpoctoledo.mx */
:root {
  --navy: #1F2A5C;
  --navy-dark: #141B3D;
  --navy-2: #232C5A;
  --ink: #0B1026;
  --text: #4F566B;
  --yellow: #FFC03D;
  --yellow-hover: #F2B020;
  --yellow-tint: #FFF1CC;
  --gray-bg: #F3F5F7;
  --line: #E3E6EE;
  --soft: #C9D1EE;
  --radius: 4px;
  --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; overflow-x: hidden; }
body { font-family: 'Figtree', sans-serif; color: var(--ink); background: #fff; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: #3B4A8C; }
img { max-width: 100%; }
h1, h2, p { margin: 0; }
input, textarea, button { font-family: 'Figtree', sans-serif; }

.wrap { max-width: var(--max); margin: 0 auto; }
.section { padding: 110px 24px; }
.section--gray { background: var(--gray-bg); }
.center-head { max-width: 640px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

.chip { display: inline-block; padding: 8px 12px; border-radius: var(--radius); background: var(--yellow-tint); color: var(--navy); font-size: 16px; font-weight: 500; }
.chip--dark { background: rgba(255,255,255,0.12); color: var(--yellow); }
.h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.2; font-weight: 700; color: var(--ink); text-wrap: balance; }
.lead { font-size: 18px; line-height: 1.6; color: var(--text); text-wrap: pretty; }

/* Botones — "Píldora con círculo" (1b) */
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 6px 6px 6px 26px; min-height: 56px; border: 1.5px solid transparent; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: 17px; font-weight: 700; line-height: 1; cursor: pointer; transition: background .22s, border-color .22s, color .22s, box-shadow .22s; }
.btn:not(:has(.btn__ic)) { padding: 0 26px; }
.btn__ic { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--yellow); font-size: 16px; transition: transform .25s; }
.btn__ic i { transform: none; }
.btn:hover { background: var(--yellow-hover); color: var(--navy); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn:hover .btn__ic { transform: translateX(3px); }
.btn--outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--outline .btn__ic { background: #fff; color: var(--navy); }
.btn--outline:hover { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark .btn__ic { background: var(--yellow); color: var(--navy); }
.btn--dark:hover { background: var(--navy-dark); color: #fff; }

/* HERO */
.hero { position: relative; min-height: 820px; display: flex; flex-direction: column; background: var(--navy-dark); overflow: hidden; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center 35%; opacity: 0; transform: scale(1); transition: opacity 1.2s ease, transform 7s ease; }
.hero__slide.is-active { opacity: 1; transform: scale(1.06); }
.hero__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(14,20,48,.92) 0%, rgba(14,20,48,.7) 55%, rgba(14,20,48,.35) 100%); }
.header { position: relative; z-index: 3; width: 100%; max-width: 1288px; margin: 0 auto; padding: 24px 24px 0; }
.header__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 28px; border-radius: var(--radius); background: rgba(255,255,255,.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.brand:hover { color: #fff; }
.brand img { height: 52px; width: auto; display: block; }
.brand span { font-size: 15px; font-weight: 700; letter-spacing: .08em; line-height: 1.2; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 17px; font-weight: 600; }
.nav a { color: #fff; }
.nav a:hover { color: var(--yellow); }
.btn--header { min-height: 48px; padding: 4px 4px 4px 20px; font-size: 15px; gap: 12px; }
.btn--header .btn__ic { width: 38px; height: 38px; font-size: 14px; }
.hero__body { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; width: 100%; max-width: 1288px; margin: 0 auto; padding: 110px 24px 120px; }
.hero__content { max-width: 780px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.06; font-weight: 800; color: #fff; text-wrap: balance; }
.hero__text { max-width: 640px; font-size: 20px; line-height: 1.55; color: #fff; opacity: .88; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.hero__dots { display: flex; gap: 10px; margin-top: 40px; }
.hero__dot { width: 16px; height: 6px; border: none; border-radius: 3px; padding: 0; cursor: pointer; background: rgba(255,255,255,.5); transition: all .4s; }
.hero__dot.is-active { width: 40px; background: var(--yellow); }

/* Círculo certificación (hero) */
.seal { position: absolute; z-index: 2; right: max(24px, calc((100% - 1288px) / 2 + 110px)); bottom: 40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(20,27,61,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; }
.seal__ring { position: absolute; inset: 0; pointer-events: none; }
.seal__ring svg { width: 100%; height: 100%; display: block; animation: gctSpin 24s linear infinite; }
.seal__ring text { fill: #fff; font-family: 'Figtree', sans-serif; font-size: 15px; font-weight: 700; }
.seal__logo { width: 118px; height: 118px; border-radius: 50%; overflow: hidden; background: #fff; }
.seal__logo img, .cert-seal__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes gctSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .seal__ring svg, .cert-seal svg { animation: none; } .hero__slide { transition: opacity .4s; } }
@media (max-width: 760px) { .seal { width: 150px; height: 150px; bottom: 24px; } .seal__logo { width: 88px; height: 88px; } .hero { min-height: 760px; } }

/* NOSOTROS */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 64px; align-items: center; }
.about-imgs { position: relative; padding-bottom: 110px; }
.about-imgs .img1 { width: 72%; height: 380px; object-fit: cover; border-radius: var(--radius); display: block; }
.about-imgs .img2 { position: absolute; right: 0; bottom: 0; width: 56%; height: 290px; object-fit: cover; border-radius: var(--radius); border: 8px solid #fff; display: block; }
.about-count { position: absolute; left: 0; bottom: 0; width: 40%; min-width: 180px; padding: 34px 26px; border-radius: var(--radius); background: var(--navy); color: #fff; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.about-count strong { font-size: 46px; line-height: 1; font-weight: 800; color: var(--yellow); }
.about-count span { font-size: 16px; opacity: .85; }
.checklist { display: flex; flex-direction: column; width: 100%; margin-top: 10px; }
.checklist div { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 18px; line-height: 1.45; font-weight: 600; }
.checklist i { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.mv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 30px; margin-top: 80px; }
.mv article { display: flex; flex-direction: column; gap: 16px; padding: 44px 40px; border-radius: var(--radius); background: var(--gray-bg); border-top: 4px solid var(--yellow); }
.mv h3 { margin: 0; font-size: 28px; font-weight: 700; color: var(--navy); }
.mv p { font-size: 18px; line-height: 1.65; color: var(--text); text-wrap: pretty; }

/* VALORES */
.cards-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 24px; margin-top: 56px; }
.value { display: flex; flex-direction: column; gap: 18px; padding: 36px 30px; border-radius: var(--radius); background: #fff; color: var(--ink); transition: background .3s, color .3s; }
.value:hover { background: var(--navy); color: #fff; }
.value__icon { width: 60px; height: 60px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.value h3 { margin: 0; font-size: 22px; font-weight: 700; color: inherit; }
.value p { font-size: 16px; line-height: 1.65; color: inherit; opacity: .82; }

/* SERVICIOS */
.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.split-head .lead { max-width: 460px; }
.service { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--gray-bg); transition: box-shadow .3s; }
.service:hover { box-shadow: 0 18px 40px rgba(31,42,92,.14); }
.service__img { width: 100%; height: 220px; background-size: cover; background-position: center; transition: transform .5s; }
.service:hover .service__img { transform: scale(1.05); }
.service__body { display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 30px; position: relative; background: var(--gray-bg); }
.service__num { font-size: 26px; font-weight: 800; color: var(--yellow); }
.service h3 { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 700; }

/* CERTIFICACIÓN */
.cert { padding: 120px 24px; background: var(--navy); }
.cert-seal { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; }
.cert-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: gctSpin 28s linear infinite; }
.cert-seal text { fill: #fff; font-family: 'Figtree', sans-serif; font-size: 15px; font-weight: 700; }
.cert-seal__logo { width: 58%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #fff; }
.cert h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.15; font-weight: 700; color: #fff; text-wrap: balance; }
.cert dl { width: 100%; margin: 6px 0 0; }
.cert dl div { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 20px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.16); }
.cert dl div:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.cert dt { font-size: 16px; color: var(--soft); }
.cert dd { margin: 0; font-size: 18px; font-weight: 600; color: #fff; }
@media (max-width: 520px) { .cert dl div { grid-template-columns: 1fr; gap: 4px; } }

/* PROYECTOS */
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px; margin-top: 56px; }
.project { display: flex; flex-direction: column; gap: 18px; padding: 32px 30px 34px; background: #fff; border-radius: var(--radius); border-top: 4px solid var(--navy); transition: border-color .3s, box-shadow .3s; }
.project:hover { border-top-color: var(--yellow); box-shadow: 0 18px 40px rgba(31,42,92,.12); }
.project__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project__tag { padding: 6px 10px; border-radius: var(--radius); background: var(--yellow-tint); color: var(--navy); font-size: 14px; font-weight: 700; }
.project__num { font-size: 28px; font-weight: 800; color: #D6DAE6; }
.project h3 { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 700; text-wrap: pretty; }
.project__place { display: flex; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: var(--text); }
.project__place i { margin-top: 4px; color: var(--navy); }
.others { margin-top: 56px; display: flex; flex-direction: column; gap: 22px; }
.others h3 { margin: 0; font-size: 24px; font-weight: 700; }
.others ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); column-gap: 48px; }
.others li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid #DCE0E8; font-size: 16px; line-height: 1.55; color: #2E354A; }
.others li i { flex-shrink: 0; margin-top: 4px; color: var(--navy); }

/* CLIENTES */
.clients { padding: 70px 24px; border-bottom: 1px solid var(--line); }
.clients h2 { font-size: 22px; font-weight: 700; text-align: center; }
.clients__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1px; width: 100%; max-width: 1000px; margin: 34px auto 0; background: var(--line); border: 1px solid var(--line); }
.clients__grid div { height: 150px; display: flex; align-items: center; justify-content: center; padding: 0 24px; background: #fff; }
.clients__grid img { height: auto; display: block; }

/* SOSTENIBILIDAD */
.sust { position: relative; padding: 130px 24px; overflow: hidden; background: var(--navy-dark) center / cover no-repeat; }
.sust::before { content: ""; position: absolute; inset: 0; background: rgba(14,20,48,.82); }
.sust .wrap { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.sust h2 { max-width: 760px; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.15; font-weight: 700; color: #fff; text-wrap: balance; }
.sust p { max-width: 720px; font-size: 20px; line-height: 1.6; color: #fff; opacity: .88; }

/* CONTACTO */
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 34px 28px; width: 100%; margin-top: 20px; }
.contact-info > div { display: flex; gap: 16px; }
.contact-info i { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.contact-info small { display: block; font-size: 16px; color: var(--text); margin-bottom: 6px; }
.contact-info a, .contact-info span { font-size: 17px; line-height: 1.5; font-weight: 700; color: var(--ink); word-break: break-word; }
.form { display: flex; flex-direction: column; gap: 20px; padding: 36px; border-radius: var(--radius); background: var(--gray-bg); }
.form h3 { margin: 0; font-size: 30px; font-weight: 700; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 10px; font-size: 16px; font-weight: 500; color: var(--text); }
.form input, .form textarea { padding: 0 18px; height: 56px; border: 1px solid #fff; border-radius: var(--radius); background: #fff; font-size: 17px; color: var(--ink); outline: none; }
.form textarea { height: auto; padding: 16px 18px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--navy); }
.form .btn { align-self: flex-start; }
.form__msg { font-size: 15px; font-weight: 600; color: var(--navy); min-height: 1em; }
.hp { position: absolute; left: -9999px; }

/* FOOTER */
.footer { background: var(--navy-dark); color: #fff; padding: 90px 24px 0; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 44px; padding-bottom: 70px; border-bottom: 1px solid #2A3360; }
.footer__grid > div { display: flex; flex-direction: column; gap: 20px; }
.footer h4 { margin: 0; font-size: 20px; font-weight: 700; }
.footer p, .footer li { font-size: 17px; line-height: 1.7; color: var(--soft); margin: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer a { color: var(--soft); }
.footer a:hover { color: var(--yellow); }
.footer .strong a { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-2); color: #fff; display: flex; align-items: center; justify-content: center; }
.social a:hover { background: var(--yellow); color: var(--navy); }
.copy { padding: 28px 0; text-align: center; font-size: 16px; color: var(--soft); }

/* MODAL */
.modal { position: fixed; inset: 0; z-index: 9999; background: rgba(11,16,38,.86); display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.is-open { display: flex; }
.modal__card { width: min(100%, 760px); max-height: calc(100vh - 48px); display: flex; flex-direction: column; border-radius: 6px; overflow: hidden; background: #fff; }
.modal__head { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal__head img { width: 44px; height: 44px; }
.modal__head div { flex: 1; min-width: 0; }
.modal__head strong { display: block; font-size: 18px; }
.modal__head span { font-size: 15px; color: var(--text); }
.modal__x { flex-shrink: 0; width: 44px; height: 44px; border: none; border-radius: 50%; background: var(--gray-bg); color: var(--navy); font-size: 18px; cursor: pointer; }
.modal__x:hover { background: var(--yellow); }
.modal__body { flex: 1; min-height: 0; overflow: auto; background: var(--gray-bg); padding: 20px; display: flex; justify-content: center; }
.modal__body img { max-height: calc(100vh - 240px); width: auto; height: auto; box-shadow: 0 8px 24px rgba(20,27,61,.14); }
.modal__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--line); }
.btn--ghost { background: #fff; border-color: #D6DAE3; color: var(--navy); min-height: 48px; font-size: 15px; }
.btn--ghost:hover { background: #fff; border-color: var(--navy); color: var(--navy); box-shadow: none; }
.btn--sm { min-height: 48px; font-size: 15px; }

/* PRELOADER */
.preloader { position: fixed; inset: 0; z-index: 9999; background: var(--navy-dark); display: flex; align-items: center; justify-content: center; transition: opacity .5s ease, visibility .5s ease; }
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__box { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
.preloader__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-color: transparent var(--yellow) transparent var(--yellow); animation: gctPreSpin 1.5s linear infinite; }
.preloader__box img { width: 64px; height: auto; animation: gctPrePulse 1.5s ease-in-out infinite; }
@keyframes gctPreSpin { to { transform: rotate(360deg); } }
@keyframes gctPrePulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
