/*
Theme Name: Colina Template
Theme URI: https://example.com/
Author: Colina
Author URI: https://example.com/
Description: Tema WordPress institucional para COLINA SHOES, inspirado en su identidad visual corporativa.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: colina-template
*/

:root {
  --colina-red: #ee1717;
  --colina-blue: #1f4a8a;
  --colina-navy: #102f62;
  --ink: #202020;
  --charcoal: #414141;
  --muted: #676767;
  --line: #dfdfdf;
  --soft: #f3f3f3;
  --white: #ffffff;
  --signal: #e7ff2d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

svg {
  display: block;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(32, 32, 32, 0.12);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}

.brand img {
  width: clamp(190px, 22vw, 286px);
  height: auto;
}

.menu-toggle {
  order: 3;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
}

.language-menu {
  order: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-menu a {
  color: var(--colina-blue);
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.language-menu a:hover,
.language-menu a.is-active {
  color: var(--colina-red);
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  top: 7px;
}

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

.primary-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation {
  order: 4;
}

.primary-menu a {
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  color: var(--colina-red);
}

.site-main {
  flex: 1;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(32, 32, 32, 0.92) 0%, rgba(32, 32, 32, 0.78) 42%, rgba(32, 32, 32, 0.12) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22));
  content: "";
}

.hero::after {
  position: absolute;
  right: -8vw;
  bottom: -12vw;
  z-index: 2;
  width: 42vw;
  min-width: 440px;
  aspect-ratio: 1;
  background: var(--colina-red);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  opacity: 0.9;
  content: "";
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url("assets/img/hero-lifestyle.jpg") center right / cover no-repeat;
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
  gap: clamp(28px, 6vw, 82px);
  align-items: end;
  padding: clamp(74px, 10vw, 142px) 0 clamp(46px, 6vw, 78px);
}

.hero-content {
  max-width: 790px;
}

.hero h1,
.contact-section h2,
.section-heading h2,
.brand-copy h2,
.commercial-grid h2,
.capacity-copy h2,
.quality-copy h2,
.product-copy h2,
.entry-title {
  margin: 0;
  font-family: "Arial Narrow", "HelveticaNeue-CondensedBold", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.7rem, 6.8vw, 6.25rem);
  line-height: 0.9;
  max-width: 920px;
}

.hero-content p {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 1.6vw, 1.24rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  color: var(--white);
  background: var(--colina-red);
  border: 2px solid var(--colina-red);
  border-radius: 2px;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover,
.wp-block-button__link:hover {
  background: #c90000;
  border-color: #c90000;
}

.button.secondary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
}

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

.hero-stat-panel {
  position: relative;
  z-index: 4;
  padding: 28px;
  color: var(--white);
  background: rgba(65, 65, 65, 0.88);
  border-top: 8px solid var(--colina-red);
  box-shadow: var(--shadow);
}

.hero-stat-panel img {
  width: 92px;
  color: var(--white);
  margin-bottom: 28px;
}

.hero-stat-panel span,
.hero-stat-panel small,
.section-heading span,
.brand-copy span,
.commercial-grid span,
.capacity-copy span,
.quality-copy span,
.product-copy span {
  display: block;
  color: var(--colina-red);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-stat-panel strong {
  display: block;
  margin-top: 8px;
  font-family: "Arial Narrow", "HelveticaNeue-CondensedBold", Impact, sans-serif;
  font-size: clamp(3rem, 5.3vw, 4.7rem);
  font-weight: 400;
  line-height: 0.9;
}

.hero-stat-panel small {
  color: rgba(255, 255, 255, 0.72);
}

.intro-band {
  color: var(--white);
  background: var(--charcoal);
  border-top: 10px solid var(--colina-red);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 84px);
  padding: clamp(48px, 7vw, 82px) 0;
  align-items: start;
}

