/* ==========================================================
   WRed — Página plana (sin WordPress)
   Estilos replicados del original Divi
   ========================================================== */

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

:root {
  --wred-green: #85bf4b;
  --wred-yellow: #f2e205;
  --wred-orange: #ff5b0c;
  --wred-dark: #212121;
  --wred-light-bg: #f1f5f9;
  --text-body: #666;
  --text-dark: #333;
  --et-accent: #000;
  --top-header-bg: #000;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  color: var(--text-body);
  background-color: #fff;
  line-height: 1.7em;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: #2ea3f2; text-decoration: none; }
a:hover { text-decoration: none; opacity: 0.7; }

.container {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

.clearfix::after { content: ""; display: block; clear: both; visibility: hidden; height: 0; }
.centered { text-align: center; }

/* ============================================================
   HEADER FLOTANTE (top bar + menú siempre visibles)
   ============================================================ */
#site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100000;
}

/* ============================================================
   TOP HEADER
   ============================================================ */
#top-header {
  background-color: var(--top-header-bg);
  font-size: 12px;
  line-height: 13px;
  color: #fff;
  max-height: 60px;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

#top-header .container {
  padding: 10px 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
}

#et-info { display: flex; align-items: center; color: #fff; }
#et-info-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
}
#et-info-phone a { color: #fff; }
.phone-icon { width: 13px; height: 13px; fill: #fff; flex: none; }

.et-social-icons {
  list-style: none;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}
.et-social-icons li { margin: 0; }
.et-social-icon a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}
.et-social-icon a svg { fill: #fff; width: 15px; height: 15px; }

/* ============================================================
   MAIN HEADER
   ============================================================ */
#main-header {
  background-color: #fff;
  width: 100%;
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
  position: relative;
  line-height: 23px;
  font-weight: 500;
  transition: box-shadow 0.4s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  transition: padding 0.4s ease;
}

.logo_container { max-width: 220px; }
#logo {
  width: auto;
  max-height: 60px;
  display: inline-block;
  vertical-align: middle;
  transition: max-height 0.4s ease;
}

#et-top-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  gap: 24px;
}

#top-menu-nav { display: block; margin-left: auto; }
#top-menu {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  padding: 0;
  margin: 0;
}

#top-menu li { display: inline-block; font-size: 14px; }
#top-menu a {
  color: #000;
  text-decoration: none;
  display: block;
  font-weight: 600;
  transition: opacity 0.4s ease-in-out;
}
#top-menu a:hover { opacity: 0.7; }

/* ---- Header compacto al hacer scroll (con transición) ---- */
#site-header-wrap.scrolled #top-header {
  max-height: 0;
  opacity: 0;
}
#site-header-wrap.scrolled .header-container {
  padding: 8px 0;
}
#site-header-wrap.scrolled #logo {
  max-height: 38px;
}
#site-header-wrap.scrolled #main-header {
  box-shadow: 0 2px 14px rgba(0,0,0,0.12);
}

