/*
 * EVOL.CL — estilos del sitio
 * Migrado desde Astro + React/Emotion a CSS plano.
 * Variables de color en :root (--primary, --secondary, --tertiary).
 * Breakpoints usados: 576px, 768px, 992px (lg), 1200px (xl), 1440px, 1920px.
 */

/* ===== Fuentes ===== */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100;
  src: url(/assets/fonts/Roboto-Thin.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300;
  src: url(/assets/fonts/Roboto-Light.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: url(/assets/fonts/Roboto-Regular.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  src: url(/assets/fonts/Roboto-Medium.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  src: url(/assets/fonts/Roboto-Bold.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 900;
  src: url(/assets/fonts/Roboto-Black.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 100;
  src: url(/assets/fonts/Roboto-ThinItalic.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 300;
  src: url(/assets/fonts/Roboto-LightItalic.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 400;
  src: url(/assets/fonts/Roboto-Italic.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 500;
  src: url(/assets/fonts/Roboto-MediumItalic.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 700;
  src: url(/assets/fonts/Roboto-BoldItalic.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 900;
  src: url(/assets/fonts/Roboto-BlackItalic.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ===== Base ===== */
:root {
  --primary: #FFFFFF;
  --secondary: #20222e;
  --tertiary: #101118;
}

:root {
  -webkit-print-color-scheme: light only;
  color-scheme: light only;
}

body, html {
  font-family: "Roboto",sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--tertiary);
  background: var(--primary);
  position: relative;
}

body:before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary);
  z-index: 20;
  transition: transform 0.5s;
  transition-delay: 0.2s;
}

body::-webkit-scrollbar {
  width: 17px;
  background: var(--secondary);
}

body::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 1);
}

body::-webkit-scrollbar-thumb {
  background-color: #7c2a04;
}

body.hide-overflow:before {
  transform: translateY(-100%);
}

main {
  display: block;
}

a {
  background-color: transparent;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

img {
  border-style: none;
  object-fit: cover;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button, [type="button"], [type="reset"], [type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button {
  padding: 0;
}

figure {
  margin: 0;
  line-height: 0;
}

strong {
  font-weight: 700;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 30px;
}

h1:last-child, h2:last-child, h3:last-child, h4:last-child, h5:last-child, h6:last-child {
  margin: 0;
}

h1 {
  font-size: 50px;
  line-height: 1.2;
}

@media (max-width: 992px) {
  h1 {
    font-size: 40px;
  }
}

h2 {
  font-size: 45px;
  line-height: 1.2;
}

@media (max-width: 992px) {
  h2 {
    font-size: 35px;
  }
}

h3 {
  font-size: 35px;
  line-height: 1.2;
}

@media (max-width: 992px) {
  h3 {
    font-size: 30px;
  }
}

h4 {
  font-size: 25px;
  line-height: 1.2;
}

@media (max-width: 992px) {
  h4 {
    font-size: 25px;
  }
}

h5 {
  font-size: 20px;
  line-height: 1.2;
}

@media (max-width: 992px) {
  h5 {
    font-size: 20px;
  }
}

h6 {
  font-size: 18px;
  line-height: 1.2;
}

@media (max-width: 992px) {
  h6 {
    font-size: 15px;
  }
}

p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 25px;
  letter-spacing: 1px;
  color: var(--tertiary);
}

p:last-child {
  margin: 0;
}

.page-404 {
  background-color: var(--secondary);
  height: 100dvh;
  color: var(--primary);
}

.page-404 p {
  color: var(--primary);
}

/* ===== Header ===== */
.site-header {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  animation: header-fade-in 1s;
  animation-delay: 0.4s;
  transition: background 0.5s;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.8);
}

@keyframes header-fade-in {
  from {
    transform: translateY(50px);
    opacity: 0.01;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 40px;
}

@media (max-width: 992px) {
  .site-header__inner {
    padding: 0 20px;
  }
}

.logo {
  position: relative;
  z-index: 3;
}

.logo a {
  font-size: 35px;
  line-height: 30px;
  font-weight: 700;
  display: inline-flex;
  position: relative;
}

.logo a span:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 25%;
  height: 3px;
  background-color: var(--primary);
  z-index: 1;
  transition: width 0.2s linear;
}

.logo a:hover span:after {
  width: 100%;
}

.logo a img {
  height: 50px;
  width: 63px;
  object-fit: contain;
}

.site-header__actions {
  display: flex;
  gap: 50px;
}

@media (max-width: 1200px) {
  .site-header__actions {
    gap: 20px;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 992px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    background: var(--secondary);
    height: 100dvh;
    z-index: 2;
    transform: translateX(100%);
    transition: transform 0.3s linear,right 0.7s;
    padding-top: 85px;
    width: clamp(300px, 80%, 300px);
  }
}

.main-nav__list {
  padding: 0;
  margin: 0;
  list-style-type: none;
  display: flex;
}

@media (min-width: 992px) {
  .main-nav__list {
    gap: 20px;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .main-nav__list {
    gap: 10px;
    padding: 20px 10px 53px;
    overflow: auto;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }
}

.main-nav__list >li a {
  text-decoration: none;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 25px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 1);
  padding: 10px;
  border-radius: 5px;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.3s,color 0.3s;
}

@media (max-width: 992px) {
  .main-nav__list >li a {
    padding: 10px 20px;
  }
}

.main-nav__list >li a:hover {
  background-color: var(--primary);
  color: var(--secondary);
  text-shadow: none;
}

.main-nav__list >li a img {
  margin: 0 15px 0 0;
  max-width: 30px;
  max-height: 30px;
}

@media (max-width: 1200px) {
  .main-nav__list >li a img {
    margin: 0 10px 0 0;
  }
}

.menu-toggle {
  position: relative;
  z-index: 3;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s,border-color 0.3s,color 0.3s;
  width: 45px;
  height: 45px;
  border-color: transparent;
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle__bar {
  background: var(--secondary);
  position: absolute;
  left: 50%;
  display: block;
  transform: translate(-50%, -50%);
  transition: transform 0.3s,background 0.3s,top 0.3s;
  pointer-events: none;
  width: 50%;
  height: 3px;
  top: calc(50% - 4px);
}

@media (max-width: 992px) {
  .menu-toggle__bar {
    height: 2px;
  }
}

.menu-toggle__bar:not(:first-of-type) {
  top: calc(50% + 4px);
}

/* ===== Utilidades ===== */
.fade-in {
  opacity: 0.001;
  transform: translateY(20px);
  transition: opacity 0.5s,transform 0.5s;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.container {
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  max-width: 540px;
}

@media (min-width: 768px) and (max-width: 992px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) and (max-width: 1440px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
}

/* ===== Botones ===== */
.btn-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.btn-row-center {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.btn-group {
  display: flex;
}

@media (min-width: 992px) {
  .btn-group {
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .btn-group {
    flex-direction: column;
    align-items: center;
  }
}

.btn-line {
  text-transform: uppercase;
  transition: 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  font-size: 25px;
  line-height: 30px;
  padding: 10px;
  margin-top: 40px;
  transition: color 0.5s;
  transition-delay: 0.2s;
}

@media (max-width: 992px) {
  .btn-line {
    font-size: 14px;
    line-height: 18px;
    margin-top: 20px;
  }
}

.btn-line:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--primary);
  z-index: -1;
  transition: width 0.5s;
}

.btn-line:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transition: width 0.5s;
}

.btn-line:hover {
  color: var(--secondary);
}

.btn-line:hover:before {
  width: 100%;
}

.btn-line:hover:after {
  width: 0%;
}

.btn-line:hover img {
  margin-right: 30px;
  opacity: 1;
}

.btn-line img {
  transition-delay: 0.2s;
  filter: invert(1);
  opacity: 0;
  margin-right: -20px;
  transition: all 0.5s;
}

.btn-pill {
  text-transform: uppercase;
  transition: 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 12px 40px;
  min-width: 150px;
  border: 1.5px solid var(--tertiary);
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 1px;
  font-weight: 500;
  border-radius: 50px;
  background: var(--tertiary);
  color: var(--primary);
}

.btn-pill:hover {
  background: transparent;
  color: var(--secondary);
}

/* ===== Hero slider (portada) ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0 auto;
  position: relative;
  height: 100dvh;
  min-height: 550px;
  background: var(--secondary);
  position: relative;
  overflow: hidden;
}

.hero-slider .swiper-pagination {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%) translate3d(0, 0, 0);
  display: flex;
  justify-content: flex-start;
  z-index: 1;
  width: 100%;
  height: auto;
  background: var(--tertiary);
  max-width: 500px;
  height: 15px;
  text-align: center;
  transition: 300ms opacity;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .hero-slider .swiper-pagination {
    left: 20px;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 992px) {
  .hero-slider .swiper-pagination {
    max-width: 200px;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%) translate3d(0, 0, 0);
  }
}

.hero-slider .swiper-pagination span {
  background: var(--primary);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: scale(0);
  transform-origin: left top;
}

.hero-slider .swiper {
  height: 100%;
}

.blog-content .hero-slider h1 {
  font-size: 90px;
  line-height: 95px;
}

@media (max-width: 992px) {
  .blog-content .hero-slider h1 {
    font-size: 40px;
    line-height: 50px;
  }
}

.hero-slider__swiper {
  overflow: hidden;
  width: 100%;
}

.hero-slide {
  height: 100%;
  position: relative;
  overflow: hidden;
  padding: 0 40px;
  display: flex;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-slide {
    padding: 0 20px;
  }
}

.hero-slide .swiper-slide-drag {
  transition: none;
}

.hero-slide .swiper-backface-hidden .swiper-slide {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-slide .swiper-slide {
  height: 100%;
  overflow: hidden;
}

.hero-slide__media {
  height: 100%;
  width: 100%;
  top: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.hero-slide__media:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  top: 0;
  left: -1px;
  background-color: transparent;
  background-image: radial-gradient(at center right, #00000038 50%, #000000b8 100%);
}

.hero-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide__content {
  position: relative;
  z-index: 3;
  color: var(--primary);
}

.hero-slide__content h1 {
  font-size: 180px;
  line-height: 130px;
  text-transform: uppercase;
  font-weight: 900;
  margin-left: -15px;
  margin-bottom: 50px;
}

@media (max-width: 1200px) {
  .hero-slide__content h1 {
    font-size: 90px;
    line-height: 95px;
    margin-bottom: 20px;
  }
}

@media (max-width: 992px) {
  .hero-slide__content h1 {
    font-size: 40px;
    line-height: 50px;
    margin-bottom: 20px;
    margin-left: 0;
  }
}

.hero-slide__content h1+p {
  max-width: 700px;
  color: var(--primary);
  font-size: 18px;
  line-height: 25px;
  font-weight: 300;
}

@media (max-width: 992px) {
  .hero-slide__content h1+p {
    font-size: 14px;
    line-height: 18px;
  }
}

.hero-slide__kicker {
  text-transform: uppercase;
  font-size: 25px;
  line-height: 30px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--primary);
  margin-bottom: 40px;
}

@media (max-width: 1200px) {
  .hero-slide__kicker {
    font-size: 20px;
    line-height: 25px;
    margin-bottom: 20px;
  }
}

@media (max-width: 992px) {
  .hero-slide__kicker {
    font-size: 18px;
    line-height: 20px;
    margin-bottom: 20px;
  }
}

.hero-slide__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-slider__hint {
  position: absolute;
  right: 40px;
  bottom: 40px;
  transform: translateX(-50%);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 25px;
  color: var(--primary);
  z-index: 1;
  display: flex;
  align-items: center;
  pointer-events: none;
}

@media (max-width: 992px) {
  .hero-slider__hint {
    font-size: 14px;
    line-height: 18px;
    left: 50%;
    right: unset;
    bottom: 45px;
    transform: translateX(-50%);
    justify-content: center;
    width: 100%;
  }
}

.hero-slider__hint img {
  margin-left: 10px;
}

/* ===== Hero banner (imagen de fondo) ===== */
.hero-banner {
  width: 100%;
  min-height: 457px;
  padding: 90px 20px;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero-banner:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-banner__content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-banner__content h1 {
  font-size: 90px;
  line-height: 90px;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary);
}

@media (max-width: 992px) {
  .hero-banner__content h1 {
    font-size: 50px;
    line-height: 50px;
  }
}

.hero-banner__content p {
  color: var(--primary);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 992px) {
  .hero-banner__content p {
    font-size: 14px;
    line-height: 20px;
  }
}

/* ===== Bloque texto + imagen ===== */
.text-image {
  width: 100%;
  text-align: left;
  margin: 50px 0;
  align-items: center;
  background: var(--primary);
  color: inherit;
  padding: 0;
}

.text-image-dark {
  width: 100%;
  text-align: left;
  margin: 50px 0;
  align-items: center;
  background: var(--secondary);
  color: var(--primary);
  padding: 80px 0;
}

.text-image__grid {
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  max-width: 540px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

@media (min-width: 768px) and (max-width: 992px) {
  .text-image__grid {
    max-width: 720px;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .text-image__grid {
    max-width: 960px;
  }
}

@media (min-width: 1200px) and (max-width: 1440px) {
  .text-image__grid {
    max-width: 1140px;
  }
}

@media (min-width: 1440px) {
  .text-image__grid {
    max-width: 1320px;
  }
}

@media (max-width: 992px) {
  .text-image__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.text-image__grid-reverse {
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  max-width: 540px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

@media (min-width: 768px) and (max-width: 992px) {
  .text-image__grid-reverse {
    max-width: 720px;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .text-image__grid-reverse {
    max-width: 960px;
  }
}

@media (min-width: 1200px) and (max-width: 1440px) {
  .text-image__grid-reverse {
    max-width: 1140px;
  }
}

@media (min-width: 1440px) {
  .text-image__grid-reverse {
    max-width: 1320px;
  }
}

@media (max-width: 992px) {
  .text-image__grid-reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.text-image__grid-reverse >div:first-of-type {
  order: 2;
}

@media (max-width: 992px) {
  .text-image__text {
    max-width: 490px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }
}

.text-image__text h1 {
  margin-bottom: 20px;
  font-size: 80px;
  line-height: 84px;
  letter-spacing: -1px;
  color: inherit;
}

@media (max-width: 1200px) {
  .text-image__text h1 {
    font-size: 60px;
    line-height: 64px;
  }
}

@media (max-width: 576px) {
  .text-image__text h1 {
    font-size: 50px;
    line-height: 45px;
    letter-spacing: -0.5px;
  }
}

.text-image__text p {
  color: var(--tertiary);
}

@media (min-width: 992px) {
  .text-image__text p {
    max-width: 400px;
  }
}

.text-image__text strong {
  color: inherit;
}

@media (max-width: 992px) {
  .text-image__text-light {
    max-width: 490px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }
}

.text-image__text-light h1 {
  margin-bottom: 20px;
  font-size: 80px;
  line-height: 84px;
  letter-spacing: -1px;
  color: var(--primary);
}

@media (max-width: 1200px) {
  .text-image__text-light h1 {
    font-size: 60px;
    line-height: 64px;
  }
}

@media (max-width: 576px) {
  .text-image__text-light h1 {
    font-size: 50px;
    line-height: 45px;
    letter-spacing: -0.5px;
  }
}

.text-image__text-light p {
  color: var(--primary);
}

@media (min-width: 992px) {
  .text-image__text-light p {
    max-width: 400px;
  }
}

.text-image__text-light strong {
  color: inherit;
}

.text-image__figure {
  width: 100%;
  position: relative;
}

.text-image__img {
  width: 100%;
  margin-bottom: 30px;
  min-height: 450px;
  object-fit: contain;
}

@media (max-width: 992px) {
  .text-image__img {
    min-height: auto;
  }
}

/* ===== Tarjetas de servicios ===== */
.cards-section {
  background: var(--primary);
  padding-top: 90px;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  margin: -43px 0 50px;
  z-index: 1;
  position: relative;
}

.section-heading {
  color: var(--secondary);
  margin-bottom: 40px;
  max-width: 550px;
}

.section-heading p {
  color: var(--tertiary);
}

.section-heading h2 {
  font-size: 60px;
  line-height: 1.2;
  margin-bottom: 10px;
}

@media (max-width: 992px) {
  .section-heading h2 {
    font-size: 40px;
    line-height: 1.2;
  }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.cards-grid h3 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 5px;
}

.cards-grid p {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  opacity: 0.8;
}

.card {
  padding: 30px;
  border-radius: 10px;
  background: var(--primary);
  box-shadow: 0 0 10px rgb(123 123 123 / 30%);
  display: block;
  height: 100%;
  color: var(--secondary);
  border-radius: 15px;
}

.card__body {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .card__body {
    max-width: 80%;
  }
}

/* ===== Contacto ===== */
.contact-section {
  background: var(--primary);
  padding-top: 90px;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  margin: -43px 0 90px;
  z-index: 1;
  position: relative;
}

.container-narrow {
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  max-width: 540px;
}

@media (min-width: 768px) and (max-width: 992px) {
  .container-narrow {
    max-width: 720px;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .container-narrow {
    max-width: 960px;
  }
}

@media (min-width: 1200px) and (max-width: 1440px) {
  .container-narrow {
    max-width: 1140px;
  }
}

@media (min-width: 1440px) {
  .container-narrow {
    max-width: 1320px;
  }
}

@media (min-width: 1920px) {
  .container-narrow {
    max-width: 920px;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin: 40px 0;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  padding: 30px;
  border-radius: 10px;
  background: var(--primary);
  box-shadow: 0 0 10px rgb(123 123 123 / 30%);
  display: block;
  height: 100%;
  color: var(--secondary);
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.contact-card h2, .contact-card h3, .contact-card h4 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.contact-card h2:after, .contact-card h3:after, .contact-card h4:after {
  content: none;
}

.contact-card h4, .contact-card p {
  position: relative;
  z-index: 2;
}

.contact-card p {
  line-height: 1.2;
}

.contact-card__bg-text {
  position: absolute;
  top: 0;
  right: 0;
  text-transform: uppercase;
  font-size: 90px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -7px;
  z-index: 1;
  color: var(--primary);
  opacity: 0.5;
}

@media (max-width: 1440px) {
  .contact-card__bg-text {
    font-size: 80px;
  }
}

@media (max-width: 1200px) {
  .contact-card__bg-text {
    font-size: 60px;
    letter-spacing: -3px;
  }
}

/* ===== Página 404 ===== */
.page-section {
  padding: 100px 0;
}

@media (max-width: 992px) {
  .page-section {
    padding: 60px 0;
  }
}

.text-block-center {
  text-align: center;
}

.text-block-center h2, .text-block-center h3, .text-block-center h4, .text-block-center h5 {
  margin-bottom: 70px;
  font-weight: 200;
}

.text-block-center figure {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.text-block-center figure, .text-block-center figure img {
  border-radius: 10px;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-width: 970px;
  margin: 0 auto;
}

/* ===== Footer ===== */
.site-footer {
  width: 100%;
  background: var(--secondary);
  padding: 90px 0;
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 992px) {
  .site-footer__top {
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
  }
}

.site-footer__info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

@media (max-width: 992px) {
  .site-footer__info {
    flex-direction: column;
    text-align: center;
  }
}

.site-footer__info p {
  margin: 0;
  color: var(--primary);
}

.site-footer__bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin: 50px 0 0;
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  padding: 0;
  margin: 0;
  width: 100%;
  list-style: none;
}

@media (max-width: 992px) {
  .site-footer__links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-footer__links {
    grid-template-columns: 1fr;
  }
}

.site-footer__item {
  border-radius: 50%;
  width: 100%;
  cursor: pointer;
  transition: 0.3s;
}

.site-footer__link {
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--primary);
  padding-top: 20px;
  width: 100%;
  transform: translateY(0);
  transition: transform 0.3s;
}

.site-footer__link:hover {
  transform: translateY(-10px);
}

.site-footer__link p {
  color: var(--primary);
  font-size: 20px;
  line-height: 1.2;
}

.site-footer__link img {
  width: 25px;
  height: 25px;
  aspect-ratio: 25/25;
  object-fit: contain;
  margin-left: 30px;
}

/* ===== Estados interactivos (antes en React) ===== */
@media (max-width: 992px) {
  .main-nav.is-open {
    right: 0;
    transform: translateX(0);
  }
}

.menu-toggle.is-open .menu-toggle__bar {
  transform: translate(-50%, -50%) rotate(45deg);
  top: 50%;
}

.menu-toggle.is-open .menu-toggle__bar:not(:first-of-type) {
  transform: translate(-49%, -50%) rotate(-45deg);
  top: 50%;
}

.card-wrap,
.card-link {
  display: block;
  height: 100%;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: #2a7fff;
}

/* ===== Hero slider: títulos largos ===== */
/* Para slides con títulos de varias palabras (ej. "De operar software a dirigir resultados."). */
.hero-slide__content--long h1 {
  font-size: 100px;
  line-height: 100px;
  max-width: 1100px;
}

@media (max-width: 1200px) {
  .hero-slide__content--long h1 {
    font-size: 64px;
    line-height: 68px;
  }
}

@media (max-width: 992px) {
  .hero-slide__content--long h1 {
    font-size: 34px;
    line-height: 40px;
  }
}

/* ===== Tarjetas con ilustración ===== */
.card__media {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* ===== Tarjetas con cifra destacada ===== */
.card__stat {
  display: block;
  font-size: 56px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -1px;
  color: #2a7fff;
  margin-bottom: 15px;
}

/* ===== Formulario de contacto ===== */
.contact-form-card__body {
  max-width: none;
  width: 100%;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .contact-form__grid {
    grid-template-columns: 1fr;
  }
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--secondary);
}

.contact-form label em {
  font-style: normal;
  font-weight: 400;
  color: #6b7080;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  padding: 12px 14px;
  border: 1px solid rgba(32, 34, 46, 0.2);
  border-radius: 10px;
  background: #fff;
  color: var(--tertiary);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2a7fff;
  box-shadow: 0 0 0 3px rgba(42, 127, 255, 0.2);
}

.contact-form button {
  justify-self: start;
  cursor: pointer;
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.contact-form__nota {
  font-size: 13px;
  line-height: 1.4;
  color: #6b7080;
  margin: 0;
}

.contact-form__trampa {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__error {
  color: #c62828;
  font-weight: 700;
  margin: 0;
}

.contact-form__ok {
  margin-top: 20px;
  padding: 24px;
  border-radius: 10px;
  background: rgba(42, 127, 255, 0.08);
  border: 1px solid rgba(42, 127, 255, 0.3);
}

.contact-form__ok h3 {
  margin-bottom: 8px;
}

/* Cifras/etiquetas grandes: más pequeñas en móvil para palabras largas */
.card__stat {
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .card__stat {
    font-size: 32px;
  }
}

/* Logo EVOL en bloques de texto + imagen: a su tamaño real (256px), centrado */
.text-image__img--logo {
  min-height: 0;
  width: 100%;
  max-width: 256px;
  height: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}
