/*
Theme Name: CV Ingenieros Divi
Template: Divi
Version: 1.0.12
Description: Child theme for the CV Ingenieros industrial B2B site.
*/

:root {
  --cv-blue: #0b376d;
  --cv-blue-2: #0068B3;
  --cv-steel: #232b33;
  --cv-text: #25313d;
  --cv-muted: #667384;
  --cv-line: #d9e1e8;
  --cv-ice: #f4f7fa;
  --cv-white: #ffffff;
  --cv-garnet: #9b4c34;
}

body {
  color: var(--cv-text);
  font-weight: 400;
}

#main-header {
  box-shadow: 0 1px 0 rgba(11, 55, 109, 0.12);
  min-height: 92px;
}

.et_fixed_nav.et_show_nav #page-container {
  padding-top: 92px;
}

#main-header .container,
#main-header .et_menu_container {
  min-height: 92px;
}

#main-header #logo {
  max-height: 72px !important;
}

#et-top-navigation {
  padding-top: 34px !important;
}

.et_header_style_left #et-top-navigation nav > ul > li > a {
  padding-bottom: 34px;
}

#top-menu li a {
  font-weight: 700;
  letter-spacing: 0;
}

#top-menu li.current-menu-item > a,
#top-menu li.current_page_item > a {
  color: var(--cv-blue) !important;
}

.cv-hero {
  min-height: 680px;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  background: #071625;
}

.cv-hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: clamp(430px, 42vw, 620px);
  z-index: 0;
  background: #071625;
}

.cv-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, #071625 0%, rgba(7, 22, 37, 0.98) 10%, rgba(7, 22, 37, 0.42) 28%, rgba(7, 22, 37, 0) 48%);
}

.cv-hero-media img,
.cv-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.9) contrast(1.04);
}

.cv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #071625 0%, #071625 49%, rgba(7, 22, 37, 0.64) 66%, rgba(7, 22, 37, 0.06) 100%),
    linear-gradient(0deg, rgba(7, 22, 37, 0.08), rgba(7, 22, 37, 0.08));
}

.cv-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 104px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(240px, 360px);
  gap: 48px;
  align-items: end;
}

.cv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cv-blue-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cv-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--cv-blue-2);
}

.cv-hero .cv-kicker {
  color: var(--cv-white);
}

.cv-hero .cv-kicker::before {
  background: var(--cv-white);
}

.cv-hero h1,
.cv-section h2,
.cv-band h2 {
  letter-spacing: 0;
}

.cv-hero h1 {
  margin: 20px 0 24px;
  color: var(--cv-white);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
  font-weight: 800;
}

.cv-hero p {
  max-width: 640px;
  color: #dde8f2;
  font-size: 19px;
  line-height: 1.65;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.cv-button,
.cv-button-outline,
.cv-button-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 4px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.cv-button {
  background: var(--cv-blue-2);
  color: var(--cv-white) !important;
}

.cv-button:hover,
.cv-button-outline:hover,
.cv-button-light:hover {
  transform: translateY(-1px);
}

.cv-button-outline {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--cv-white) !important;
}

.cv-button-light {
  background: var(--cv-white);
  color: var(--cv-blue) !important;
}

.cv-hero-panel {
  background: rgba(255, 255, 255, 0.94);
  border-top: 4px solid var(--cv-blue-2);
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.cv-hero-panel strong {
  display: block;
  color: var(--cv-blue);
  font-size: 18px;
  margin-bottom: 10px;
}

.cv-hero-panel ul,
.cv-checks {
  padding: 0 !important;
  margin: 0;
  list-style: none !important;
  list-style-type: none !important;
}

.cv-hero-panel li,
.cv-checks li {
  position: relative;
  padding-left: 22px;
  margin: 10px 0;
  color: var(--cv-text);
  list-style: none !important;
  list-style-type: none !important;
}

.cv-hero-panel li::marker,
.cv-checks li::marker {
  content: "";
}

.entry-content .cv-hero-panel ul,
.entry-content ul.cv-checks,
.et-l--post .cv-hero-panel ul,
.et-l--post ul.cv-checks {
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
}

.entry-content .cv-hero-panel li,
.entry-content ul.cv-checks li,
.et-l--post .cv-hero-panel li,
.et-l--post ul.cv-checks li {
  list-style: none !important;
  list-style-type: none !important;
}

.cv-hero-panel li::before,
.cv-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: var(--cv-blue-2);
}