/* Mobile toggle */
#et_mobile_nav_menu { display: none; }
.mobile_nav {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.select_page { color: #000; font-weight: 600; font-size: 14px; }
.mobile_menu_bar_toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
}
.mobile_menu_bar_toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #000;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   SECTIONS (et_pb_section replicated)
   ============================================================ */
.et_pb_section {
  position: relative;
  background-color: #fff;
  background-size: 100%;
  background-position: 50%;
  background-size: cover;
  padding: 54px 0;
}

.et_pb_row {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  padding: 27px 0;
}

/* Column widths (replicating Divi with gutters3 ≈ 5.5%) */
.et_pb_column { float: left; position: relative; padding-right: 5.5%; margin-bottom: 30px; }

.full { width: 100%; padding-right: 0; }
.half { width: 47.25%; }
.one-quarter { width: 20.875%; }
.one-fifth { width: 15.6%; }
.two-fifths { width: 36.7%; }
.three-fifths { width: 57.8%; }
.two-thirds { width: 64.833%; }
.three-quarters { width: 73.625%; }
.one-third { width: 29.6667%; }

.et_pb_row .et_pb_column:last-child { padding-right: 0; }

/* ============================================================
   HERO (Section 0)
   ============================================================ */
.hero-section {
  padding-top: 10vw;
  padding-bottom: 10vw;
  padding-left: 0;
  padding-right: 0;
  background-color: var(--wred-green);
  background-size: 57% auto;
  background-position: left center;
  background-image:
    linear-gradient(90deg, rgba(241,88,12,0) 0%, #85bf4b 100%),
    url('assets/images/gente-subiendo.png');
  background-repeat: no-repeat;
}

.hero-section .container {
  max-width: 1280px;
  width: 90%;
}

.hero-text {
  text-align: right;
  color: #fff;
  line-height: 2em;
  margin-left: -430px;
  max-width: 822px;
  margin-right: 0;
  margin-left: auto;
}

.hero-text h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 50px;
  line-height: 1.2em;
  color: #fff;
  padding-bottom: 16px;
}
.hero-text h1 span { color: #fff; }
.hero-text p {
  font-size: 18px;
  line-height: 2em;
  padding-bottom: 0;
}

.hero-button {
  text-align: right;
  margin-top: 40px;
}

.et_pb_button {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--wred-yellow) !important;
  background-color: var(--wred-dark);
  border: 10px solid transparent;
  padding: 8px 24px;
  border-radius: 3px;
  text-decoration: none;
  transition: all 300ms ease 0ms;
  cursor: pointer;
}
.et_pb_button:hover {
  background-color: rgba(255,255,255,0.2);
  color: var(--wred-yellow) !important;
  text-decoration: none;
  opacity: 1;
}
.et_pb_button::after {
  content: " →";
  margin-left: 8px;
  transition: margin-left 0.3s;
  display: inline-block;
}
.et_pb_button:hover::after { margin-left: 14px; }
.et_pb_button.no-arrow::after { display: none; }

/* ============================================================
   VIDEO SECTION (Section 1) — Welcome
   ============================================================ */
.video-section {
  background-color: var(--wred-green);
  background-size: initial;
  background-position: left bottom 0;
  background-image: url('assets/images/transportation-services-13.png');
  background-repeat: no-repeat;
  padding-top: 60px;
  padding-bottom: 80px;
}

.video-section .et_pb_row.two-cols {
  align-items: center;
  padding: 27px 0;
}

.col-text.light { color: #fff; }
.video-section .col-text.light p {
  text-align: justify;
  font-size: 16px;
  line-height: 1.9em;
}
.col-text.dark { color: var(--text-body); }
.col-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.4em;
  color: inherit;
  padding-bottom: 16px;
}
.col-text h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.4em;
  color: var(--text-dark);
  padding-bottom: 8px;
}
.col-text p {
  line-height: 2em;
  font-size: 16px;
  color: inherit;
}

.col-text.light h2,
.col-text.light h3,
.col-text.light p { color: #fff; }

/* Bienvenidos: layout de dos columnas (texto + video) */
.video-section .et_pb_row.two-cols {
  width: 96%;
  max-width: 1340px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 55px;
}
.video-section .two-fifths {
  width: auto;
  flex: 1 1 42%;
  padding-right: 0;
  align-self: flex-start;
}
.video-section .three-fifths {
  width: auto;
  flex: 1 1 58%;
  padding-right: 0;
  align-self: flex-start;
}
.video-section .col-text.light {
  text-align: left;
}
.video-section .col-text.light h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.25em;
  color: #fff;
  padding-bottom: 22px;
  text-align: left;
}
.video-section .col-text.light h2 .line {
  display: block;
  white-space: nowrap;
}
.video-section .col-text.light p {
  font-size: 17px;
  line-height: 1.85em;
  text-align: justify;
}

.video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  background: #000;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  width: 100%;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   HISTORY SECTION (Section 2)
   ============================================================ */
