/*
Theme Name: Carrillo Industrial
Theme URI: https://carrilloindustrial.com
Author: Servicios Industriales Carrillo
Description: Tema corporativo oficial de Carrillo Industrial — Servicios Integrales
Version: 1.1.0
License: Privado
Text Domain: carrillo-industrial
*/

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

    :root {
      --bg:        #0e0f0f;
      --surface:   #141616;
      --panel:     #191c1c;
      --border:    #222626;
      --border2:   #2c3232;
      --green:     rgb(19,138,78);
      --green-lt:  rgb(28,165,95);
      --green-dim: rgba(19,138,78,0.10);
      --green-mid: rgba(19,138,78,0.20);
      --red:       rgb(215,38,39);
      --red-dim:   rgba(215,38,39,0.10);
      --blue:      rgb(10,77,125);
      --blue-dim:  rgba(10,77,125,0.12);
      --white:     #edefed;
      --muted:     #6b7575;
      --soft:      #9eaaa8;
      --text:      #ccd4d2;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Corbel', 'Calibri', 'Segoe UI', sans-serif;
      font-size: 15px;
      line-height: 1.65;
      overflow-x: hidden;
    }

    /* grid background */
    body::after {
      content: '';
      position: fixed;
      inset: 0;
      background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
      background-size: 60px 60px;
      opacity: 0.22;
      pointer-events: none;
      z-index: 0;
    }

    /* ── NAV ── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 900;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 56px;
      background: rgba(14,15,15,0.94);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
    }

    .logo-mark { width: 32px; height: 32px; flex-shrink: 0; }

    .logo-text { display: flex; flex-direction: column; line-height: 1.15; }

    .logo-main {
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0.07em;
      color: var(--white);
      text-transform: uppercase;
    }

    .logo-sub {
      font-size: 10px;
      font-weight: 400;
      letter-spacing: 0.20em;
      color: var(--muted);
      text-transform: uppercase;
    }

    .nav-menu {
      display: flex;
      align-items: center;
      gap: 40px;
      list-style: none;
    }

    .nav-menu a {
      text-decoration: none;
      font-size: 11px;
      font-weight: 400;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--muted);
      transition: color 0.2s;
    }

    .nav-menu a:hover { color: var(--green); }

    .nav-btn {
      border: 1px solid var(--green) !important;
      color: var(--green) !important;
      padding: 7px 20px;
      transition: background 0.2s, color 0.2s !important;
    }

    .nav-btn:hover {
      background: var(--green) !important;
      color: #fff !important;
    }

    /* ── HERO ── */
    #hero {
      position: relative;
      z-index: 1;
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1fr 1fr;
    }

    .hero-left {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 120px 64px 80px 56px;
      border-right: 1px solid var(--border);
      position: relative;
    }

    .hero-left::before {
      content: '';
      position: absolute;
      left: 0; top: 120px; bottom: 80px;
      width: 2px;
      background: linear-gradient(to bottom, transparent, var(--green), transparent);
    }

    .eyebrow {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 32px;
    }

    .eyebrow-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--green);
      flex-shrink: 0;
    }

    .eyebrow span {
      font-size: 11px;
      letter-spacing: 0.20em;
      text-transform: uppercase;
      color: var(--green);
    }

    .hero-title {
      font-size: clamp(40px, 5vw, 70px);
      font-weight: 700;
      line-height: 1.06;
      color: var(--white);
      margin-bottom: 24px;
      letter-spacing: -0.01em;
    }

    .hero-title em {
      font-style: normal;
      color: var(--green);
    }

    .hero-desc {
      font-size: 15px;
      color: var(--soft);
      max-width: 400px;
      line-height: 1.75;
      margin-bottom: 48px;
    }

    .hero-ctas {
      display: flex;
      align-items: center;
      gap: 24px;
    }

    .cta-primary {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: var(--green);
      color: #fff;
      text-decoration: none;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      padding: 13px 28px;
      transition: background 0.2s;
    }

    .cta-primary:hover { background: var(--green-lt); }

    .cta-secondary {
      color: var(--soft);
      text-decoration: none;
      font-size: 12px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      border-bottom: 1px solid var(--border2);
      padding-bottom: 2px;
      transition: color 0.2s, border-color 0.2s;
    }

    .cta-secondary:hover { color: var(--green); border-color: var(--green); }

    .hero-metrics {
      display: flex;
      margin-top: 56px;
      padding-top: 32px;
      border-top: 1px solid var(--border);
    }

    .metric {
      flex: 1;
      padding-right: 24px;
      border-right: 1px solid var(--border);
      margin-right: 24px;
    }

    .metric:last-child { border-right: none; margin-right: 0; padding-right: 0; }

    .metric-val {
      font-size: 28px;
      font-weight: 700;
      color: var(--green);
      line-height: 1;
      margin-bottom: 5px;
    }

    .metric-lbl {
      font-size: 10px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--muted);
    }

    /* Hero right panel */
    .hero-right {
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--surface);
      position: relative;
      overflow: hidden;
    }

    .hero-diagram { width: 72%; max-width: 360px; position: relative; z-index: 2; }

    .hero-ref {
      position: absolute;
      bottom: 32px; right: 32px;
      font-size: 10px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .hero-ref span { color: var(--green); }

    /* ── SHARED ── */
    .section-wrap { position: relative; z-index: 1; }

    .label-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
    }

    .label-line { width: 20px; height: 1px; background: var(--green); flex-shrink: 0; }

    .label-text {
      font-size: 10px;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--green);
    }

    .section-title {
      font-size: clamp(28px, 3.5vw, 44px);
      font-weight: 700;
      color: var(--white);
      line-height: 1.08;
      letter-spacing: -0.01em;
    }

    /* tricolor divider */
    .tribar {
      height: 2px;
      background: linear-gradient(90deg,
        var(--red) 0% 33.33%,
        var(--green) 33.33% 66.66%,
        var(--blue) 66.66% 100%);
      position: relative;
      z-index: 1;
    }

    /* ── SERVICIOS ── */
    #servicios { padding: 96px 56px; position: relative; z-index: 1; }

    .services-top {
      display: grid;
      grid-template-columns: 1fr 1.5fr;
      gap: 80px;
      align-items: end;
      margin-bottom: 56px;
    }

    .services-intro { font-size: 14px; color: var(--soft); line-height: 1.8; }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(3,1fr);
      border: 1px solid var(--border);
    }

    .svc {
      padding: 32px 28px;
      border-right: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      position: relative;
      transition: background 0.22s;
      cursor: default;
    }

    .svc:nth-child(3n) { border-right: none; }
    .svc:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
    .svc.full { border-bottom: none; }

    .svc.full {
      grid-column: 1 / -1;
      border-right: none;
      border-bottom: none;
      display: flex;
      gap: 48px;
      align-items: flex-start;
    }

    .svc.full .svc-body { flex: 1; }

    .svc::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: var(--green);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.3s ease;
    }

    .svc:hover { background: var(--surface); }
    .svc:hover::before { transform: scaleX(1); }

    .svc-num {
      font-size: 10px;
      letter-spacing: 0.16em;
      color: var(--muted);
      margin-bottom: 18px;
    }

    .svc-icon { width: 34px; height: 34px; margin-bottom: 14px; }

    .svc-name {
      font-size: 15px;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 10px;
      line-height: 1.25;
    }

    .svc-desc { font-size: 13px; color: var(--soft); line-height: 1.7; }

    .svc-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      margin-top: 16px;
    }

    .tag {
      font-size: 10px;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      color: var(--green);
      border: 1px solid rgba(19,138,78,0.25);
      padding: 2px 9px;
      background: var(--green-dim);
    }

    /* ── NOSOTROS ── */
    #nosotros {
      padding: 96px 56px;
      background: var(--surface);
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: start;
    }

    #nosotros .section-title { margin-bottom: 20px; }

    #nosotros > div > p {
      font-size: 14px;
      color: var(--soft);
      line-height: 1.8;
      margin-bottom: 14px;
    }

    .pilares {
      margin-top: 36px;
      display: flex;
      flex-direction: column;
      gap: 1px;
      background: var(--border);
    }

    .pilar {
      background: var(--surface);
      padding: 18px 20px;
      display: flex;
      align-items: flex-start;
      gap: 14px;
      transition: background 0.2s;
    }

    .pilar:hover { background: var(--panel); }

    .pilar-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      background: var(--green);
      margin-top: 6px;
      flex-shrink: 0;
    }

    .pilar-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 3px;
    }

    .pilar-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

    /* Right side */
    .nosotros-right { display: flex; flex-direction: column; gap: 20px; }

    .big-statement {
      border-left: 2px solid var(--green);
      padding-left: 24px;
    }

    .big-statement p {
      font-size: clamp(17px, 2vw, 22px);
      font-weight: 400;
      color: var(--white);
      line-height: 1.6;
    }

    .big-statement p em { font-style: normal; color: var(--green); }

    .kpi-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1px;
      background: var(--border);
    }

    .kpi { background: var(--panel); padding: 22px; }

    .kpi-val {
      font-size: 32px;
      font-weight: 700;
      color: var(--green);
      line-height: 1;
      margin-bottom: 5px;
    }

    .kpi-lbl {
      font-size: 10px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted);
    }

    /* ── CONTACTO ── */
    #contacto {
      padding: 96px 56px;
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: start;
    }

    #contacto .section-title { margin-bottom: 14px; }

    .contacto-lead {
      font-size: 14px;
      color: var(--soft);
      line-height: 1.8;
      margin-bottom: 40px;
      max-width: 360px;
    }

    .contact-list {
      display: flex;
      flex-direction: column;
      border: 1px solid var(--border);
    }

    .ci {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 16px 18px;
      border-bottom: 1px solid var(--border);
      transition: background 0.2s;
    }

    .ci:last-child { border-bottom: none; }
    .ci:hover { background: var(--surface); }

    .ci-icon {
      width: 30px; height: 30px;
      display: flex; align-items: center; justify-content: center;
      border: 1px solid var(--border2);
      flex-shrink: 0;
    }

    .ci-icon svg { width: 15px; height: 15px; stroke: var(--green); fill: none; stroke-width: 1.5; }

    .ci-label {
      font-size: 10px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 2px;
    }

    .ci-value { font-size: 13px; color: var(--white); }
    .ci-value a { color: var(--white); text-decoration: none; transition: color 0.2s; }
    .ci-value a:hover { color: var(--green); }

    /* Form */
    .contacto-form {
      display: flex;
      flex-direction: column;
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
    }

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

    .fg {
      display: flex;
      flex-direction: column;
      background: var(--bg);
    }

    .fg label {
      font-size: 10px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--muted);
      padding: 12px 16px 0;
    }

    .fg input,
    .fg textarea,
    .fg select {
      background: transparent;
      border: none;
      outline: none;
      color: var(--white);
      font-family: 'Corbel', 'Calibri', sans-serif;
      font-size: 14px;
      padding: 5px 16px 13px;
      appearance: none;
    }

    .fg textarea { resize: vertical; min-height: 100px; }

    .fg input::placeholder,
    .fg textarea::placeholder { color: var(--border2); }

    .fg:focus-within {
      background: var(--surface);
      outline: 1px solid var(--green);
      outline-offset: -1px;
    }

    .form-footer-row {
      background: var(--bg);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 18px;
    }

    .form-submit {
      background: var(--green);
      color: #fff;
      border: none;
      font-family: 'Corbel', sans-serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      padding: 13px 28px;
      cursor: pointer;
      transition: background 0.2s;
    }

    .form-submit:hover { background: var(--green-lt); }

    /* ── FOOTER ── */
    footer {
      background: var(--surface);
      border-top: 1px solid var(--border);
      padding: 26px 56px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      z-index: 1;
      flex-wrap: wrap;
      gap: 14px;
    }

    .footer-left { display: flex; align-items: center; gap: 12px; }

    .footer-copy { font-size: 11px; color: var(--muted); }

    .footer-right { display: flex; align-items: center; gap: 28px; }

    .footer-link {
      font-size: 11px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted);
      text-decoration: none;
      transition: color 0.2s;
    }

    .footer-link:hover { color: var(--green); }

    .footer-domain {
      font-size: 11px;
      letter-spacing: 0.12em;
      color: var(--green);
      text-decoration: none;
    }

    /* ── REVEAL ── */
    .reveal {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.55s ease, transform 0.55s ease;
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    /* ── RESPONSIVE ── */

    /* ── ILUSTRACIONES DE SERVICIO ── */
    .svc-media {
      position: relative;
      margin: -32px -28px 22px;
      aspect-ratio: 400 / 190;
      background-color: var(--surface);
      background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
      background-size: 20px 20px;
      border-bottom: 1px solid var(--border);
      overflow: hidden;
      transition: background-color 0.25s;
    }
    .svc:hover .svc-media { background-color: var(--panel); }
    .svc-media .svc-num {
      position: absolute; top: 12px; left: 16px; z-index: 2; margin: 0;
      background: rgba(14,15,15,0.75); padding: 2px 8px;
    }
    .svc-icon { display: none; }
    .svc.full { align-items: stretch; }
    .svc.full .svc-media {
      margin: -32px 0 -32px -28px; width: 420px; flex: none; aspect-ratio: auto;
      border-bottom: none; border-right: 1px solid var(--border);
    }
    .svc.full .svc-body { padding: 4px 0; align-self: center; }

    .il { width: 100%; height: 100%; display: block; }
    .il .g  { fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.25s; }
    .il .gf { fill: var(--green); stroke: none; }
    .il .gd { fill: rgba(19,138,78,0.12); stroke: var(--green); stroke-width: 1.3; stroke-linejoin: round; }
    .il .w  { fill: none; stroke: rgba(237,239,237,0.26); stroke-width: 1.2; stroke-linecap: round; }
    .il .wf { fill: rgba(237,239,237,0.05); stroke: rgba(237,239,237,0.26); stroke-width: 1.2; }
    .il .r  { fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; }
    .il .rf { fill: var(--red); stroke: none; }
    .il text { font-family: 'Corbel','Calibri','Segoe UI',sans-serif; font-size: 8px; letter-spacing: .14em; fill: var(--muted); }
    .svc:hover .il .g { stroke: var(--green-lt); }

    .il .spin { transform-box: fill-box; transform-origin: center; animation: il-spin 26s linear infinite; }
    .il .spin.rev { animation-direction: reverse; animation-duration: 17s; }
    .il .needle { transform-origin: 320px 118px; animation: il-needle 5s ease-in-out infinite alternate; }
    .il .led { animation: il-led 2.2s ease-in-out infinite; }
    .il .chev { animation: il-chev 2.4s ease-in-out infinite; }
    .il .trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: il-trace 3.2s ease-in-out infinite; }
    .il .flow { stroke-dasharray: 5 6; animation: il-flow 1.4s linear infinite; }
    .il .lift  { animation: il-lift 14s ease-in-out infinite alternate; }
    .il .lift2 { animation: il-lift2 14s ease-in-out infinite alternate; }
    .il .trolley { animation: il-trolley 9s ease-in-out infinite alternate; }
    .il .draw > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
    .svc.visible .il .draw > * { animation: il-draw 2.4s ease forwards; }

    @keyframes il-spin   { to { transform: rotate(360deg); } }
    @keyframes il-needle { from { transform: rotate(-38deg); } to { transform: rotate(18deg); } }
    @keyframes il-led    { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
    @keyframes il-chev   { 0%,100% { transform: translateX(-4px); opacity: .5; } 50% { transform: translateX(6px); opacity: 1; } }
    @keyframes il-trace  { 0% { stroke-dashoffset: 1; } 60%,100% { stroke-dashoffset: 0; } }
    @keyframes il-flow   { to { stroke-dashoffset: -11; } }
    @keyframes il-lift   { 0%,12% { transform: translateY(0); } 30%,42% { transform: translateY(-45px); } 60%,72% { transform: translateY(-90px); } 88%,100% { transform: translateY(-135px); } }
    @keyframes il-lift2  { 0%,12% { transform: translateY(0); } 30%,42% { transform: translateY(37px); } 60%,72% { transform: translateY(75px); } 88%,100% { transform: translateY(112px); } }
    @keyframes il-trolley{ from { transform: translateX(-70px); } to { transform: translateX(80px); } }
    @keyframes il-draw   { to { stroke-dashoffset: 0; } }

    /* ── SECTORES ── */
    #sectores { padding: 56px 56px; position: relative; z-index: 1; background: var(--surface); }
    .sectores-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); margin-top: 28px; }
    .sector { padding: 28px 28px 30px; border-right: 1px solid var(--border); background: var(--bg); transition: background 0.22s; }
    .sector:last-child { border-right: none; }
    .sector:hover { background: var(--panel); }
    .sector-k { font-size: 10px; letter-spacing: 0.18em; color: var(--green); text-transform: uppercase; margin-bottom: 10px; }
    .sector-t { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
    .sector-d { font-size: 13px; color: var(--soft); line-height: 1.7; }

    /* ── PROCESO ── */
    #proceso { padding: 100px 56px; position: relative; z-index: 1; }
    .proceso-top { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: end; margin-bottom: 56px; }
    .proceso-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
    .proceso-grid::before { content: ''; position: absolute; top: 15px; left: 0; right: 0; height: 1px; background: var(--border2); }
    .paso { position: relative; padding: 0 28px 0 0; }
    .paso-n {
      position: relative; width: 31px; height: 31px; border: 1px solid var(--green); background: var(--bg);
      color: var(--green); font-size: 11px; letter-spacing: 0.06em; display: flex; align-items: center; justify-content: center;
      margin-bottom: 22px;
    }
    .paso-t { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 8px; line-height: 1.25; }
    .paso-d { font-size: 13px; color: var(--soft); line-height: 1.7; }
    @media (max-width: 900px) {
      .svc.full .svc-media { width: auto; margin: -32px -28px 22px; aspect-ratio: 400 / 190; border-right: none; border-bottom: 1px solid var(--border); }
      #sectores { padding: 48px 24px; }
      .sectores-grid { grid-template-columns: 1fr; }
      .sector { border-right: none; border-bottom: 1px solid var(--border); }
      .sector:last-child { border-bottom: none; }
      #proceso { padding: 72px 24px; }
      .proceso-top { grid-template-columns: 1fr; gap: 20px; }
      .proceso-grid { grid-template-columns: 1fr; gap: 28px; }
      .proceso-grid::before { top: 0; bottom: 0; left: 15px; right: auto; width: 1px; height: auto; }
      .paso { padding: 0 0 0 52px; }
      .paso-n { position: absolute; left: 0; top: 0; }
    }
    @media (prefers-reduced-motion: reduce) {
      .il * { animation: none !important; }
      .il .trace, .il .draw > * { stroke-dashoffset: 0 !important; }
    }

    @media (max-width: 900px) {
      nav { padding: 0 24px; }
      .nav-menu { display: none; }
      #hero { grid-template-columns: 1fr; }
      .hero-right { display: none; }
      .hero-left { padding: 100px 24px 60px; }
      #servicios, #nosotros, #contacto { padding: 72px 24px; }
      .services-top { grid-template-columns: 1fr; gap: 20px; }
      .services-grid { grid-template-columns: 1fr; }
      .svc.full { flex-direction: column; gap: 16px; }
      #nosotros { grid-template-columns: 1fr; gap: 48px; }
      #contacto { grid-template-columns: 1fr; gap: 48px; }
      .form-row { grid-template-columns: 1fr; }
      footer { padding: 24px; flex-direction: column; align-items: flex-start; }
    }
  
body{margin:0;padding:0}img{max-width:100%;height:auto}a{text-decoration:none}
