/*
Theme Name: ASHRAE Commissioning
Theme URI: https://ashraemx.org/curso/
Description: ASHRAE theme
Version: 1.0
Author: AnalíticaMX
Author URI: http://www.analiticamx.com
Tags: ASHRAE

	The CSS, XHTML and design is released under GPL:
	http://www.opensource.org/licenses/gpl-license.php

*/

    :root{
      --bg:#0f172a;         /* azul oscuro */
      --bg2:#111827;        /* gris-azul */
      --surface:#ffffff;
      --muted:#64748b;
      --text:#0b1220;
      --border:#e5e7eb;
      --blue:#1f6feb;       /* acento */
      --blue2:#0b5cab;      /* header de cards */
      --green:#53a653;      /* CTA */
      --green2:#3f8f3f;
      --soft:#f5f7fb;
      --soft2:#eef2ff;
      --shadow:0 10px 30px rgba(2,8,23,.12);
      --radius:18px;
      --radius2:14px;
      --container:1180px;
      --reading:860px;      /* ancho de lectura */
      --gap:26px;
      --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    }

    *{box-sizing:border-box}
    html{scroll-behavior:smooth}
    body{
      margin:0;
      font-family:var(--font);
      color:var(--text);
      background:#ffffff;
      line-height:1.55;
    }

    a{color:inherit; text-decoration:none}
    a:hover{text-decoration:underline}
    .container{
      width:min(var(--container), 92vw);
      margin:0 auto;
    }
    .reading{
      width:min(var(--reading), 92vw);
      margin:0 auto;
    }

    /* Top nav */
    .topbar{
      position:sticky;
      top:0;
      z-index:100;
      background:rgba(15,23,42,.92);
      backdrop-filter: blur(10px);
      border-bottom:1px solid rgba(255,255,255,.08);
    }
    .topbar-inner{
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding:14px 0;
      gap:18px;
      position: relative;
    }
    .brand{
      display:flex; align-items:center; gap:10px;
      color:#fff; font-weight:700;
      letter-spacing:.2px;
      white-space:nowrap;
    }
    .brand img{height:40px; width:auto}
    @media(min-width: 576px) {
      .brand img{height:50px; width:auto}
    }
    .nav{
      display:flex;
      gap:18px;
      align-items:center;
      flex-wrap:wrap;
      justify-content:center;
    }
    .nav a{
      color:rgba(255,255,255,.86);
      font-weight:600;
      font-size:14px;
      padding:8px 10px;
      border-radius:999px;
    }
    .nav a:hover{
      background:rgba(255,255,255,.08);
      text-decoration:none;
    }
    .nav-actions{
      display:flex; align-items:center; gap:10px;
    }
    .btn{
      display:inline-flex; align-items:center; justify-content:center;
      padding:12px 16px;
      border-radius:12px;
      font-weight:800;
      letter-spacing:.1px;
      border:1px solid transparent;
      cursor:pointer;
      transition:transform .08s ease, background .15s ease, border-color .15s ease;
      text-decoration:none !important;
      white-space:nowrap;
    }
    .btn-cta {
      font-size: 13px;
    }
    .btn-menu {
      font-size: 13px;
    }
    @media(min-width: 768px) {
      .btn-cta {
        font-size: 16px;
      }
      .btn-menu {
        font-size: 16px;
      }
    }
    .btn:active{transform:translateY(1px)}
    .btn-primary{
      background:var(--blue);
      color:#fff;
    }
    .btn-primary:hover{background:#1b5fd0}
    .btn-ghost{
      background:transparent;
      border-color:rgba(255,255,255,.22);
      color:#fff;
    }
    .btn-ghost:hover{background:rgba(255,255,255,.08)}
    .btn-green{
      background:var(--green);
      color:#fff;
    }
    .btn-green:hover{background:var(--green2)}
    .pill-row{
      display:flex;
      flex-wrap:wrap;
      gap:10px;
      margin-top:14px;
    }
    .pill{
      font-size:13px;
      font-weight:700;
      color:#eaf2ff;
      background:rgba(31,111,235,.18);
      border:1px solid rgba(31,111,235,.25);
      padding:8px 10px;
      border-radius:999px;
    }

    /* Hero */
    .hero{
      background:linear-gradient(180deg, var(--bg2), var(--bg));
      color:#fff;
      padding:54px 0 34px;
      overflow:hidden;
      position:relative;
    }
    .hero-grid{
      display:grid;
      grid-template-columns: 1.05fr .95fr;
      gap:34px;
      align-items:center;
    }
    .hero h1{
      margin:0 0 10px 0;
      font-size:54px;
      line-height:1.05;
      letter-spacing:-.8px;
    }
    .hero .sub{
      color:rgba(255,255,255,.82);
      font-size:18px;
      max-width:58ch;
      margin:0 0 18px 0;
    }
    .hero .meta{
      display:flex; flex-wrap:wrap; gap:10px;
      margin:10px 0 22px;
    }
    .tag{
      font-size:13px; font-weight:800;
      padding:8px 10px;
      border-radius:999px;
      background:rgba(255,255,255,.08);
      border:1px solid rgba(255,255,255,.14);
      color:rgba(255,255,255,.9);
    }
    .hero-actions{
      display:flex; gap:12px; flex-wrap:wrap;
      margin-top:10px;
    }
    .hero-card{
      background:rgba(255,255,255,.06);
      border:1px solid rgba(255,255,255,.12);
      border-radius:var(--radius);
      padding:18px;
      box-shadow:0 20px 60px rgba(0,0,0,.25);
    }
    .hero-media{
      border-radius:14px;
      overflow:hidden;
      background:#0b1220;
      border:1px solid rgba(255,255,255,.12);
    }
    .hero-media img{
      width:100%;
      display:block;
      height:auto;
    }
    .hero-note{
      margin-top:10px;
      color:rgba(255,255,255,.72);
      font-size:13px;
    }

    /* Sections */
    section{padding:54px 0}
    .section-title{
      margin:0 0 10px 0;
      font-size:34px;
      letter-spacing:-.4px;
      line-height:1.15;
    }
    .section-kicker{
      font-size:13px;
      font-weight:900;
      letter-spacing:.12em;
      text-transform:uppercase;
      color:var(--blue2);
      margin:0 0 10px 0;
    }
    .section-sub{
      margin:0;
      color:var(--muted);
      font-size:16px;
      max-width:75ch;
    }

    /* Post-hero improved block */
    .soft{
      background:linear-gradient(180deg, #f7f9ff, #ffffff);
      border-top:1px solid var(--border);
      border-bottom:1px solid var(--border);
    }
    .panel{
      margin-top:22px;
      background:var(--surface);
      border:1px solid var(--border);
      border-radius:var(--radius);
      box-shadow:var(--shadow);
      padding:22px;
    }
    .cards4{
      margin-top:18px;
      display:grid;
      grid-template-columns: repeat(4, 1fr);
      gap:16px;
    }
    .card{
      background:#fff;
      border:1px solid var(--border);
      border-radius:16px;
      padding:18px;
      min-height:160px;
    }
    .card .icon{
      width:40px; height:40px;
      border-radius:12px;
      background:rgba(31,111,235,.10);
      border:1px solid rgba(31,111,235,.16);
      display:flex; align-items:center; justify-content:center;
      margin-bottom:10px;
      font-weight:900;
      color:var(--blue2);
    }
    .card h3{
      margin:0 0 6px 0;
      font-size:16px;
      letter-spacing:-.2px;
    }
    .card p{
      margin:0;
      color:var(--muted);
      font-size:14px;
    }

    /* Two-column original-style blocks */
    .grid-2{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap:var(--gap);
      align-items:start;
      margin-top:22px;
    }

    .media-box{
      background:var(--soft);
      border:1px solid var(--border);
      border-radius:var(--radius);
      overflow:hidden;
      box-shadow:var(--shadow);
    }
    .media-box img{width:100%; display:block}
    .text-box{
      max-width:75ch;
    }
    .text-box p{
      margin:0 0 12px 0;
      color:var(--muted);
    }

    .list{
      margin:14px 0 0 0;
      padding:0;
      list-style:none;
      display:grid;
      gap:10px;
    }
    .list li{
      display:flex; gap:10px; align-items:flex-start;
      color:var(--text);
      font-weight:650;
    }
    .check{
      width:22px; height:22px;
      border-radius:999px;
      background:rgba(83,166,83,.14);
      border:1px solid rgba(83,166,83,.22);
      display:inline-flex; align-items:center; justify-content:center;
      color:var(--green2);
      flex:0 0 22px;
      margin-top:2px;
      font-size:14px;
      font-weight:900;
    }
    .muted{color:var(--muted); font-weight:600}

    /* Instructor */
    .instructor{
      background:#fff;
      border-top:1px solid var(--border);
      border-bottom:1px solid var(--border);
    }
    .profile{
      display:grid;
      grid-template-columns: 1.1fr .9fr;
      gap:var(--gap);
      align-items:start;
      margin-top:22px;
    }
    .profile .photo{
      background:var(--soft);
      border:1px solid var(--border);
      border-radius:var(--radius);
      overflow:hidden;
      box-shadow:var(--shadow);
    }
    .profile .photo img{width:100%; display:block}
    .chips{
      display:flex; flex-wrap:wrap; gap:10px;
      margin:12px 0 14px;
    }
    .chip{
      font-size:12px;
      font-weight:900;
      padding:8px 10px;
      border-radius:999px;
      background:rgba(31,111,235,.08);
      border:1px solid rgba(31,111,235,.14);
      color:var(--blue2);
    }

    /* Temario cards (original style, improved readability) */
    .temario{
      background:linear-gradient(180deg, #ffffff, #f7faff);
    }
    .session-grid{
      display:grid;
      grid-template-columns: repeat(2, 1fr);
      gap:18px;
      margin-top:22px;
    }
    .session{
      background:#fff;
      border:1px solid var(--border);
      border-radius:var(--radius);
      padding:18px;
      box-shadow:var(--shadow);
    }
    .session .top{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:12px;
    }
    .session .label{
      font-size:12px; font-weight:900;
      color:var(--blue2);
      letter-spacing:.1em;
      text-transform:uppercase;
    }
    .session h3{
      margin:6px 0 6px 0;
      font-size:18px;
      letter-spacing:-.2px;
    }
    .session .when{
      margin:0 0 12px 0;
      color:var(--muted);
      font-weight:700;
      font-size:13px;
    }
    .bullets{
      margin:0;
      padding:0;
      list-style:none;
      display:grid;
      gap:10px;
    }
    .bullets li{
      display:flex; gap:10px; align-items:flex-start;
      color:var(--muted);
      font-weight:650;
      font-size:14px;
    }
    .dot{
      width:9px; height:9px;
      border-radius:999px;
      background:rgba(31,111,235,.24);
      border:1px solid rgba(31,111,235,.3);
      margin-top:7px;
      flex:0 0 9px;
    }

    /* Pricing / payment */
    .pricing{
      background:#fff;
      border-top:1px solid var(--border);
    }
    .pricing-grid{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap:18px;
      margin-top:22px;
      align-items:start;
    }
    .price-box{
      background:#fff;
      border:1px solid var(--border);
      border-radius:var(--radius);
      padding:18px;
      box-shadow:var(--shadow);
    }
    .price-title{
      margin:0 0 8px 0;
      font-size:18px;
      letter-spacing:-.2px;
    }
    .price-line{
      margin:0 0 8px 0;
      color:var(--muted);
      font-weight:700;
    }
    .price-big{
      display:inline-flex;
      align-items:center;
      gap:10px;
      padding:10px 12px;
      border-radius:12px;
      background:rgba(83,166,83,.14);
      border:1px solid rgba(83,166,83,.22);
      color:var(--green2);
      font-weight:950;
      margin:8px 0 10px;
      font-size:18px;
    }
    .fine{
      font-size:12px;
      color:var(--muted);
      font-weight:650;
    }

    .bank{
      background:var(--soft);
      border:1px solid var(--border);
      border-radius:var(--radius);
      padding:18px;
      box-shadow:var(--shadow);
    }
    .bank h3{
      margin:0 0 10px 0;
      font-size:18px;
      letter-spacing:-.2px;
    }
    .kv{
      margin:0;
      display:grid;
      gap:8px;
      color:var(--text);
      font-weight:800;
    }
    .kv span{
      color:var(--muted);
      font-weight:700;
      display:block;
      font-size:13px;
      margin-top:2px;
    }
    .bank .email{
      margin-top:12px;
      padding-top:12px;
      border-top:1px dashed rgba(100,116,139,.35);
      color:var(--muted);
      font-weight:700;
      font-size:14px;
    }

    /* Contact */
    .contact{
      background:linear-gradient(180deg,#ffffff,#f7faff);
      border-top:1px solid var(--border);
    }
    .contact-box{
      display:grid;
      grid-template-columns: 1.1fr .9fr;
      gap:18px;
      margin-top:22px;
      align-items:start;
    }
    .contact-card{
      background:#fff;
      border:1px solid var(--border);
      border-radius:var(--radius);
      padding:18px;
      box-shadow:var(--shadow);
    }
    .contact-card h3{
      margin:0 0 8px 0;
      font-size:18px;
    }
    .contact-card p{
      margin:0 0 8px 0;
      color:var(--muted);
      font-weight:700;
    }

    /* Footer */
    footer{
      background:var(--bg2);
      color:rgba(255,255,255,.85);
      padding:26px 0;
    }
    .footer-inner{
      display:flex;
      align-items:center;
      justify-content:space-between;
      flex-wrap:wrap;
      gap:10px;
    }
    .footer-links{
      display:flex;
      gap:12px;
      flex-wrap:wrap;
    }
    .footer-links a{color:rgba(255,255,255,.78); font-weight:700; font-size:13px}
    .footer-links a:hover{color:#fff; text-decoration:none}

    /* Responsive */
    @media (max-width: 980px){
      .hero-grid{grid-template-columns:1fr}
      .cards4{grid-template-columns:1fr 1fr}
      .grid-2{grid-template-columns:1fr}
      .profile{grid-template-columns:1fr}
      .session-grid{grid-template-columns:1fr}
      .pricing-grid{grid-template-columns:1fr}
      .contact-box{grid-template-columns:1fr}
      .hero h1{font-size:42px}
    }
    @media (max-width: 767px){
      .cards4{grid-template-columns:1fr}
      .hero h1{font-size:36px}
      .nav{display:none} /* móvil: simplificado */
      .btn-temario {
        display: none;
      }
    }

    @media(min-width: 768px) {
      .btn-menu {
        display: none;
      }
    }

    .nav-mobile {
      position: absolute;
      top: 81px;
      left: 0;
      background-color: #fff;
      display: flex;
      flex-direction: column;
      width: 100%;
      border-radius: 8px;
      padding: 10px 0;
      box-shadow:var(--shadow);
      z-index: 1000;
    }
    .nav-mobile a {
      display: block;
      padding: 8px 44px;
      margin: 10px 0;
    }
    .nav-mobile-hidden {
      display: none;
    }
    .woocommerce div.product .woocommerce-tabs .panel.woocommerce-Tabs-panel--description {
      padding: 20px;
    }
    .wc-block-cart__submit-button {
      background-color: #53a653;
      color: #fff;
    }
    .wc-block-cart__submit-button:focus,
    .wc-block-cart__submit-button:hover {
      background-color: #408a40;
    }
