/*
Theme Name: HYDM Pro
Theme URI: https://hydm.com.mx
Author: Dave G
Description: Tema corporativo industrial para HYDM - Herramientas y Diseños Maquinados.
Version: 1.0.0
Text Domain: hydm-pro
*/

:root {
  --hydm-orange: #f58220;
  --hydm-orange-dark: #d96500;
  --hydm-black: #0b0d0f;
  --hydm-graphite: #15191d;
  --hydm-steel: #2b3238;
  --hydm-gray: #8a939b;
  --hydm-light: #f5f6f7;
  --hydm-white: #ffffff;

  --hydm-max: 1200px;
  --hydm-radius: 18px;
  --hydm-shadow: 0 20px 60px rgba(0,0,0,.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--hydm-white);
  color: #171a1d;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(92%, var(--hydm-max));
  margin-inline: auto;
}

.section {
  padding: 90px 0;
}

.section-dark {
  background: var(--hydm-graphite);
  color: white;
}

.section-black {
  background: var(--hydm-black);
  color: white;
}

.eyebrow {
  color: var(--hydm-orange);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.35rem;
}

.lead {
  font-size: 1.12rem;
  color: #5d656c;
  max-width: 760px;
}

.section-dark .lead,
.section-black .lead {
  color: #c8ced3;
}

/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11,13,15,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 800;
}

.brand-mark {
  background: var(--hydm-orange);
  color: #111;
  padding: 7px 12px;
  border-radius: 7px;
  font-weight: 900;
  letter-spacing: .04em;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav a {
  color: #e9edf0;
  font-weight: 700;
  font-size: .92rem;
}

.main-nav a:hover {
  color: var(--hydm-orange);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: .2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--hydm-orange);
  color: #111;
}

.btn-primary:hover {
  background: #ff9a43;
  transform: translateY(-2px);
}

.btn-outline {
  border-color: rgba(255,255,255,.45);
  color: white;
}

.btn-outline:hover {
  border-color: var(--hydm-orange);
  color: var(--hydm-orange);
}

/* HERO */

.hero {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
  padding-top: 100px;
  background:
    linear-gradient(
    90deg,
    rgba(6,8,10,.96),
    rgba(6,8,10,.78) 48%,
    rgba(6,8,10,.35)
  ),
  url('assets/images/hero-cnc.jpg') center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border: 80px solid rgba(245,130,32,.10);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 span {
  color: var(--hydm-orange);
}

.hero-copy {
  font-size: 1.2rem;
  color: #d4d9dd;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 58px;
  gap: 1px;
  background: rgba(255,255,255,.12);
  max-width: 900px;
}

.hero-strip div {
  background: rgba(12,15,18,.72);
  padding: 20px;
}

.hero-strip strong {
  display: block;
  color: var(--hydm-orange);
  margin-bottom: 4px;
}

/* CARDS */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 44px;
}

.card {
  background: white;
  color: #171a1d;
  border: 1px solid #eceff1;
  border-radius: var(--hydm-radius);
  box-shadow: var(--hydm-shadow);
  padding: 34px;
  transition: .25s ease;
}

.card:hover {
  transform: translateY(-7px);
  border-color: rgba(245,130,32,.55);
}

.card-number {
  color: var(--hydm-orange);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.card ul {
  color: #5c646b;
  padding-left: 20px;
}

/* SPLIT */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.industrial-panel {
  min-height: 470px;
  border-radius: var(--hydm-radius);
  background:
    linear-gradient(145deg, rgba(245,130,32,.12), transparent 45%),
    linear-gradient(135deg, #11161a, #333c43);
  box-shadow: var(--hydm-shadow);
  position: relative;
  overflow: hidden;
}

.industrial-panel::before {
  content: "CNC";
  position: absolute;
  right: 24px;
  bottom: -35px;
  font-size: 9rem;
  font-weight: 900;
  color: rgba(255,255,255,.04);
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.check {
  display: flex;
  gap: 12px;
}

.check::before {
  content: "✓";
  color: var(--hydm-orange);
  font-weight: 900;
}

/* ADVANTAGES */

.advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.advantage {
  padding: 28px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 14px;
}

.advantage strong {
  display: block;
  color: var(--hydm-orange);
  margin-bottom: 8px;
}

/* PROCESS */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.step {
  background: #f5f6f7;
  border-top: 4px solid var(--hydm-orange);
  padding: 26px;
}

.step-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: #d9dee1;
}

/* CLIENTS */

.clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  margin-top: 34px;
  color: #cfd4d8;
  font-size: 1.35rem;
  font-weight: 900;
}

/* CTA */

.cta {
  padding: 78px 0;
  background: linear-gradient(120deg, var(--hydm-orange-dark), var(--hydm-orange));
  color: #111;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta h2 {
  max-width: 760px;
  margin-bottom: 0;
}

/* FORM */

.quote-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 55px;
}

.hydm-form {
  background: white;
  border-radius: var(--hydm-radius);
  box-shadow: var(--hydm-shadow);
  padding: 34px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.hydm-form label {
  font-size: .88rem;
  font-weight: 800;
}

.hydm-form input,
.hydm-form select,
.hydm-form textarea {
  width: 100%;
  border: 1px solid #dce0e3;
  border-radius: 7px;
  padding: 14px;
}

.hydm-form textarea {
  min-height: 130px;
  resize: vertical;
}

/* FOOTER */

.site-footer {
  background: #080a0c;
  color: #aeb6bc;
  padding: 60px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.site-footer h3 {
  color: white;
}

.site-footer a:hover {
  color: var(--hydm-orange);
}

.footer-bottom {
  margin-top: 45px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .85rem;
}
/* LOGO HYDM */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 800;
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.brand-logo .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  margin: 0;
  padding: 0;
}

.brand-logo .custom-logo,
.brand-logo img {
  display: block;
  width: auto !important;
  height: 34px !important;
  max-width: 180px !important;
  max-height: 34px !important;
  object-fit: contain;
  margin: 0;
  padding: 0;
}

.brand-name {
  color: white;
  font-weight: 800;
  line-height: 1.2;
}
/* CORRECCIÓN TARJETAS EN SECCIONES OSCURAS */

.section-dark .card h3,
.section-black .card h3 {
  color: #171a1d !important;
}

.section-dark .card p,
.section-black .card p {
  color: #5c646b !important;
}