.history-section {
  background-color: #fff;
  background-image:
    url('assets/images/transportation-services-05.png'),
    linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  background-size: initial;
  background-position: left top;
  background-repeat: no-repeat, no-repeat;
  position: relative;
  overflow: hidden;
  padding-bottom: 160px;
}
.history-section .container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1180px;
}

.bottom-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 250px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIyNTBweCIgdmlld0JveD0iMCAwIDEyODAgMTQwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiNmZmZmZmYiPjxwYXRoIGQ9Ik0wIDE0MGgxMjgwMEM1NzMuMDggMTQwIDAgMCAwIDB6IiBmaWxsLW9wYWNpdHk9Ii4zIi8+PHBhdGggZD0iTTAgMTQwaDEyODBDNTczLjA4IDE0MCAwIDMwIDAgMzB6IiBmaWxsLW9wYWNpdHk9Ii41Ii8+PHBhdGggZD0iTTAgMTQwaDEyODBDNTczLjA4IDE0MCAwIDYwIDAgNjB6Ii8+PC9nPjwvc3ZnPg==");
  background-size: 100% 250px;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

/* Intro centrada y proporcionada */
.history-section .history-intro {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.history-section .history-intro h2 {
  font-size: 38px;
  padding-bottom: 12px;
}
.history-section .history-intro p {
  font-size: 16px;
  line-height: 1.9;
}

/* Video centrado y destacado */
.history-video-row {
  padding: 6px 0 8px;
}
.history-video-row .et_pb_column { padding-right: 0; margin-bottom: 0; }
.history-video-row .video-wrapper {
  max-width: 468px;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.10);
}

/* Misión / Visión en tarjetas balanceadas */
.history-section .mission-row {
  display: flex;
  align-items: stretch;
  gap: 60px;
  width: 100%;
  max-width: 1180px;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin: 44px auto 0;
  padding: 44px 0 4px;
}
.history-section .mission-row .et_pb_column {
  flex: 1 1 0;
  width: auto;
  padding-right: 0;
  margin-bottom: 0;
}
.mission-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  height: 100%;
}
.mission-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-dark);
  padding-bottom: 0;
}
.mission-card h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 12px 0 16px;
  background: var(--wred-green);
  border-radius: 2px;
}
.mission-card p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  max-width: 520px;
}

/* ============================================================
   TEAM SECTION (Section 3)
   ============================================================ */
.team-section {
  background: #fff;
  padding-top: 54px;
}
/* Sección a ancho casi completo (proporcional) */
.team-section .container {
  width: 94%;
  max-width: 1400px;
}
.team-section .et_pb_row {
  width: 100%;
  max-width: 1400px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.4em;
  color: var(--text-dark);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.section-title.centered { text-align: center; }
.section-title.light { color: #fff; }

.team-grid {
  display: grid;
  gap: 30px 26px;
  width: 100%;
  max-width: 1400px;
  padding: 30px 0;
}
.team-grid.four-cols { grid-template-columns: repeat(4, 1fr); }
.team-grid.five-cols { grid-template-columns: repeat(5, 1fr); }

.team-member {
  background: transparent;
  text-align: left;
  transition: transform 0.35s ease;
}
.team-member:hover { transform: translateY(-6px); }

/* Foto con zoom + overlay */
.team-photo {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #e9edf1;
}
.team-photo img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33,33,33,0) 45%, rgba(33,33,33,0.72) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.team-member:hover .team-photo img { transform: scale(1.09); }
.team-member:hover .team-photo::after { opacity: 1; }

.team-info { padding: 16px 0; }
.team-info h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 6px;
  transition: color 0.3s ease;
}
.team-member:hover .team-info h4 { color: var(--wred-green); }
.team-info p {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.5;
}

/* ============================================================
   BANNER PARALLAX (Section 4)
   ============================================================ */