.intro-grid h2 {
  margin: 0;
  font-family: "Arial Narrow", "HelveticaNeue-CondensedBold", Impact, sans-serif;
  font-size: clamp(2.15rem, 4.4vw, 4.05rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

.text-stack {
  display: grid;
  gap: 16px;
  color: var(--muted);
  font-size: 1.04rem;
}

.text-stack p,
.text-stack h3 {
  margin: 0;
}

.text-stack h3 {
  padding-top: 10px;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.2;
}

.intro-grid .text-stack,
.dark .commercial-list p,
.dark .commercial-list h3 {
  color: rgba(255, 255, 255, 0.8);
}

.section {
  padding: clamp(58px, 8vw, 104px) 0;
}

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

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

.section.dark {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(31, 74, 138, 0.34), rgba(238, 23, 23, 0.08)),
    var(--charcoal);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(30px, 5vw, 54px);
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.brand-copy h2,
.commercial-grid h2,
.capacity-copy h2,
.quality-copy h2,
.product-copy h2 {
  margin-top: 12px;
  font-size: clamp(2.1rem, 4.6vw, 4.15rem);
  line-height: 0.95;
}

.section-heading p,
.product-copy p,
.capacity-copy p,
.quality-copy p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.segment-card {
  min-height: 310px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 6px solid var(--charcoal);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.segment-card:hover {
  transform: translateY(-4px);
  border-bottom-color: var(--colina-red);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

.icon-wrap {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 32px;
  color: var(--white);
  background: var(--colina-red);
}

.icon-wrap.small {
  width: 50px;
  height: 50px;
  margin-bottom: 24px;
}

.icon-wrap svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.segment-card h3,
.identity-grid h3,
.workflow-grid h3,
.commercial-list h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.segment-card p,
.identity-grid p {
  margin: 0;
  color: var(--muted);
}

.factory-wide {
  width: 100%;
  height: clamp(280px, 38vw, 520px);
  overflow: hidden;
  background: var(--charcoal);
}

.factory-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-split {
  display: grid;
  grid-template-columns: minmax(280px, 42vw) minmax(0, 1fr);
  min-height: 600px;
  color: var(--white);
  background: var(--charcoal);
}

.brand-panel {
  display: grid;
  place-items: center;
  padding: clamp(42px, 7vw, 90px);
  background:
    linear-gradient(rgba(238, 23, 23, 0.92), rgba(238, 23, 23, 0.92)),
    var(--colina-red);
}

.brand-panel img {
  width: min(74%, 430px);
  color: var(--white);
}

.brand-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(42px, 7vw, 94px);
  max-width: 780px;
}

.brand-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.brand-copy span,
.commercial-grid span,
.capacity-copy span,
.quality-copy span,
.product-copy span {
  color: var(--colina-red);
}

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

.identity-grid article {
  padding: clamp(26px, 4vw, 40px);
  background: var(--white);
  border-top: 7px solid var(--colina-blue);
}

.media-text,
.commercial-grid,
.capacity-grid,
.product-grid,
.infrastructure-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: start;
}

.commercial-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(44px, 8vw, 112px);
}

.commercial-grid > * {
  min-width: 0;
}

.commercial-grid h2 {
  color: var(--white);
  max-width: 620px;
}

.commercial-list {
  display: grid;
  gap: 18px;
}

.commercial-list article {
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 7px solid var(--colina-red);
}

.dark .commercial-list h3 {
  margin-bottom: 10px;
  color: var(--white);
}

.commercial-list p {
  margin: 0;
}

.location-strip {
  position: relative;
  isolation: isolate;
}

.location-strip::before {
  position: absolute;
  top: -34px;
  right: -34px;
  z-index: 0;
  width: min(58vw, 760px);
  aspect-ratio: 980 / 520;
  background: url("assets/img/location-map-visible.svg") center / contain no-repeat;
  opacity: 0.55;
  content: "";
  pointer-events: none;
}

.location-map {
  position: absolute;
  top: 52px;
  right: 26px;
  z-index: 0;
  width: min(46vw, 640px);
  aspect-ratio: 980 / 520;
  background: url("assets/img/location-map-visible.svg") center / contain no-repeat;
  opacity: 0.48;
  pointer-events: none;
}

.location-map-art {
  position: absolute;
  top: 86px;
  right: 0;
  z-index: 1;
  width: min(46vw, 650px);
  opacity: 0.52;
  pointer-events: none;
}

.location-strip .section-heading {
  position: relative;
  z-index: 2;
}

.location-strip p {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.route-line {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: max-content 1fr max-content 1fr max-content;
  gap: 14px;
  align-items: center;
  padding: 22px;
  background: var(--soft);
  border-left: 8px solid var(--colina-red);
}

.route-line span {
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.route-line i {
  height: 2px;
  background: var(--charcoal);
}

.capacity {
  color: var(--white);
  background: var(--charcoal);
}

.capacity-grid {
  grid-template-columns: 1fr;
  align-items: center;
}

.capacity-copy {
  width: 100%;
}

.capacity-copy h2,
.capacity-copy p,
.capacity-copy .industrial-list {
  max-width: none;
}

.capacity-copy h2,
.capacity-copy p {
  color: var(--white);
}

.capacity-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.industrial-list,
.category-list,
.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.industrial-list li,
.category-list li,
.check-list li {
  padding: 11px 14px;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.industrial-list li {
  color: var(--ink);
  background: var(--signal);
}

.capacity-copy .industrial-list {
  flex-wrap: nowrap;
  width: 100%;
}

.capacity-copy .industrial-list li {
  flex: 1 1 0;
  text-align: center;
  white-space: nowrap;
}

.capacity-visual {
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  width: 100%;
}

.capacity-visual img,
.product-grid > img,
.quality-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capacity-visual img {
  min-height: 360px;
  max-height: 520px;
  object-fit: cover;
}

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

.workflow-grid article {
  padding: clamp(26px, 4vw, 42px);
  background: var(--soft);
  border-top: 7px solid var(--colina-red);
}

.workflow-grid ol {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.workflow-grid li {
  position: relative;
  padding: 13px 14px 13px 52px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}

.workflow-grid li::before {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--charcoal);
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 0.72rem;
}

.quality {
  display: grid;
  grid-template-columns: minmax(280px, 50vw) minmax(0, 1fr);
  padding: 0;
  background: var(--soft);
}

.quality-image {
  min-height: 560px;
}

.quality-copy {
  display: grid;
  align-content: center;
  padding: clamp(42px, 7vw, 96px);
  max-width: 680px;
}

.quality-copy p + p {
  margin-top: 14px;
}

.product-grid {
  grid-template-columns: 1fr;
  align-items: center;
}

.product-grid > img {
  width: 100%;
  min-height: 360px;
  max-height: 520px;
  box-shadow: var(--shadow);
}

.product-copy {
  max-width: 900px;
}

.category-list li {
  color: var(--white);
  background: var(--colina-blue);
}

.infrastructure-grid {
  align-items: start;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.check-list li {
  position: relative;
  padding-left: 42px;
  background: var(--white);
  border-left: 5px solid var(--colina-red);
}

.check-list li::before {
  position: absolute;
  left: 16px;
  top: 50%;
  color: var(--colina-red);
  content: "+";
  font-size: 1.1rem;
  transform: translateY(-50%);
}

.contact-section {
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(31, 74, 138, 0.92), rgba(65, 65, 65, 0.95)),
    var(--colina-blue);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
  padding: clamp(64px, 9vw, 116px) 0;
}

.contact-section h2 {
  max-width: 820px;
  font-size: clamp(2.25rem, 5vw, 4.65rem);
  line-height: 0.92;
}

.contact-section p {
  max-width: 730px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.contact-section address {
  display: grid;
  gap: 10px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.24);
  border-top: 8px solid var(--colina-red);
  font-style: normal;
}

.contact-section address img {
  width: 100px;
  color: var(--white);
  margin-bottom: 16px;
}

.contact-section address strong {
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}

.contact-section address span,
.contact-section address em {
  color: rgba(255, 255, 255, 0.78);
}

.contact-section address em {
  margin-top: 14px;
  color: var(--signal);
  font-style: normal;
  font-weight: 900;
}

.entry {
  width: min(100% - 36px, 860px);
  margin: 0 auto;
  padding: clamp(54px, 7vw, 92px) 0;
}

.entry-header {
  margin-bottom: 34px;
}

.entry-title {
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 0.95;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content a {
  color: var(--colina-blue);
  font-weight: 800;
}

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

.post-card {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
}

.post-card h2,
.post-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  line-height: 1.2;
}

.post-card p {
  margin: 0;
  color: var(--muted);
}

.post-card a {
  text-decoration: none;
}

.site-footer {
  padding: 34px 0;
  color: var(--white);
  background: var(--charcoal);
  border-top: 8px solid var(--colina-red);
}

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

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer .primary-menu a {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 980px) {
  .segment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .intro-grid,
  .media-text,
  .commercial-grid,
  .capacity-grid,
  .product-grid,
  .infrastructure-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .brand-split,
  .quality {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 320px;
  }

  .quality-image {
    min-height: 360px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    gap: 14px;
  }

  .language-menu {
    margin-left: auto;
    gap: 9px;
  }

  .language-menu a {
    font-size: 0.76rem;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .primary-navigation {
    position: absolute;
    inset: 76px 18px auto;
    display: none;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-menu {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .primary-menu a {
    display: block;
    padding: 10px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    min-width: 280px;
    opacity: 0.64;
  }

  .hero-grid {
    padding-top: 92px;
  }

  .identity-grid,
  .workflow-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .route-line {
    grid-template-columns: 1fr;
  }

  .route-line i {
    width: 2px;
    height: 26px;
  }

  .location-map {
    top: 120px;
    right: -64px;
    width: 96vw;
    opacity: 0.34;
  }

  .location-strip::before {
    top: 14px;
    right: -88px;
    width: 110vw;
    opacity: 0.45;
  }

  .location-map-art {
    top: 210px;
    right: -84px;
    width: 102vw;
    opacity: 0.28;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .capacity-copy .industrial-list {
    overflow-x: auto;
  }

  .capacity-copy .industrial-list li {
    flex: 0 0 auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand img {
    width: 176px;
  }

  .segment-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.85rem);
  }

  .hero-stat-panel {
    padding: 22px;
  }

  .button {
    width: 100%;
  }
}