.cv-section,
.cv-band {
  padding: 82px 0;
}

.cv-section-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.cv-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 38px;
}

.cv-section h2,
.cv-band h2 {
  color: var(--cv-steel);
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.12;
  margin: 10px 0 0;
}

.cv-lead {
  color: var(--cv-muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.cv-card {
  background: var(--cv-white);
  border: 1px solid var(--cv-line);
  border-radius: 6px;
  padding: 28px;
  min-height: 100%;
}

.cv-card h3 {
  color: var(--cv-blue);
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 12px;
}

.cv-card p,
.cv-card li {
  color: var(--cv-muted);
  line-height: 1.65;
}

.cv-card .cv-button {
  margin-top: 16px;
}

.cv-download-meta {
  display: block;
  margin-top: 10px;
  color: var(--cv-muted);
  font-size: 14px;
  line-height: 1.45;
}

.cv-media-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 54px;
  align-items: center;
}

.cv-media-split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.cv-page-media {
  margin: 34px 0 38px;
}

.cv-page-media img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

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

.cv-product-gallery figure {
  margin: 0;
  background: var(--cv-white);
  border: 1px solid var(--cv-line);
  border-radius: 6px;
  overflow: hidden;
}

.cv-product-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cv-band {
  background: var(--cv-ice);
}

.cv-process {
  counter-reset: cv-step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cv-step {
  background: var(--cv-white);
  border-left: 4px solid var(--cv-blue-2);
  padding: 26px;
  min-height: 210px;
}

.cv-step::before {
  counter-increment: cv-step;
  content: "0" counter(cv-step);
  display: block;
  color: var(--cv-blue-2);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cv-step h3 {
  color: var(--cv-steel);
  font-size: 20px;
  margin: 0 0 10px;
}

.cv-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--cv-line);
  border: 1px solid var(--cv-line);
}

.cv-metric {
  background: var(--cv-white);
  padding: 28px;
}

.cv-metric strong {
  display: block;
  color: var(--cv-blue);
  font-size: 38px;
  line-height: 1;
}

.cv-metric span {
  display: block;
  margin-top: 8px;
  color: var(--cv-muted);
  line-height: 1.4;
}

.cv-cta {
  background: var(--cv-blue);
  color: var(--cv-white);
  padding: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  border-radius: 6px;
}

.cv-cta h2,
.cv-cta p {
  color: var(--cv-white);
}

.cv-cta h2 {
  margin: 0 0 12px;
}

.cv-cta p {
  margin: 0;
  color: #d7e7f7;
}

.cv-footer-nav {
  display: grid;
  grid-template-columns: 1.2fr repeat(5, 1fr);
  gap: 28px;
  color: #d9e2ec;
}

.cv-footer-nav h3 {
  color: var(--cv-white);
  font-size: 16px;
  margin: 0 0 12px;
}

.cv-footer-nav a,
.cv-footer-nav p {
  color: #c9d6e2;
  display: block;
  margin: 8px 0;
  line-height: 1.5;
}

.cv-footer-funding {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 24px;
  margin-top: 38px;
}

.cv-footer-funding img {
  display: block;
  height: auto;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.cv-eu-logo {
  width: 140px;
}

.cv-prtr-logo {
  width: 230px;
}

#main-footer {
  background: #111923;
}

#footer-bottom {
  background: #0c121a;
}

#footer-widgets,
#footer-bottom,
#et_top_search {
  display: none;
}

.cv-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.cv-whatsapp svg {
  width: 34px;
  height: 34px;
  display: block;
  fill: currentColor;
}

.cv-contact-form {
  margin-top: 30px;
  background: var(--cv-white);
  border: 1px solid var(--cv-line);
  border-radius: 6px;
  padding: 32px;
}

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

.cv-contact-form label {
  display: block;
  color: var(--cv-steel);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 18px;
}

.cv-contact-form input[type="text"],
.cv-contact-form input[type="email"],
.cv-contact-form input[type="tel"],
.cv-contact-form textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--cv-line);
  border-radius: 4px;
  padding: 13px 14px;
  color: var(--cv-text);
  font-size: 15px;
  background: #fbfcfe;
}

.cv-contact-form input:focus,
.cv-contact-form textarea:focus {
  border-color: var(--cv-blue-2);
  outline: 2px solid rgba(0, 104, 179, 0.14);
}