.parallax-section {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 30px 0 24px;
  max-width: 100%;
  width: 100%;
}
.parallax-img {
  display: block;
  width: 100%;
  height: auto;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* ============================================================
   SERVICES TABS (Section 5)
   ============================================================ */
.services-tabs-section {
  background: linear-gradient(180deg, #ffffff 0%, #eef4e6 100%);
  padding: 6px 0 64px;
}

.services-tabs-section .container {
  width: 94%;
  max-width: 1200px;
}
.services-tabs-section .tabs-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.tabs-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  margin: 0;
  background: #e4efd6;
  border-radius: 14px 14px 0 0;
}
.tab-link {
  flex: 1 1 auto;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 16px;
  cursor: pointer;
  color: #46592f;
  border: none;
  border-radius: 9px;
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.tab-link:hover {
  background: rgba(133, 191, 75, 0.18);
  color: #3c5220;
}
.tab-link.active {
  background: var(--wred-green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(133, 191, 75, 0.38);
}

.tabs-content {
  background: #fff;
  border: 1px solid #e2ecd5;
  border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 34px 38px;
  box-shadow: 0 14px 34px rgba(95, 130, 55, 0.08);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.4s ease; }
.tab-panel p {
  font-size: 17px;
  line-height: 1.9;
  color: #4a5560;
  margin: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BRAND SECTION (Section 6) — tiles con imagen de fondo
   ============================================================ */
.brand-section {
  background: #fff;
  padding: 0;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}
.brand-item {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .brand-item { opacity: 0; transform: translateY(26px); }
html.js .brand-item.in-view { opacity: 1; transform: translateY(0); }

.brand-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.brand-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  transition: background 0.4s ease;
  pointer-events: none;
}
.brand-item:hover .brand-bg { transform: scale(1.09); }
.brand-item:hover::after { background: rgba(0, 0, 0, 0.42); }

.brand-item h5 {
  position: relative;
  z-index: 1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #fff;
  text-align: center;
  transition: transform 0.4s ease;
}
.brand-item:hover h5 { transform: translateY(-2px); }

.brand-item:nth-child(1) .brand-bg { background-image: url('assets/images/brand-airview.png'); }
.brand-item:nth-child(2) .brand-bg { background-image: url('assets/images/brand-sibive.png'); }
.brand-item:nth-child(3) .brand-bg { background-image: url('assets/images/brand-gps.png'); }
.brand-item:nth-child(4) .brand-bg { background-image: url('assets/images/brand-contadores.png'); }

/* ============================================================
   PRODUCTS SECTION (Section 7)
   ============================================================ */
.products-section {
  background-color: #fff;
  background-image: linear-gradient(180deg, #f1f5f9 0%, #e0e8ee 100%);
}

.products-section .container {
  width: 97%;
  max-width: 1520px;
}
.products-section .et_pb_row {
  width: 100%;
  max-width: 1520px;
}
.products-section .et_pb_row.four-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px 54px;
  padding: 30px 0;
  align-items: start;
}

.product-card {
  margin: 0;
  text-align: left;
}
.product-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 12px;
  min-height: 74px; /* alinea los párrafos de todas las cajas */
}
.product-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
}

/* ============================================================
   CASES / TESTIMONIALS (Section 8)
   ============================================================ */
.cases-section {
  background: linear-gradient(180deg, #f6faf1 0%, #ffffff 100%);
  padding: 70px 0;
}
.cases-section .container {
  width: 94%;
  max-width: 1400px;
}
.cases-section .et_pb_row {
  width: 100%;
  max-width: 1400px;
}
.cases-section .et_pb_row.three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 30px 0;
  align-items: stretch;
}

.testimonial {
  position: relative;
  background: #fff;
  border: 1px solid #e6efe0;
  border-radius: 14px;
  padding: 38px 32px 30px;
  box-shadow: 0 10px 30px rgba(95, 130, 55, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(95, 130, 55, 0.16);
  border-color: #d3e4c1;
}
.testimonial::before {
  content: "\201C";
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 66px;
  line-height: 0.7;
  color: var(--wred-green);
  display: block;
  margin-bottom: 10px;
}
.testimonial p {
  font-size: 16px;
  line-height: 1.8;
  color: #4a5560;
  margin: 0 0 22px;
  flex: 1 1 auto;
}
.testimonial .author {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: var(--wred-green);
  padding: 7px 15px;
  border-radius: 999px;
}
.testimonial .author::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

/* Más casos de éxito — CTA */
.more-cases {
  text-align: center;
  background: #eef4e6;
  border: 1px solid #e2ecd5;
  border-radius: 14px;
  padding: 30px 34px;
  max-width: 900px;
  margin: 12px auto 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dark);
}
.more-cases strong { color: var(--text-dark); font-weight: 700; }

/* ============================================================
   BLOG SECTION (Section 9)
   ============================================================ */
.blog-section {
  background: linear-gradient(180deg, #ffffff 0%, #f6faf1 100%);
  padding: 70px 0;
}
.blog-section .container {
  width: 94%;
  max-width: 1400px;
}
.blog-section .et_pb_row { width: 100%; max-width: 1400px; }
.blog-section .section-title { text-align: center; margin-bottom: 8px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 30px 0;
}

.post {
  background: #fff;
  border: 1px solid #e6efe0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(95, 130, 55, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.post:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(95, 130, 55, 0.16);
  border-color: #d3e4c1;
}

.post-thumb { display: block; position: relative; overflow: hidden; }
.post-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.post:hover .post-thumb img { transform: scale(1.07); }
.post-date {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--wred-green);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
}

.post-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.post-cat {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--wred-green);
  margin-bottom: 8px;
}
.post h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35em;
  color: var(--text-dark);
  padding: 0;
  margin-bottom: 12px;
}
.post h2 a { color: inherit; text-decoration: none; }
.post h2 a:hover { color: var(--wred-green); opacity: 1; }

