/*
Theme Name: González y Grande Consultoría
Theme URI: https://www.gygics.com/
Author: El Encuentro / ChatGPT
Author URI: https://www.gygics.com/
Description: Tema WordPress ligero para González y Grande Ingenieros Consultores. Incluye portada corporativa, estructura preparada para blog, páginas legales y entradas.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gyg-consultoria
Tags: consultoria, empresa, blog, responsive, seguridad, ingenieria
*/

:root {
      --blue-900: #15395f;
      --blue-800: #1d4f86;
      --blue-700: #2467ad;
      --blue-600: #2d7dcc;
      --blue-100: #eaf4ff;
      --blue-050: #f5faff;
      --cyan-100: #e8fbff;
      --ink: #1f2937;
      --text: #435266;
      --muted: #687789;
      --line: #dbe7f3;
      --line-soft: #e9f0f7;
      --white: #ffffff;
      --bg: #f8fbff;
      --success: #247a57;
      --gold: #b77a13;
      --shadow: 0 20px 60px rgba(32, 83, 137, .12);
      --shadow-soft: 0 12px 32px rgba(32, 83, 137, .08);
      --radius-xl: 30px;
      --radius-lg: 22px;
      --radius-md: 15px;
      --max: 1180px;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: Arial, Helvetica, sans-serif;
      color: var(--ink);
      background: var(--bg);
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    a {
      color: inherit;
    }

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

    .skip-link {
      position: absolute;
      left: -999px;
      top: 12px;
      z-index: 9999;
      background: var(--blue-900);
      color: var(--white);
      padding: 10px 14px;
      border-radius: 12px;
    }

    .skip-link:focus {
      left: 12px;
    }

    .container {
      width: min(100% - 40px, var(--max));
      margin: 0 auto;
    }

    .section {
      padding: 92px 0;
    }

    .section-white {
      background: var(--white);
    }

    .section-soft {
      background:
        radial-gradient(circle at top left, rgba(45, 125, 204, .08), transparent 34%),
        linear-gradient(180deg, var(--blue-050), var(--white));
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      line-height: 1;
      text-transform: uppercase;
      letter-spacing: .12em;
      font-weight: 900;
      color: var(--blue-800);
      background: var(--blue-100);
      padding: 10px 13px;
      border: 1px solid rgba(45, 125, 204, .12);
      border-radius: 999px;
      margin-bottom: 18px;
    }

    .eyebrow::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: var(--blue-600);
      box-shadow: 0 0 0 4px rgba(45, 125, 204, .12);
    }

    h1,
    h2,
    h3,
    h4 {
      color: var(--ink);
      line-height: 1.13;
    }

    h1 {
      font-size: clamp(40px, 5.4vw, 68px);
      letter-spacing: -0.055em;
      margin-bottom: 22px;
    }

    h2 {
      font-size: clamp(30px, 4vw, 46px);
      letter-spacing: -0.04em;
      margin-bottom: 18px;
    }

    h3 {
      font-size: 22px;
      letter-spacing: -0.02em;
      margin-bottom: 12px;
    }

    h4 {
      font-size: 18px;
      margin-bottom: 8px;
    }

    p {
      color: var(--text);
    }

    .lead {
      color: var(--text);
      font-size: clamp(18px, 2vw, 21px);
      max-width: 780px;
    }

    .section-intro {
      max-width: 790px;
      margin-bottom: 44px;
    }

    .section-intro.center {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
    }

    .btn {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      min-height: 52px;
      padding: 14px 22px;
      border-radius: 999px;
      border: 1px solid transparent;
      text-decoration: none;
      font-weight: 900;
      transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
      cursor: pointer;
      font-size: 15px;
      white-space: nowrap;
    }

    .btn:hover {
      transform: translateY(-2px);
    }

    .btn-primary {
      background: var(--blue-700);
      color: var(--white);
      box-shadow: 0 14px 30px rgba(36, 103, 173, .23);
    }

    .btn-primary:hover {
      background: var(--blue-800);
      box-shadow: 0 18px 38px rgba(36, 103, 173, .28);
    }

    .btn-secondary {
      background: var(--white);
      color: var(--blue-800);
      border-color: var(--line);
      box-shadow: var(--shadow-soft);
    }

    .btn-secondary:hover {
      border-color: rgba(45, 125, 204, .45);
      box-shadow: var(--shadow);
    }

    .btn-full {
      width: 100%;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(255, 255, 255, .93);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(219, 231, 243, .88);
    }

    .header-inner {
      min-height: 78px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 26px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 13px;
      text-decoration: none;
      min-width: 245px;
    }

    .brand-mark {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 16px;
      background:
        linear-gradient(135deg, #eaf4ff 0%, #ffffff 42%, #d8ecff 100%);
      border: 1px solid rgba(45, 125, 204, .18);
      color: var(--blue-800);
      font-weight: 900;
      letter-spacing: -.08em;
      box-shadow: 0 10px 24px rgba(36, 103, 173, .10);
    }

    .brand-name {
      display: block;
      color: var(--blue-900);
      font-weight: 900;
      font-size: 18px;
      line-height: 1.05;
      letter-spacing: -.02em;
    }

    .brand-subtitle {
      display: block;
      color: var(--muted);
      font-size: 13px;
      margin-top: 4px;
    }

    .main-nav {
      display: flex;
      align-items: center;
      gap: 22px;
    }

    .main-nav a {
      text-decoration: none;
      color: var(--text);
      font-size: 14px;
      font-weight: 900;
    }

    .main-nav a:hover {
      color: var(--blue-700);
    }

    .nav-cta {
      background: var(--blue-700);
      color: var(--white) !important;
      padding: 10px 16px;
      border-radius: 999px;
      box-shadow: 0 10px 24px rgba(36, 103, 173, .18);
    }

    .menu-toggle {
      display: none;
      border: 1px solid var(--line);
      background: var(--white);
      color: var(--blue-800);
      border-radius: 12px;
      padding: 10px 14px;
      font-weight: 900;
      cursor: pointer;
    }

    .hero {
      position: relative;
      overflow: hidden;
      padding: 98px 0 78px;
      background:
        radial-gradient(circle at 8% 18%, rgba(45, 125, 204, .15), transparent 28%),
        radial-gradient(circle at 88% 6%, rgba(93, 188, 230, .20), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
      border-bottom: 1px solid var(--line-soft);
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(36, 103, 173, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 103, 173, .04) 1px, transparent 1px);
      background-size: 42px 42px;
      mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 82%);
      pointer-events: none;
    }

    .hero-grid {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1.08fr .92fr;
      gap: 56px;
      align-items: center;
    }

    .hero h1 span {
      color: var(--blue-700);
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin-top: 34px;
    }

    .hero-note {
      margin-top: 18px;
      color: var(--muted);
      font-size: 14px;
    }

    .hero-visual {
      position: relative;
    }

    .hero-panel {
      background: rgba(255, 255, 255, .86);
      border: 1px solid rgba(219, 231, 243, .95);
      box-shadow: var(--shadow);
      border-radius: var(--radius-xl);
      padding: 30px;
    }

    .hero-panel-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 22px;
    }

    .status-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: #eefaf5;
      color: var(--success);
      font-weight: 900;
      font-size: 13px;
      border: 1px solid rgba(36, 122, 87, .12);
      padding: 8px 10px;
      border-radius: 999px;
    }

    .status-pill::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: var(--success);
    }

    .technical-list {
      display: grid;
      gap: 12px;
      list-style: none;
    }

    .technical-list li {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      color: var(--text);
      padding: 14px;
      border: 1px solid var(--line-soft);
      background: #fbfdff;
      border-radius: 16px;
    }

    .technical-list li::before {
      content: "✓";
      flex: 0 0 24px;
      width: 24px;
      height: 24px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: var(--blue-100);
      color: var(--blue-800);
      font-weight: 900;
      font-size: 14px;
    }

    .metric-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-top: 22px;
    }

    .metric {
      background: linear-gradient(180deg, var(--blue-050), #ffffff);
      border: 1px solid var(--line-soft);
      border-radius: 18px;
      padding: 16px;
    }

    .metric strong {
      display: block;
      font-size: 24px;
      color: var(--blue-800);
      letter-spacing: -.04em;
      line-height: 1;
      margin-bottom: 7px;
    }

    .metric span {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.25;
      display: block;
    }

    .service-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
    }

    .service-card {
      position: relative;
      overflow: hidden;
      min-height: 100%;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 28px;
      box-shadow: var(--shadow-soft);
    }

    .service-card::before {
      content: "";
      position: absolute;
      inset: 0 0 auto 0;
      height: 5px;
      background: linear-gradient(90deg, var(--blue-600), #8ad3ef);
    }

    .service-icon {
      width: 50px;
      height: 50px;
      border-radius: 16px;
      background: var(--blue-100);
      color: var(--blue-800);
      display: grid;
      place-items: center;
      font-weight: 900;
      margin-bottom: 20px;
      border: 1px solid rgba(45, 125, 204, .10);
    }

    .service-card p {
      margin-bottom: 16px;
    }

    .service-card ul {
      margin-left: 18px;
      color: var(--text);
    }

    .service-card li {
      margin: 7px 0;
    }

    .highlight-band {
      margin-top: 32px;
      border-radius: var(--radius-xl);
      padding: 28px;
      background:
        linear-gradient(135deg, var(--blue-100), #ffffff 64%);
      border: 1px solid rgba(45, 125, 204, .16);
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 18px;
      align-items: center;
    }

    .highlight-band p {
      max-width: 760px;
    }

    .method-grid {
      display: grid;
      grid-template-columns: .9fr 1.1fr;
      gap: 42px;
      align-items: start;
    }

    .method-card {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: var(--radius-xl);
      padding: 32px;
      box-shadow: var(--shadow-soft);
    }

    .method-card h3 {
      font-size: 28px;
    }

    .steps {
      display: grid;
      gap: 16px;
      counter-reset: method;
    }

    .step {
      counter-increment: method;
      display: grid;
      grid-template-columns: 54px 1fr;
      gap: 18px;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 20px;
      box-shadow: 0 8px 22px rgba(32, 83, 137, .06);
    }

    .step::before {
      content: counter(method, decimal-leading-zero);
      width: 54px;
      height: 54px;
      display: grid;
      place-items: center;
      border-radius: 18px;
      background: var(--blue-100);
      color: var(--blue-800);
      font-weight: 900;
    }

    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 42px;
      align-items: center;
    }

    .about-card {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: var(--radius-xl);
      padding: 34px;
      box-shadow: var(--shadow-soft);
    }

    .about-card p + p {
      margin-top: 14px;
    }

    .value-list {
      display: grid;
      gap: 16px;
    }

    .value {
      display: grid;
      grid-template-columns: 42px 1fr;
      gap: 16px;
      padding: 21px;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 20px;
      box-shadow: 0 8px 22px rgba(32, 83, 137, .05);
    }

    .value span {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 14px;
      background: var(--cyan-100);
      color: var(--blue-800);
      font-weight: 900;
    }

    .sectors-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

    .sector {
      min-height: 112px;
      display: flex;
      align-items: flex-end;
      background:
        linear-gradient(180deg, #ffffff, var(--blue-050));
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 20px;
      color: var(--blue-900);
      font-weight: 900;
      box-shadow: 0 10px 24px rgba(32, 83, 137, .05);
    }

    .faq-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
    }

    details {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 22px;
      box-shadow: 0 8px 22px rgba(32, 83, 137, .05);
    }

    summary {
      color: var(--blue-900);
      font-weight: 900;
      cursor: pointer;
      font-size: 18px;
    }

    details p {
      margin-top: 14px;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: .92fr 1.08fr;
      gap: 32px;
      align-items: start;
    }

    .contact-info,
    .contact-form {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: var(--radius-xl);
      padding: 34px;
      box-shadow: var(--shadow);
    }

    .contact-methods {
      display: grid;
      gap: 14px;
      margin-top: 26px;
    }

    .contact-method {
      background: var(--blue-050);
      border: 1px solid var(--line-soft);
      border-radius: 18px;
      padding: 18px;
    }

    .contact-method strong {
      display: block;
      color: var(--blue-900);
      margin-bottom: 4px;
    }

    .contact-method a {
      color: var(--blue-700);
      font-weight: 900;
      text-decoration: none;
    }

    .contact-method a:hover {
      text-decoration: underline;
    }

    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .form-group {
      margin-bottom: 16px;
    }

    .form-group.full {
      grid-column: 1 / -1;
    }

    label {
      display: block;
      font-size: 14px;
      color: var(--ink);
      font-weight: 900;
      margin-bottom: 8px;
    }

    input,
    select,
    textarea {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 13px 14px;
      background: #fff;
      color: var(--ink);
      font: inherit;
      outline: none;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: var(--blue-600);
      box-shadow: 0 0 0 4px rgba(45, 125, 204, .12);
    }

    textarea {
      min-height: 140px;
      resize: vertical;
    }

    .privacy-note {
      color: var(--muted);
      font-size: 13px;
      margin: 8px 0 18px;
    }

    .site-footer {
      background: #f3f8fd;
      border-top: 1px solid var(--line);
      padding: 42px 0;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.15fr .85fr;
      gap: 26px;
      align-items: start;
    }

    .site-footer strong {
      color: var(--blue-900);
      display: block;
      margin-bottom: 8px;
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 14px;
    }

    .footer-links a {
      color: var(--text);
      text-decoration: none;
      font-weight: 800;
      font-size: 14px;
    }

    .footer-links a:hover {
      color: var(--blue-700);
    }

    @media (max-width: 1020px) {
      .hero-grid,
      .method-grid,
      .about-grid,
      .contact-grid,
      .footer-grid {
        grid-template-columns: 1fr;
      }

      .service-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .highlight-band {
        grid-template-columns: 1fr;
      }

      .footer-links {
        justify-content: flex-start;
      }
    }

    @media (max-width: 780px) {
      .container {
        width: min(100% - 28px, var(--max));
      }

      .header-inner {
        min-height: 70px;
      }

      .brand {
        min-width: auto;
      }

      .brand-subtitle {
        display: none;
      }

      .menu-toggle {
        display: inline-flex;
      }

      .main-nav {
        display: none;
        position: absolute;
        top: 74px;
        left: 14px;
        right: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 20px;
        padding: 14px;
        box-shadow: var(--shadow);
      }

      .main-nav.is-open {
        display: flex;
      }

      .main-nav a {
        padding: 12px 8px;
      }

      .hero {
        padding: 72px 0 58px;
      }

      .service-grid,
      .sectors-grid,
      .faq-grid,
      .form-grid,
      .metric-row {
        grid-template-columns: 1fr;
      }

      .section {
        padding: 68px 0;
      }

      .hero-actions .btn,
      .highlight-band .btn {
        width: 100%;
      }
    }

/* Ajustes WordPress */
.admin-bar .site-header { top: 32px; }
.wp-site-blocks { min-height: 100vh; }
.current-menu-item > a, .main-nav a[aria-current="page"] { color: var(--blue-700); }
.custom-logo { max-height: 56px; width: auto; }

/* Contenido editorial / blog */
.content-wrap { padding: 72px 0; background: var(--bg); }
.entry-card, .post-card, .comments-area {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 4vw, 46px);
}
.entry-header { margin-bottom: 24px; }
.entry-title { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.04em; color: var(--blue-900); }
.entry-meta { color: var(--muted); margin-top: 10px; font-size: 14px; }
.entry-content { color: var(--text); font-size: 18px; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 18px; }
.entry-content a { color: var(--blue-700); font-weight: 800; }
.entry-content h2, .entry-content h3 { margin: 34px 0 14px; color: var(--blue-900); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { padding: 26px; }
.post-card h2 { font-size: 24px; margin-bottom: 10px; }
.post-card h2 a { color: var(--blue-900); text-decoration: none; }
.post-card h2 a:hover { color: var(--blue-700); }
.post-card .btn { margin-top: 16px; }
.pagination { margin-top: 34px; display: flex; gap: 10px; justify-content: center; }
.pagination a, .pagination span { padding: 10px 14px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--blue-900); }
.pagination .current { background: var(--blue-700); color: var(--white); border-color: var(--blue-700); }
.widget-area { margin-top: 38px; }
.screen-reader-text { position:absolute; left:-9999px; }

@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .admin-bar .site-header { top: 46px; }
  .blog-grid { grid-template-columns: 1fr; }
  .content-wrap { padding: 46px 0; }
}
