﻿/*
Theme Name: NEWTABI Corporativo
Theme URI: https://newtabiques.com/
Author: NEWTABI / TABIQUES LOZANO
Description: Tema corporativo a medida para NEWTABI y TABIQUES LOZANO.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: newtabi-corporativo
*/
:root {
      --blue: #0099cf;
      --blue-dark: #003b66;
      --wine: #8a0d12;
      --ink: #1a1f25;
      --steel: #3f4953;
      --muted: #6f7882;
      --line: #d9e0e6;
      --soft: #f2f5f7;
      --white: #fff;
      --max: 1180px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      color: var(--ink);
      background: var(--white);
      letter-spacing: 0;
    }

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

    a {
      color: inherit;
      text-decoration: none;
    }

    .wrap {
      width: min(var(--max), calc(100% - 32px));
      margin: 0 auto;
    }

    .utility {
      background: #10151b;
      color: rgba(255, 255, 255, .82);
      font-size: 13px;
    }

    .utility .wrap {
      min-height: 38px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
    }

    .utility-links,
    .contact-links,
    .main-actions,
    .business-nav,
    .tag-row {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .utility a,
    .contact-links a {
      display: inline-flex;
      align-items: center;
      gap: 7px;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 30;
      background: var(--white);
      border-bottom: 1px solid var(--line);
    }

    .admin-bar .site-header {
      top: 32px;
    }

    .header-main {
      min-height: 102px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .brand {
      width: min(310px, 52vw);
    }

    .main-actions {
      justify-content: flex-end;
      color: var(--steel);
      font-size: 14px;
      font-weight: 700;
    }

    .button {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 16px;
      border: 1px solid transparent;
      border-radius: 4px;
      font-weight: 800;
      line-height: 1;
      white-space: nowrap;
      cursor: pointer;
    }

    .button-primary {
      background: var(--blue);
      color: #071016;
    }

    .button-dark {
      background: var(--ink);
      color: var(--white);
    }

    .button-outline {
      border-color: rgba(255, 255, 255, .62);
      color: var(--white);
      background: rgba(255, 255, 255, .08);
    }

    .button-light {
      border-color: var(--line);
      background: var(--white);
      color: var(--ink);
    }

    .nav-strip {
      background: #f7f8fa;
      border-top: 1px solid var(--line);
    }

    .business-nav {
      min-height: 50px;
      justify-content: center;
      color: #4b5560;
      font-size: 14px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .business-nav a {
      padding: 17px 9px 15px;
      border-bottom: 3px solid transparent;
    }

    .business-nav a:hover {
      border-color: var(--blue);
      color: var(--blue-dark);
    }

    .hero {
      min-height: calc(100vh - 250px);
      position: relative;
      display: grid;
      align-items: end;
      isolation: isolate;
      overflow: hidden;
      background: var(--ink);
      padding: 0;
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -2;
      background: url("assets/hero-turia.jpg") center / cover no-repeat;
      transform: scale(1.02);
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background:
        linear-gradient(90deg, rgba(10, 15, 20, .86), rgba(10, 15, 20, .58) 48%, rgba(10, 15, 20, .15)),
        linear-gradient(0deg, rgba(10, 15, 20, .78), transparent 42%);
    }

    .hero-inner {
      padding: 32px 0 28px;
      color: var(--white);
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin: 0 0 18px;
      color: rgba(255, 255, 255, .78);
      font-size: 14px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .eyebrow::before {
      content: "";
      width: 48px;
      height: 3px;
      background: var(--blue);
    }

    h1,
    h2,
    h3,
    p {
      margin-top: 0;
    }

    h1 {
      max-width: 1100px;
      margin-bottom: 18px;
      font-size: clamp(40px, 5vw, 58px);
      line-height: 1;
      letter-spacing: 0;
    }

    .hero-copy {
      max-width: 760px;
      margin-bottom: 26px;
      color: rgba(255, 255, 255, .88);
      font-size: clamp(18px, 2.2vw, 21px);
      line-height: 1.45;
    }

    .hero-sectors {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1px;
      margin-top: 24px;
      border: 1px solid rgba(255, 255, 255, .24);
      background: rgba(255, 255, 255, .22);
    }

    .hero-sectors a {
      min-height: 84px;
      display: grid;
      align-content: center;
      gap: 5px;
      padding: 15px 18px;
      background: rgba(16, 21, 27, .76);
    }

    .hero-sectors strong {
      color: var(--white);
      font-size: 16px;
    }

    .hero-sectors span {
      color: rgba(255, 255, 255, .7);
      font-size: 13px;
      line-height: 1.35;
    }

    section {
      padding: 82px 0;
    }

    .section-head {
      display: grid;
      grid-template-columns: minmax(0, .9fr) minmax(280px, .58fr);
      gap: 48px;
      align-items: end;
      margin-bottom: 42px;
    }

    .kicker {
      margin-bottom: 10px;
      color: var(--wine);
      font-size: 13px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .section-title {
      margin-bottom: 0;
      font-size: clamp(30px, 4.4vw, 50px);
      line-height: 1.06;
      letter-spacing: 0;
    }

    .lead {
      margin-bottom: 0;
      color: var(--muted);
      font-size: 17px;
      line-height: 1.68;
    }

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

    .welcome-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(320px, .46fr);
      gap: 58px;
      align-items: start;
    }

    .welcome-copy {
      color: var(--steel);
      font-size: 18px;
      line-height: 1.78;
    }

    .data-panel {
      border-left: 4px solid var(--blue);
      background: var(--soft);
    }

    .data-row {
      display: grid;
      grid-template-columns: 88px 1fr;
      gap: 18px;
      padding: 22px 24px;
      border-bottom: 1px solid var(--line);
    }

    .data-row:last-child {
      border-bottom: 0;
    }

    .data-row strong {
      color: var(--blue-dark);
      font-size: 15px;
      text-transform: uppercase;
    }

    .data-row span {
      color: var(--steel);
      line-height: 1.5;
    }

    .business-lines {
      background: var(--soft);
    }

    .line-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 18px;
    }

    .line-card {
      min-height: 430px;
      display: grid;
      grid-template-rows: 190px 1fr;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--white);
    }

    .line-card img {
      width: 100%;
      height: 190px;
      object-fit: cover;
    }

    .line-body {
      padding: 22px;
    }

    .line-number {
      display: block;
      margin-bottom: 12px;
      color: var(--blue);
      font-size: 13px;
      font-weight: 900;
    }

    .line-card h3 {
      margin-bottom: 12px;
      font-size: 22px;
      line-height: 1.12;
    }

    .line-card p {
      margin-bottom: 0;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.62;
    }

    .experience {
      position: relative;
      background: var(--ink);
      color: var(--white);
      overflow: hidden;
    }

    .experience::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url("assets/turia-patio.jpg") center / cover no-repeat;
      opacity: .26;
    }

    .experience .wrap {
      position: relative;
    }

    .experience .kicker {
      color: var(--blue);
    }

    .experience .lead {
      color: rgba(255, 255, 255, .76);
    }

    .experience-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1px;
      margin-top: 38px;
      border: 1px solid rgba(255, 255, 255, .18);
      background: rgba(255, 255, 255, .18);
    }

    .experience-item {
      min-height: 166px;
      padding: 24px;
      background: rgba(18, 24, 31, .82);
    }

    .experience-item strong {
      display: block;
      margin-bottom: 10px;
      color: var(--white);
      font-size: 23px;
    }

    .experience-item span {
      color: rgba(255, 255, 255, .72);
      line-height: 1.58;
    }

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

    .project-card {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--white);
    }

    .project-media {
      position: relative;
      height: 245px;
      background: #e4e9ee;
    }

    .project-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .project-media.placeholder {
      display: grid;
      place-items: center;
      padding: 28px;
      color: var(--steel);
      text-align: center;
      background:
        linear-gradient(135deg, rgba(0, 153, 207, .11), transparent 45%),
        linear-gradient(315deg, rgba(138, 13, 18, .12), transparent 50%),
        #edf1f4;
    }

    .placeholder-box {
      display: grid;
      gap: 12px;
      justify-items: center;
      font-weight: 900;
    }

    .placeholder-box i {
      color: var(--blue-dark);
    }

    .project-type {
      position: absolute;
      left: 14px;
      bottom: 14px;
      padding: 8px 10px;
      border-radius: 3px;
      background: rgba(16, 21, 27, .9);
      color: var(--white);
      font-size: 13px;
      font-weight: 900;
    }

    .project-body {
      padding: 22px;
    }

    .project-body h3 {
      margin-bottom: 10px;
      font-size: 22px;
      line-height: 1.18;
    }

    .project-body p {
      margin-bottom: 16px;
      color: var(--muted);
      line-height: 1.62;
    }

    .tag {
      padding: 6px 9px;
      border: 1px solid var(--line);
      border-radius: 3px;
      color: var(--steel);
      font-size: 13px;
      font-weight: 800;
      background: var(--white);
    }

    .promotions {
      background: var(--soft);
    }

    .promo-list {
      display: grid;
      gap: 12px;
    }

    .promo-row {
      display: grid;
      grid-template-columns: 1fr 1.3fr auto;
      gap: 22px;
      align-items: center;
      padding: 20px 22px;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--white);
    }

    .promo-row h3 {
      margin-bottom: 3px;
      font-size: 22px;
    }

    .promo-row small {
      color: var(--blue-dark);
      font-weight: 900;
      text-transform: uppercase;
    }

    .promo-row p {
      margin-bottom: 0;
      color: var(--muted);
      line-height: 1.55;
    }

    .status {
      min-width: 138px;
      padding: 8px 10px;
      border-radius: 3px;
      background: #eef3f6;
      color: var(--steel);
      font-size: 13px;
      font-weight: 900;
      text-align: center;
      text-transform: uppercase;
    }

    .contact-section {
      background: #11171e;
      color: var(--white);
    }

    .contact-section .kicker {
      color: var(--blue);
    }

    .contact-section .lead {
      color: rgba(255, 255, 255, .74);
    }

    .contact-grid {
      display: grid;
      grid-template-columns: minmax(0, .76fr) minmax(360px, 1fr);
      gap: 46px;
      align-items: start;
    }

    .contact-card {
      display: grid;
      gap: 12px;
      margin-top: 26px;
    }

    .contact-card a {
      min-height: 48px;
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 900;
    }

    .quote-form {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      padding: 28px;
      border-radius: 6px;
      background: var(--white);
      color: var(--ink);
    }

    .field {
      display: grid;
      gap: 7px;
    }

    .field.full {
      grid-column: 1 / -1;
    }

    label {
      color: var(--steel);
      font-size: 14px;
      font-weight: 900;
    }

    input,
    select,
    textarea {
      width: 100%;
      min-height: 46px;
      padding: 11px 12px;
      border: 1px solid #ccd5dc;
      border-radius: 4px;
      font: inherit;
      color: var(--ink);
      background: var(--white);
    }

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

    .footer {
      padding: 32px 0;
      background: #080c10;
      color: rgba(255, 255, 255, .68);
      font-size: 14px;
    }

    .footer .wrap {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      flex-wrap: wrap;
    }

    .float-actions {
      position: fixed;
      right: 18px;
      bottom: 18px;
      z-index: 40;
      display: grid;
      gap: 10px;
    }

    .float-actions a {
      width: 52px;
      height: 52px;
      display: grid;
      place-items: center;
      border-radius: 6px;
      color: var(--white);
      box-shadow: 0 16px 34px rgba(0, 0, 0, .2);
    }

    .float-phone {
      background: var(--blue);
      color: #071016 !important;
    }

    .float-whatsapp {
      background: var(--steel);
    }

    @media (max-width: 1040px) {
      .header-main .main-actions,
      .business-nav {
        display: none;
      }

      .header-main {
        min-height: 98px;
      }

      .hero-sectors,
      .line-grid,
      .project-grid,
      .experience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .section-head,
      .welcome-grid,
      .contact-grid {
        grid-template-columns: 1fr;
      }

      .promo-row {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 720px) {
      .admin-bar .site-header {
        top: 46px;
      }

      .utility .wrap {
        min-height: 62px;
        align-items: flex-start;
        padding: 9px 0;
      }

      .brand {
        width: min(286px, 76vw);
      }

      .hero {
        min-height: auto;
      }

      .hero-inner {
        padding: 42px 0 36px;
      }

      .hero::after {
        background: rgba(10, 15, 20, .74);
      }

      h1 {
        font-size: clamp(36px, 11vw, 43px);
      }

      .hero-copy {
        font-size: 17px;
      }

      .button {
        width: 100%;
      }

      .hero-sectors {
        display: none;
      }

      section {
        padding: 58px 0;
      }

      .line-grid,
      .project-grid,
      .experience-grid,
      .quote-form {
        grid-template-columns: 1fr;
      }

      .line-card {
        min-height: auto;
      }

      .project-media {
        height: 230px;
      }

      .data-row {
        grid-template-columns: 1fr;
        gap: 6px;
      }
    }