.post-content { flex: 1 1 auto; font-size: 14px; line-height: 1.7; color: var(--text-body); margin-bottom: 18px; }
.post-content p { margin: 0; }
.more-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wred-green);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 2px solid rgba(133, 191, 75, 0.35);
  transition: color 0.3s ease, border-color 0.3s ease;
  animation: moreNudge 2s ease-in-out infinite;
}
.more-link::after { content: "\2192"; }
.more-link:hover {
  color: #6ba23a;
  border-bottom-color: var(--wred-green);
  opacity: 1;
}
@keyframes moreNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

/* ============================================================
   ARTICLE PAGES (blog/*.html)
   ============================================================ */
.article-main { padding: 44px 0 84px; background: #fff; }
.article-container { width: 92%; max-width: 820px; margin: 0 auto; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--wred-green);
  background: #eef4e6;
  border: 1px solid #e2ecd5;
  padding: 10px 20px;
  border-radius: 999px;
  margin-bottom: 22px;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease,
              transform 0.3s ease, border-color 0.3s ease;
}
.article-back .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  animation: backNudge 1.6s ease-in-out infinite;
}
.article-back:hover {
  background: var(--wred-green);
  border-color: var(--wred-green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(133, 191, 75, 0.35);
  transform: translateY(-2px);
  opacity: 1;
}
.article-back:hover .arrow { animation: none; transform: translateX(-5px); }
@keyframes backNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}
.article-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--wred-green);
  background: #eef4e6;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.article-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 1.2em;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.article-meta { font-size: 14px; color: #8b95a1; margin-bottom: 28px; }
.article-meta a { color: var(--wred-green); font-weight: 600; }
.article-hero { margin-bottom: 32px; }
.article-hero img { width: 100%; border-radius: 12px; display: block; }
.article-body p { font-size: 17px; line-height: 1.9; color: #414b57; margin-bottom: 20px; }
.article-body a { color: var(--wred-green); font-weight: 600; text-decoration: underline; }
.article-lead {
  font-size: 19px !important;
  line-height: 1.7 !important;
  color: var(--text-dark) !important;
  font-weight: 600;
  border-left: 4px solid var(--wred-green);
  padding-left: 18px;
}
.article-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3em;
  color: var(--text-dark);
  margin: 34px 0 14px;
}
.article-source {
  margin-top: 30px !important;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 14px !important;
  color: #8b95a1 !important;
}

