/**
 * ==============================================================================
 * Instituto de Fadiga - Estilos de Fadiga Oncológica
 * ==============================================================================
 */

@import url('global.css');

:root {
      --ink: #13262a;
      --ink-soft: #40565a;
      --brand: #0f4f56;
      --brand-2: #1f6b70;
      --green: #6f8f55;
      --green-soft: #eaf1e5;
      --blue-soft: #e8f2f4;
      --paper: #f8f7f2;
      --white: #ffffff;
      --line: #d8e1df;
      --warm: #e5a45d;
      --shadow: 0 20px 60px rgba(15, 79, 86, .12);
      --radius: 22px;
      --radius-sm: 14px;
      --container: 1180px;
    }

    * { box-sizing: border-box; }
    html {
      scroll-behavior: smooth;
      overflow-x: hidden;
      max-width: 100%;
    }
    body {
      margin: 0;
      font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--ink);
      background: var(--paper);
      line-height: 1.7;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
      overflow-x: hidden;
      max-width: 100%;
      width: 100%;
    }
    img, video, iframe, svg { max-width: 100%; }
    img { height: auto; display: block; }
    a { color: inherit; text-decoration: none; }
    button, input, textarea { font: inherit; max-width: 100%; }
    button { cursor: pointer; }

    .container {
      width: min(calc(100% - 36px), var(--container));
      margin-inline: auto;
      max-width: 100%;
    }

    .skip-link {
      position: fixed;
      top: 12px;
      left: 12px;
      transform: translateY(-150%);
      z-index: 9999;
      background: var(--ink);
      color: white;
      padding: 10px 14px;
      border-radius: 8px;
    }
    .skip-link:focus { transform: translateY(0); }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 14px;
      color: var(--brand);
      font-size: .8rem;
      font-weight: 800;
      letter-spacing: .11em;
      text-transform: uppercase;
      max-width: 100%;
    }
    .eyebrow::before {
      content: "";
      width: 24px;
      height: 2px;
      background: var(--warm);
      border-radius: 99px;
      flex-shrink: 0;
    }

    h1, h2, h3, h4 {
      margin-top: 0;
      line-height: 1.2;
      letter-spacing: -.03em;
      overflow-wrap: break-word;
      word-wrap: break-word;
    }
    h1, h2, h3 { font-family: "Source Serif 4", Georgia, serif; }
    h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 18px; color: var(--ink); word-break: break-word; }
    h2 { font-size: clamp(1.55rem, 2.6vw, 2.2rem); margin: 0 0 16px; color: var(--ink); word-break: break-word; }
    h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin: 0 0 12px; color: var(--ink); }
    p { margin-top: 0; margin-bottom: 1.3em; overflow-wrap: break-word; word-wrap: break-word; }

    .header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(248, 247, 242, .93);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(216,225,223,.85);
    }
    .nav {
      min-height: 80px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
    .brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      min-width: 180px;
    }
    .brand img { width: 172px; height: auto; }
    .nav-links {
      display: flex;
      align-items: center;
      gap: 22px;
      font-size: .95rem;
      font-weight: 600;
      color: var(--ink);
    }
    .nav-links a:hover { color: var(--brand); }
    .nav-toggle {
      display: none;
      background: transparent;
      border: 0;
      padding: 8px;
    }
    .nav-toggle span {
      display: block;
      width: 24px;
      height: 2px;
      background: var(--ink);
      margin: 5px 0;
      transition: .2s;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 13px 22px;
      border-radius: 999px;
      font-weight: 700;
      font-size: .95rem;
      transition: .2s ease;
      border: 1px solid transparent;
      white-space: nowrap;
      text-decoration: none;
      cursor: pointer;
    }
    .btn:hover { transform: translateY(-1px); }
    .btn:focus-visible, a:focus-visible, summary:focus-visible {
      outline: 2px solid var(--brand);
      outline-offset: 3px;
    }
    .btn-primary { background: var(--brand); color: white; }
    .btn-primary:hover { background: #0a444a; }
    .btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
    .btn-outline:hover { background: rgba(15,79,86,.08); }
    .btn-small { min-height: 44px; padding: 10px 17px; font-size: .9rem; }

    .section {
      padding: 72px 0;
    }
    .section-blue {
      background: var(--blue-soft);
    }

    /* Oncology Layout */
    .oncology-grid {
      display: grid;
      grid-template-columns: 1.02fr .98fr;
      gap: 66px;
      align-items: center;
    }
    .benefit-list {
      display: grid;
      gap: 12px;
      margin: 26px 0;
    }
    .benefit {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      padding: 16px 0;
      border-bottom: 1px solid rgba(15,79,86,.16);
    }
    .benefit svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 2px; }
    .benefit strong { color: var(--ink); }
    .benefit span { color: var(--ink-soft); font-size: .95rem; }

    .safety-card {
      padding: 28px;
      background: white;
      border-radius: var(--radius);
      border-left: 5px solid var(--warm);
      box-shadow: 0 16px 45px rgba(15,79,86,.08);
      margin-top: 24px;
    }
    .safety-card h3 { font-size: 1.25rem; color: var(--ink); }
    .safety-card p { margin-bottom: 0; color: var(--ink-soft); }

    .onco-visual {
      position: relative;
      min-height: 520px;
      border-radius: 28px;
      overflow: hidden;
      background: white;
      box-shadow: var(--shadow);
      border: 1px solid rgba(216,225,223,.8);
      display: grid;
      align-content: end;
      padding: 28px;
    }
    .onco-photo {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }
    .onco-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }
    .onco-caption {
      position: relative;
      z-index: 1;
      padding: 22px 24px;
      border-radius: 18px;
      background: rgba(255,255,255,.94);
      backdrop-filter: blur(10px);
      box-shadow: 0 10px 30px rgba(0,0,0,.12);
      border: 1px solid rgba(216,225,223,.7);
    }
    .onco-caption strong { display:block; font-size:1.05rem; margin-bottom:6px; color:var(--brand); }
    .onco-caption p { margin:0; color:var(--ink-soft); font-size:.92rem; line-height:1.5; }

    /* Footer */
    footer {
      background: #0b363b;
      color: white;
      padding: 58px 0 28px;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 1.1fr .7fr .7fr 1fr;
      gap: 32px;
    }
    .footer-logo img { width: 185px; filter: brightness(0) invert(1); opacity: .95; }
    .footer-copy { color: rgba(255,255,255,.68); font-size: .86rem; max-width: 360px; margin-top: 18px; }
    .footer-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: #cce2df; margin-bottom: 14px; }
    .footer-links { display: grid; gap: 9px; color: rgba(255,255,255,.78); font-size: .88rem; }
    .footer-links a:hover { color: white; }
    .footer-bottom {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      gap: 12px;
      border-top: 1px solid rgba(255,255,255,.12);
      margin-top: 42px;
      padding-top: 24px;
      color: rgba(255,255,255,.65);
      font-size: .84rem;
      width: 100%;
    }
    .footer-copyright {
      color: rgba(255,255,255,.65);
      text-align: center;
      width: 100%;
    }
    .footer-creator {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: rgba(255,255,255,.75);
      text-align: center;
      width: 100%;
    }
    .footer-creator a {
      display: inline-flex;
      align-items: center;
    }
    .footer-creator img {
      height: 22px;
      width: auto;
      display: inline-block;
      vertical-align: middle;
    }

    /* Floating WhatsApp */
    .floating-cta {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 990;
      background: #25d366;
      color: white;
      border-radius: 999px;
      padding: 12px 20px;
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 700;
      font-size: .95rem;
      box-shadow: 0 10px 30px rgba(37,211,102,.4);
      transition: .2s ease;
      text-decoration: none;
    }
    .floating-cta:hover {
      transform: scale(1.04);
      background: #20ba59;
      color: white;
    }
    .floating-cta svg { width: 22px; height: 22px; flex: none; }

    @media (max-width: 980px) {
      .nav-links { display: none; }
      .nav-toggle { display: block; }
      .nav.open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 24px 20px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 40px rgba(0,0,0,.08);
      }
      .nav.open .nav-links .btn { width: 100%; }
      .oncology-grid { grid-template-columns: 1fr; gap: 40px; }
      .onco-visual { min-height: 420px; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 600px) {
      .footer-grid { grid-template-columns: 1fr; }
      .footer { padding-bottom: 84px; }
      .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
      .floating-cta span { display: none; }
      .floating-cta { padding: 14px; border-radius: 50%; }
    }