.cv-form-privacy {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600 !important;
  color: var(--cv-muted) !important;
}

.cv-form-privacy input {
  margin-top: 3px;
}

.cv-form-message {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 4px;
  font-weight: 700;
}

.cv-form-success {
  background: #e8f6ef;
  color: #16673f;
}

.cv-form-error {
  background: #fdecec;
  color: #9b1c1c;
}

@keyframes cv-enter-right {
  from {
    opacity: 0;
    transform: translateX(46px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cv-enter-up {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cv-panel-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.home .cv-hero .cv-kicker,
body.home .cv-hero h1,
body.home .cv-hero p,
body.home .cv-hero .cv-actions,
body.home .cv-hero-panel,
body.home .cv-section,
body.home .cv-band {
  opacity: 0;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.2, 0.72, 0.22, 1);
}

body.home .cv-hero .cv-kicker {
  animation-name: cv-enter-right;
  animation-duration: 700ms;
  animation-delay: 140ms;
}

body.home .cv-hero h1 {
  animation-name: cv-enter-right;
  animation-duration: 820ms;
  animation-delay: 250ms;
}

body.home .cv-hero p {
  animation-name: cv-enter-right;
  animation-duration: 820ms;
  animation-delay: 380ms;
}

body.home .cv-hero .cv-actions {
  animation-name: cv-enter-right;
  animation-duration: 780ms;
  animation-delay: 520ms;
}

body.home .cv-hero-panel {
  animation-name: cv-panel-in;
  animation-duration: 780ms;
  animation-delay: 620ms;
}

body.home .cv-section,
body.home .cv-band {
  animation-name: cv-enter-up;
  animation-duration: 760ms;
}

body.home .et_pb_section_1 .cv-section {
  animation-delay: 680ms;
}

body.home .et_pb_section_2 .cv-band {
  animation-delay: 820ms;
}

body.home .et_pb_section_3 .cv-section {
  animation-delay: 960ms;
}

body.home .et_pb_section_4 .cv-band,
body.home .et_pb_section_5 .cv-section,
body.home .et_pb_section_6 .cv-section {
  animation-delay: 1080ms;
}

@media (prefers-reduced-motion: reduce) {
  body.home .cv-hero .cv-kicker,
  body.home .cv-hero h1,
  body.home .cv-hero p,
  body.home .cv-hero .cv-actions,
  body.home .cv-hero-panel,
  body.home .cv-section,
  body.home .cv-band {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

@media (max-width: 980px) {
  #main-header,
  #main-header .container,
  #main-header .et_menu_container {
    min-height: 78px;
  }

  #main-header #logo {
    max-height: 58px !important;
  }

  .et_fixed_nav.et_show_nav #page-container {
    padding-top: 78px;
  }

  .et_header_style_left #et-top-navigation {
    padding-top: 24px !important;
  }

  .cv-hero {
    min-height: auto;
  }

  .cv-hero-media {
    inset: 0;
    width: auto;
  }

  .cv-hero::after {
    background:
      linear-gradient(90deg, rgba(7, 22, 37, 0.9) 0%, rgba(7, 22, 37, 0.78) 58%, rgba(7, 22, 37, 0.38) 100%),
      linear-gradient(0deg, rgba(7, 22, 37, 0.18), rgba(7, 22, 37, 0.18));
  }

  .cv-hero-inner,
  .cv-section-head,
  .cv-media-split,
  .cv-cta,
  .cv-footer-nav {
    grid-template-columns: 1fr;
  }

  .cv-footer-funding {
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
  }

  .cv-hero-inner {
    padding: 88px 0 54px;
  }

  .cv-grid-3,
  .cv-process,
  .cv-metrics,
  .cv-product-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .cv-hero-inner,
  .cv-section-inner {
    width: min(100% - 30px, 1180px);
  }

  .cv-hero h1 {
    font-size: 38px;
  }

  .cv-grid-3,
  .cv-process,
  .cv-metrics,
  .cv-product-gallery {
    grid-template-columns: 1fr;
  }

  .cv-cta {
    padding: 34px 24px;
  }

  .cv-actions {
    display: grid;
  }

  .cv-button,
  .cv-button-outline,
  .cv-button-light {
    width: 100%;
  }

  .cv-form-grid {
    grid-template-columns: 1fr;
  }

  .cv-contact-form {
    padding: 24px;
  }
}