/* ============================================================
   ANIMACIONES DE ENTRADA (scroll reveal)
   ============================================================ */
html.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
html.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Botones CTA: más visibles + animación de "es un botón" */
.hero-button .et_pb_button {
  position: relative;
  font-size: 17px;
  padding: 11px 28px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}
.hero-button .et_pb_button:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}
.contact-section .whatsapp-btn {
  position: relative;
  font-size: 17px;
  padding: 17px 36px;
}

.hero-button .et_pb_button { --cta-ring: rgba(242, 226, 5, 0.55); }
.contact-section .whatsapp-btn { --cta-ring: rgba(37, 211, 102, 0.5); }

.hero-button .et_pb_button::before,
.contact-section .whatsapp-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: ctaRing 2.4s ease-out infinite;
}
@keyframes ctaRing {
  0%   { box-shadow: 0 0 0 0 var(--cta-ring); }
  70%  { box-shadow: 0 0 0 12px rgba(0, 0, 0, 0); }
  100% { box-shadow: 0 0 0 12px rgba(0, 0, 0, 0); }
}

.product-card { transition: transform 0.3s ease; }
.product-card:hover { transform: translateY(-4px); }
.product-card h4 { transition: color 0.3s ease; }
.product-card:hover h4 { color: var(--wred-green); }

/* Encuadre superior para fotos específicas del equipo */
.team-photo img.photo-top { object-position: top; }

/* ============================================================
   BOTÓN "VOLVER ARRIBA"
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--wred-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100001;
  box-shadow: 0 10px 26px rgba(95, 130, 55, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease,
              background 0.3s ease;
}
.back-to-top svg { width: 22px; height: 22px; fill: #fff; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top.visible:hover { background: #6ba23a; transform: translateY(-3px); }

/* ============================================================
   CONTACT SECTION (Section 10)
   ============================================================ */
.contact-section {
  background: linear-gradient(180deg, #f6faf1 0%, #ffffff 100%);
  padding: 100px 0 110px;
}
.contact-section .container {
  width: 94%;
  max-width: 1200px;
}
.contact-section .et_pb_row { width: 100%; max-width: 1200px; }

/* Título */
.contact-section .contact-title {
  color: var(--text-dark);
  text-align: center;
  padding-bottom: 0;
  margin-bottom: 0;
}
.contact-section .contact-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--wred-green);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* Tarjetas de información */
.contact-section .et_pb_row.three-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: 64px 0 60px;
  align-items: stretch;
}

