/*
Theme Name: GCYM Corporativo
Theme URI: https://www.grupogcym.com
Author: Grupo GCYM
Description: Tema corporativo de una sola página para Grupo GCYM — González Construcción y Mantenimiento, S.A. de C.V. Basado en el Currículum Empresarial: servicios, sectores, proyectos, cobertura nacional, clientes y contacto. Todo el contenido se edita desde Apariencia → Editor.
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gcym
*/

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }
body { -webkit-font-smoothing: antialiased; }

/* ---------- Header ---------- */
.wp-site-blocks > header, .gcym-header-wrap { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > header { top: 32px; }
.gcym-header { box-shadow: 0 1px 0 rgba(27,30,35,.08); backdrop-filter: saturate(140%) blur(6px); }
.gcym-header .wp-block-navigation a { color: #1B1E23; transition: color .2s; }
.gcym-header .wp-block-navigation a:hover { color: #D61E2B; }
.gcym-logo img { height: 46px !important; width: auto !important; }

/* ---------- Brand motif: red slash before kickers (echoes the slash in the logo's M) ---------- */
.gcym-kicker {
  font-family: var(--wp--preset--font-family--inter);
  font-size: .8rem !important; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--wp--preset--color--rojo) !important; display: flex; align-items: center; gap: .7rem;
}
.gcym-kicker::before { content: ""; width: 14px; height: 18px; background: var(--wp--preset--color--rojo); transform: skewX(-18deg); flex: none; }
.has-text-align-center.gcym-kicker { justify-content: center; }

/* ---------- Cards ---------- */
.gcym-card { transition: transform .25s ease, box-shadow .25s ease; height: 100%; }
.gcym-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(27,30,35,.12); }
.wp-block-column > .gcym-card { height: 100%; }
.gcym-card .wp-block-image { margin-bottom: 0; }
.gcym-icon img { width: 56px !important; height: 56px !important; }
.gcym-icon-sm img { width: 44px !important; height: 44px !important; }
.gcym-icon, .gcym-icon-sm { margin-bottom: 0 !important; }

/* ---------- Lists ---------- */
.gcym-checks { list-style: none; padding-left: 0 !important; }
.gcym-checks li { position: relative; padding-left: 1.6rem; margin-bottom: .45rem; }
.gcym-checks li::before { content: ""; position: absolute; left: 0; top: .48em; width: .7rem; height: .7rem; background: var(--wp--preset--color--rojo); transform: skewX(-18deg); }
.gcym-cols-2 { columns: 2; column-gap: 2rem; }
.gcym-cols-2 li { break-inside: avoid; }
.gcym-chips { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .6rem; }
.gcym-chips li { border: 1px solid var(--wp--preset--color--rojo); border-radius: 999px; padding: .35rem 1rem; font-weight: 600; font-size: .9rem; color: #fff; background: var(--wp--preset--color--grafito-claro); }

/* ---------- Stats ---------- */
.gcym-stat { font-family: var(--wp--preset--font-family--montserrat); font-weight: 800; line-height: 1 !important; margin-bottom: .35rem !important; }

/* ---------- Images ---------- */
.gcym-photo img { border-radius: 4px; }
.gcym-fill, .gcym-fill img { height: 100%; }
.gcym-fill img { object-fit: cover; }
.gcym-shadow { box-shadow: 0 20px 50px rgba(27,30,35,.18); }

/* ---------- Steps ---------- */
.gcym-step { position: relative; }
.gcym-step-num { font-family: var(--wp--preset--font-family--montserrat); font-weight: 800; }


/* ---------- Mobile ---------- */
@media (max-width: 781px) {
  .gcym-cols-2 { columns: 1; }
  .gcym-logo img { height: 38px !important; }
  [id] { scroll-margin-top: 76px; }
  .gcym-hide-mobile { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .gcym-card { transition: none; } }

/* ---------- Details ---------- */
.gcym-top img { object-position: top; }
.gcym-photo-top img { border-radius: 6px 6px 0 0; }
.gcym-card { overflow: hidden; }
.gcym-contact-link a, .gcym-footer a { color: inherit; text-decoration: none; }
.gcym-contact-link a:hover, .gcym-footer a:hover { color: #fff; text-decoration: underline; }
.gcym-footer-links { list-style: none; }
.gcym-footer-links li { margin-bottom: .4rem; }
.gcym-footer .wp-block-heading { font-size: .95rem !important; letter-spacing: .08em; text-transform: uppercase; }
.wp-block-button.is-style-outline > .wp-block-button__link { border-color: currentColor; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: #1B1E23 !important; }

@media (max-width: 781px) {
  .wp-block-columns.is-not-stacked-on-mobile.gcym-stats { flex-wrap: wrap !important; row-gap: 1.75rem; }
  .wp-block-columns.is-not-stacked-on-mobile.gcym-stats > .wp-block-column { flex-basis: calc(50% - 1rem) !important; flex-grow: 0 !important; }
  .gcym-kicker { letter-spacing: .14em; font-size: .72rem !important; }
}
