/*
Theme Name: JD Metalica
Theme URI: http://www.jdmetalica.com/
Author: JD METALICA
Description: Tema WordPress editable para JD METALICA, con landing responsive, migas de pan, SEO local y datos de contacto configurables.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: jd-metalica
*/

:root {
  --ink: #111827;
  --navy: #10213f;
  --royal: #1357c8;
  --steel: #64748b;
  --line: #d7dde7;
  --paper: #f7f8fb;
  --white: #ffffff;
  --orange: #ff6b1a;
  --amber: #f6b73c;
  --green: #1b8a5a;
  --shadow: 0 20px 50px rgba(16, 33, 63, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: rgba(10, 20, 39, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  padding: 3px;
  background: var(--white);
  border-radius: 7px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: #c8d2e3;
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav li {
  list-style: none;
}

.main-nav a {
  padding: 10px 12px;
  color: #e7edf7;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.main-nav .nav-cta {
  margin-left: 6px;
  color: var(--navy);
  background: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 15, 30, 0.94) 0%, rgba(9, 20, 39, 0.78) 42%, rgba(9, 20, 39, 0.1) 100%),
    linear-gradient(0deg, rgba(7, 15, 30, 0.7), transparent 34%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding-top: 86px;
}

.hero-logo {
  width: clamp(118px, 16vw, 178px);
  height: auto;
  margin-bottom: 18px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 710px;
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

.hero-copy {
  max-width: 630px;
  margin: 24px 0 0;
  color: #e7edf7;
  font-size: 19px;
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
  text-align: center;
  line-height: 1.2;
}

.hero-actions {
  margin-top: 30px;
}

.primary {
  color: var(--white);
  background: var(--royal);
}

.urgent {
  color: #17110c;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-strip span {
  padding: 8px 10px;
  color: #e7edf7;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 800;
}

section {
  padding: 84px clamp(18px, 5vw, 72px);
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-head p:not(.eyebrow) {
  color: #4b5563;
  font-size: 18px;
}

.compact {
  margin-bottom: 24px;
}

.service-band,
.quote-zone,
.blog,
.gallery,
.faq {
  background: var(--white);
}

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

.service-card,
.project-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--navy);
  border-left: 5px solid var(--orange);
  border-radius: 4px;
  font-weight: 900;
}

.service-card p,
.project-grid p,
.quality-copy p,
.about-panel p,
.quote-copy p {
  color: #4b5563;
}

.urgent-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  background: linear-gradient(120deg, #162640, #27364d 55%, #704115);
}

.urgent-band h2 {
  max-width: 920px;
}

.projects {
  background: #eef2f7;
}

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

.project-grid article {
  background:
    linear-gradient(180deg, rgba(255, 107, 26, 0.08), transparent 45%),
    var(--white);
  box-shadow: 0 10px 30px rgba(16, 33, 63, 0.08);
}

.project-grid span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--green);
  font-weight: 900;
}

.sectors {
  background: var(--navy);
  color: var(--white);
}

.sector-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.sector-list div {
  min-height: 150px;
  padding: 22px;
  background: #142946;
}

.sector-list strong,
.sector-list span {
  display: block;
}

.sector-list span {
  margin-top: 10px;
  color: #c8d2e3;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  align-items: stretch;
}

.gallery-main {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.gallery-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.gallery-main figcaption {
  padding: 16px 18px;
  color: var(--white);
  font-weight: 900;
}

.gallery-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gallery-tags span {
  display: flex;
  align-items: flex-end;
  min-height: 128px;
  padding: 18px;
  color: var(--white);
  background: linear-gradient(145deg, #132744, #27364d);
  border-left: 5px solid var(--orange);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
}

.quality {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
  background: #f7f8fb;
}

.process {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process li {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(16, 33, 63, 0.07);
  font-size: 18px;
  font-weight: 900;
}

.process span {
  color: var(--orange);
  font-size: 16px;
}

.about {
  background:
    linear-gradient(90deg, rgba(16, 33, 63, 0.92), rgba(16, 33, 63, 0.72)),
    url("assets/images/hero-workshop.jpg") center / cover;
  color: var(--white);
}

.about-panel {
  max-width: 720px;
}

.about-panel p {
  color: #e7edf7;
  font-size: 18px;
}

.quote-zone {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
}

.contact-box {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-box a,
.contact-box span,
.blog-list a,
.footer-links a {
  padding: 12px 14px;
  border-radius: 6px;
  background: #eef2f7;
  font-weight: 800;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 14px;
  font-weight: 900;
}

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

textarea {
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check input {
  width: 18px;
  min-height: 18px;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 900;
}

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

.blog-list a {
  min-height: 116px;
  display: flex;
  align-items: flex-end;
  background: #eef2f7;
}

.blog-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  color: var(--white);
  border-radius: 8px;
  background: var(--navy);
}

.blog-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9, 20, 39, 0.9), rgba(9, 20, 39, 0.14));
}

.blog-card span {
  position: relative;
  z-index: 1;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 18px 18px;
  color: #4b5563;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 38px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: #091427;
}

.site-footer p {
  max-width: 520px;
  margin: 8px 0 0;
  color: #c8d2e3;
}

.footer-logo {
  width: 92px;
  height: auto;
  margin-bottom: 12px;
  padding: 6px;
  background: var(--white);
  border-radius: 8px;
}

.footer-links a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #17110c;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  font-weight: 900;
}

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

.breadcrumb-wrap {
  padding: 112px clamp(18px, 5vw, 72px) 22px;
  color: #4b5563;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb-wrap a {
  color: var(--royal);
}

.breadcrumb-wrap .separator {
  margin: 0 8px;
  color: var(--steel);
}

.wp-page {
  padding-top: 52px;
  background: var(--white);
}

.wp-page .page-inner {
  width: min(980px, 100%);
  margin: 0 auto;
}

.wp-page h1 {
  color: var(--navy);
  font-size: clamp(38px, 5vw, 62px);
}

.wp-page .entry-content {
  margin-top: 28px;
  color: #374151;
  font-size: 18px;
}

.wp-page .entry-content a {
  color: var(--royal);
  font-weight: 800;
  text-decoration: underline;
}

.wp-page .entry-content img {
  height: auto;
  border-radius: 8px;
}

.entry-image {
  margin-top: 26px;
}

.entry-image img,
.archive-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.archive-card {
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1120px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 74px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: #091427;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav .nav-cta {
    margin-left: 0;
  }

  .service-grid,
  .project-grid,
  .sector-list,
  .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quality,
  .quote-zone,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

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

  .site-header {
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-left: 14px;
  }

  h1 {
    font-size: 38px;
  }

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

  .button {
    width: 100%;
  }

  section {
    padding: 62px 16px;
  }

  .breadcrumb-wrap {
    padding: 94px 16px 18px;
  }

  .service-card,
  .project-grid article,
  .quote-form {
    padding: 18px;
  }

  .service-grid,
  .project-grid,
  .sector-list,
  .blog-list,
  .gallery-tags,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .gallery-main img {
    height: 280px;
  }

  .urgent-band,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }
}