.contact-card {
  background: #fff;
  border: 1px solid #e6efe0;
  border-radius: 16px;
  padding: 48px 36px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(95, 130, 55, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(95, 130, 55, 0.16);
  border-color: #d3e4c1;
}
.contact-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #eef4e6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: background 0.35s ease;
}
.contact-icon svg { width: 34px; height: 34px; fill: var(--wred-green); transition: fill 0.35s ease; }
.contact-card:hover .contact-icon { background: var(--wred-green); }
.contact-card:hover .contact-icon svg { fill: #fff; }

.contact-card h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.contact-card p {
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0;
}
.contact-card a { color: var(--wred-green); font-weight: 600; }
.contact-card a:hover { color: #6ba23a; opacity: 1; }

/* Botón WhatsApp */
.contact-section .whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  padding: 16px 34px;
  background-color: #25d366 !important;
  color: #fff !important;
  font-size: 16px;
  letter-spacing: 0.5px;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
}
.contact-section .whatsapp-btn::after { display: none; }
.contact-section .whatsapp-btn:hover {
  background-color: #1fbe5b !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.42);
}
.wa-icon { width: 20px; height: 20px; fill: #fff; flex: none; }

/* Mapa a ancho completo */
.map-full {
  width: 100%;
  margin: 0;
  line-height: 0;
}
.map-full iframe { width: 100%; height: 440px; border: 0; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
#main-footer {
  background: var(--top-header-bg);
  color: #fff;
}

#footer-bottom {
  background: var(--top-header-bg);
  padding: 18px 0;
  text-align: center;
  color: #fff;
  font-size: 13px;
}

#footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#footer-info { color: #fff; }

#footer-bottom .et-social-icons { display: flex; gap: 16px; }
#footer-bottom .et-social-icons li { margin: 0; }
#footer-bottom .et-social-icon a { color: #fff; }
#footer-bottom .et-social-icon a svg { fill: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-text h1 { font-size: 40px; }
  .col-text h2, .col-text h3, .section-title { font-size: 26px; }
  .video-section .col-text.light h2 { font-size: 28px; }
  .team-grid.five-cols { grid-template-columns: repeat(4, 1fr); }
  .team-grid.four-cols,
  .products-section .et_pb_row.four-cols,
  .brand-section .et_pb_row.four-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  #top-menu-nav { display: none; }
  #et_mobile_nav_menu { display: block; }
  .mobile_menu_bar_toggle { color: #000; }

  #top-menu-nav.mobile-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 999;
  }
  #top-menu-nav.mobile-open #top-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  #top-menu-nav.mobile-open #top-menu li {
    display: block;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  #top-menu-nav.mobile-open #top-menu a {
    padding: 14px 24px;
    font-weight: 600;
  }

  .hero-text { margin-left: 0; max-width: 100%; text-align: center; }
  .hero-text h1 { font-size: 32px; }
  .hero-button { text-align: center; }

  .et_pb_row.two-cols { flex-direction: column; }
  .two-cols .et_pb_column { width: 100% !important; margin-bottom: 30px; }

  .history-section .history-intro h2 { font-size: 28px; }
  .history-section .mission-row { gap: 20px; padding-top: 30px; }
  .history-section .mission-row .et_pb_column { flex: 0 0 auto; margin-bottom: 0; }
  .history-video-row .video-wrapper { max-width: 100%; }

  .services-tabs-section { padding: 6px 0 44px; }
  .tab-link { flex: 1 1 100%; }
  .tabs-content { padding: 26px 22px; }

  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-item { min-height: 320px; }
  .brand-item h5 { font-size: 24px; }

  .product-card h4 { min-height: 0; }

  .video-section .et_pb_row.two-cols {
    width: 90%;
    flex-wrap: wrap;
    gap: 30px;
  }
  .video-section .two-fifths,
  .video-section .three-fifths { flex: 1 1 100%; }
  .video-section .col-text.light h2 { font-size: 30px; }
  .video-section .col-text.light h2 .line { white-space: normal; }

  .team-grid.four-cols,
  .team-grid.five-cols { grid-template-columns: repeat(2, 1fr); }
  .products-section .et_pb_row.four-cols,
  .brand-section .et_pb_row.four-cols { grid-template-columns: repeat(2, 1fr); }
  .cases-section .et_pb_row.three-cols,
  .contact-section .et_pb_row.three-cols { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  .article-title { font-size: 30px; }
  .article-body p { font-size: 16px; }
  .article-lead { font-size: 17px !important; }
  .article-sub { font-size: 22px; }

  .header-container { padding: 12px 0; }
  .logo_container { max-width: 140px; }
  #logo { max-height: 40px; }

  .container { width: 90%; }
  .et_pb_section { padding: 40px 0; }

  .section-title { font-size: 24px; }
  .col-text h2, .col-text h3 { font-size: 22px; }

  #footer-bottom .container { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .team-grid.four-cols,
  .team-grid.five-cols,
  .products-section .et_pb_row.four-cols { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
  .brand-item { min-height: 280px; }
  .col-text h2 { font-size: 22px; }
  .hero-text h1 { font-size: 26px; }
}
