:root {
  --color-light-blue: #00AEEF;
  --color-light-green: #4DBB81;
  --color-medium-blue: #006281;
  --color-medium-green: #1C635D;
  --color-dark-blue: #153155;
  --color-dark-green: #073B36;
  --color-black: #000000;
  --color-dark-gray: #808285;
  --color-medium-gray: #E8E8E8;
  --color-light-gray: #F2F2F2;
  --color-white: #FFFFFF;
  --color-light-whatsapp: #25D366;
  --color-dark-whatsapp: #075E54;
  --color-highlight:#fff3cd;
  --color-border: #CCCCCC;
  --color-error: #dc3545;

  --font-heading: 'Muli', sans-serif;
  --font-body: 'Georama', sans-serif;

  --radius: 5px;
  --transition: 0.3s ease;
}

/* Muli Font Faces */
/* ExtraLight */
@font-face {
  font-family: 'Muli';
  src: url('../fonts/muli/Muli-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

/* Light */
@font-face {
  font-family: 'Muli';
  src: url('../fonts/muli/Muli-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Regular */
@font-face {
  font-family: 'Muli';
  src: url('../fonts/muli/Muli.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Regular Italic */
@font-face {
  font-family: 'Muli';
  src: url('../fonts/muli/Muli-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* SemiBold */
@font-face {
  font-family: 'Muli';
  src: url('../fonts/muli/Muli-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* SemiBold Italic */
@font-face {
  font-family: 'Muli';
  src: url('../fonts/muli/Muli-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* Bold */
@font-face {
  font-family: 'Muli';
  src: url('../fonts/muli/Muli-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Bold Italic */
@font-face {
  font-family: 'Muli';
  src: url('../fonts/muli/Muli-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ExtraBold */
@font-face {
  font-family: 'Muli';
  src: url('../fonts/muli/Muli-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Black */
@font-face {
  font-family: 'Muli';
  src: url('../fonts/muli/Muli-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Georama Font Faces */

/* Thin */
@font-face {
  font-family: 'Georama';
  src: url('../fonts/georama/Georama-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

/* Thin Italic */
@font-face {
  font-family: 'Georama';
  src: url('../fonts/georama/Georama-ThinItalic.ttf') format('truetype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

/* ExtraLight */
@font-face {
  font-family: 'Georama';
  src: url('../fonts/georama/Georama-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

/* ExtraLight Italic */
@font-face {
  font-family: 'Georama';
  src: url('../fonts/georama/Georama-ExtraLightItalic.ttf') format('truetype');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

/* Light */
@font-face {
  font-family: 'Georama';
  src: url('../fonts/georama/Georama-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Light Italic */
@font-face {
  font-family: 'Georama';
  src: url('../fonts/georama/Georama-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Regular */
@font-face {
  font-family: 'Georama';
  src: url('../fonts/georama/Georama-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Regular Italic */
@font-face {
  font-family: 'Georama';
  src: url('../fonts/georama/Georama-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Medium */
@font-face {
  font-family: 'Georama';
  src: url('../fonts/georama/Georama-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Medium Italic */
@font-face {
  font-family: 'Georama';
  src: url('../fonts/georama/Georama-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* SemiBold */
@font-face {
  font-family: 'Georama';
  src: url('../fonts/georama/Georama-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* SemiBold Italic */
@font-face {
  font-family: 'Georama';
  src: url('../fonts/georama/Georama-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* Bold */
@font-face {
  font-family: 'Georama';
  src: url('../fonts/georama/Georama-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Bold Italic */
@font-face {
  font-family: 'Georama';
  src: url('../fonts/georama/Georama-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ExtraBold */
@font-face {
  font-family: 'Georama';
  src: url('../fonts/georama/Georama-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Black */
@font-face {
  font-family: 'Georama';
  src: url('../fonts/georama/Georama-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Animaciones */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes slowFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(20px) scale(1.08);
  }
}

@keyframes pulse-scale {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 98, 129, 0.5);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 98, 129, 0);
    }
}

@keyframes bounce-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[id] {
  scroll-margin-top: var(--anchor-offset, 0px);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-medium-gray);
  background: var(--color-white);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-black);
  line-height: 1.3em;
}

h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2em;
}

h2 {
  font-size: 35px;
  font-weight: 700;
  line-height: 1.2em;
}

h3 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3em;
}

h4 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3em;
}

h5 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4em;
}

h6 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4em;
}

p {
  color: var(--color-dark-gray);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4em;
}

a {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-medium-blue);
  text-decoration: none;
}

a:hover {
  color: var(--color-medium-green);
  text-decoration: none;
}

ul li{
  color: var(--color-dark-gray);
  font-size: 14px;
  text-align: left;
}

label {
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.grecaptcha-badge {
    display: none;
}

/* Form Fields */
input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="url"], 
textarea, 
select {
  font-size: 16px;
  font-weight: 400;
  line-height: 1;

  width: 100%;
  padding: 5px 10px;
  font-family: inherit;

  color: var(--color-dark-gray);
  background-color: var(--color-light-gray);

  border: none;
  border-radius: var(--radius);

  outline: none;
  box-sizing: border-box;

  transition: 
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

/* Custom Select*/
.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}

.select-trigger {
  font-size: 16px;
  font-weight: 400;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;
  cursor: pointer;

  color: var(--color-dark-gray);
  background-color: var(--color-light-gray);
  border: none;
  border-radius: var(--radius);
}

.select-text {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.select-trigger:focus {
  outline: none;
}

.select-arrow {
  margin-left: 10px;
}

.select-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 5px 5px;
  background: white;
  display: none; 
  z-index: 1000;
}

.select-options li {
  padding: 5px 10px;
  cursor: pointer;
}

.select-options li:hover,
.select-options li.selected {
  background-color: #f0f0f0;
}

/* Checkbox */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background-color: var(--color-medium-gray); 
  border: none;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s, border-color 0.2s;
}

input[type="checkbox"]:checked {
  background-color: var(--color-medium-gray);
}

input[type="checkbox"]:checked::after {
  content: "✔";
  color: var(--color-dark-gray);
  font-size: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.form-check{
  font-size: 12px;
  color: var(--color-dark-gray);
}

.form-check a{
  font-size: 12px;
  color: var(--color-dark-blue);
}

.form-check a:hover{
  text-decoration: underline; 
}

.form-group label {
  font-size: 14px;
  color: var(--color-dark-gray);
}

.form > button{
    width: 100%;
}

.form .form-hidden{
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  opacity: 0; 
  cursor: pointer; z-index: -1;
}

.mb-sm{
    margin-bottom: 5px;
}

.mb-md{
    margin-bottom: 10px;
}

.mb-lg{
    margin-bottom: 15px;
}

.mb-xl{
    margin-bottom: 20px;
}

/* Buttons */
.btn {
  padding: 10px 30px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  line-height: 1em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-outline-general {
  position: relative;
  color: var(--color-dark-gray);
  background: transparent;
  border: none;
}

.btn-outline-general::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;

  background: linear-gradient(
    90deg,
    var(--color-medium-blue),
    var(--color-medium-green)
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  pointer-events: none;
}

.btn-outline-general:hover{
    background: linear-gradient(90deg, var(--color-medium-blue), var(--color-medium-green));
    color: var(--color-white);
}

.btn-general-dark {
  background: linear-gradient(90deg,var(--color-medium-blue), var(--color-medium-green));
  color: var(--color-white);
}

.btn-general-dark:hover {
  background: linear-gradient(90deg,var(--color-dark-blue), var(--color-dark-green));
  color: var(--color-white);
}

.btn-general-light {
  background: var(--color-white);
  color: var(--color-medium-blue);
}

.btn-general-light:hover {
  background: var(--color-medium-gray);
  color: var(--color-white);
}

.btn-blue-dark {
  background: var(--color-medium-blue);
  color: var(--color-white);
}

.btn-blue-dark:hover {
  background: var(--color-dark-blue);
  color: var(--color-white);
}

.btn-blue-light {
  background: var(--color-white);
  color: var(--color-medium-blue);
}

.btn-blue-light:hover {
  background: var(--color-light-blue);
  color: var(--color-white);
}

.btn-green-dark {
  background: var(--color-medium-green);
  color: var(--color-white) !important;
}

.btn-green-dark:hover {
  background: var(--color-dark-green);
  color: var(--color-white) !important;
}

.btn-green-light {
  background: var(--color-white);
  color: var(--color-medium-green);
}

.btn-green-light:hover {
  background: var(--color-light-green);
  color: var(--color-white);
}

.btn-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn.btn-link {
    font-weight: 400;
    box-shadow: inset 0 -1px 0 currentColor;
    border-radius: 0;
    padding: 7px 0;

    background-color: transparent;
    -webkit-tap-highlight-color: transparent; 
}

/* ========= TABLET (≤ 1024px) ========= */
@media (max-width: 1024px) {
body {
  font-size: 15px;
  line-height: 1.4em;
}

h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2em;
}

h2 {
  font-size: 31px;
  font-weight: 700;
  line-height: 1.2em;
}

h3 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3em;
}

h4 {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3em;
}

h5 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4em;
}

h6 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4em;
}

p {
  font-size: 15px;
  line-height: 1.4em;
}

a {
  font-size: 15px;
}

.btn {
  padding: 8px 25px;
  font-size: 15px;
  gap: 6px;
}

label {
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}

input,
textarea,
select {
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}
}

/* ========= MÓVIL (≤ 767px) ========= */
@media (max-width: 767px) {
body {
  font-size: 14px;
  line-height: 1.4em;
}

h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2em;
}

h2 {
  font-size: 29px;
  font-weight: 700;
  line-height: 1.2em;
}

h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3em;
}

h4 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3em;
}

h5 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4em;
}

h6 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4em;
}

p {
  font-size: 14px;
  line-height: 1.4em;
}

a {
  font-size: 14px;
}

.btn {
  padding: 6px 20px;
  font-size: 14px;
  gap: 5px;
}

.btn-group {
  gap: 10px;
}

label {
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

input,
textarea,
select {
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}
}

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

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.container {
  max-width: 1500px;
  margin: auto;
  padding: 5px 20px;
}

.top-bar {
  background: var(--color-light-gray);
  padding: 5px 20px;
  font-size: 14px;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  gap: 1vw;
}

.contact-info a {
  color: var(--color-dark-gray);
  margin-right: 1.5vw;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}

.contact-info a:hover,
.contact-info a:hover i {
  color: var(--color-medium-blue);
}

.contact-info i {
  color: var(--color-dark-gray);
  margin-right: 5px;
  font-size: 18px;
}

.lang {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

.lang a {
  color: var(--color-dark-gray);
  font-weight: 700;
}

.lang .active, .lang a:hover {
  color: var(--color-medium-blue);
}

.main-header {
  background: var(--color-white);
  transition: var(--transition);
  z-index: 999;
  width: 100%;
}

.main-header.sticky {
  position: sticky;
  top: 0;
  animation: slideDown .3s ease;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 20px;
  height: 90px;
  gap: 20px;
}

.logo {
  flex: 0 1 auto; 
  min-width: 60px;
}

.logo img {
  max-height: 60px;       
  width: auto;       
  max-width: 100%;    
  display: block;
  transition: var(--transition);
}

.search-form {
  flex: 1 1 auto; 
  min-width: 0;

  display: flex;
  align-items: stretch;

  height: 36px;
  padding: 0;

  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;

  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-form.is-error{
    border-color: var(--color-error);
}

.search-form.search-form--global{
    max-width: 380px;
    margin-right: auto !important;
}

.search-form.search-form--weather{
    max-width: 100%;
    background-color: var(--color-white);
}

.search-form:focus-within {
  box-shadow: 0 0 0 2px rgba(185, 185, 185, 0.25);
}

.search-form.is-error:focus-within {
  box-shadow: 0 0 0 2px  rgba(196, 43, 43, 0.25);
}

.search-form input {
  flex: 1;
  min-width: 0;

  height: 100%;
  padding: 0 16px;

  border: none;
  outline: none;
  background: transparent;

  font-size: 14px;
}

.search-form input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.search-form button {
  width: 44px;
  height: 100%;

  border: none;
  background: transparent;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  color: var(--color-dark-gray);
}

.search-form button:hover {
  background: rgba(0,0,0,.05);
}

.search-form button:focus {
  outline: none;
}

.search-toggle {
  margin-right: auto !important;
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.search-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.search-form.mobile-search {
  width: 90%;
  max-width: 500px;
  position: absolute;
  background-color: var(--color-white);
}

.search-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  font-size: 25px;
  color: var(--color-white);
  cursor: pointer;
}

.search-title{
    margin-top: 20px;
}
.search-title span{
    color: var(--color-dark-gray);
}

.search-list{
    margin-left: 20px;
    margin-top: 20px;
}

.search-item{
    color: var(--color-dark-gray);
    margin-bottom: 10px;
}

.search-item:hover *{
    color: var(--color-black);
}

.search-item a{
    color: var(--color-dark-blue);
    font-size: 18px;
    font-weight: 600;
}

.bottom-line {
  height: 5px;
  background: linear-gradient(90deg, var(--color-light-blue), var(--color-medium-blue), var(--color-medium-green), var(--color-light-green));
}

.hamburger {
  display: none;
  color: var(--color-dark-gray);
  font-size: 20px;
  cursor: pointer;
}

.nav {
  flex-shrink: 0;
  display: flex;
}

.desktop-menu {
  list-style: none;
  display: flex;
  gap: 1.5vw;
  flex-shrink: 1;  
  width: max-content; 
}

.desktop-menu a:not(.btn) {
  font-weight: 700;
  color: var(--color-dark-gray);
}

.desktop-menu ul {
  margin-bottom: 0px;
}

.desktop-menu > li {
  display: inline-flex;
  align-items: center; 
  flex: 0 1 auto; 
}

.desktop-menu .mega-col p {
  margin-bottom: 10px;
}

.desktop-menu .mega-col a:not(.btn) {
  font-weight: 400;
  color: var(--color-dark-gray);
  line-height: 1.2em;
  border-bottom: 1px solid var(--color-medium-gray);
  padding-bottom: 5px;
  padding-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.desktop-menu .mega-col a.btn {
  margin-top: 10px;
  gap: 10px;
}

.desktop-menu a:not(.btn).active,
.desktop-menu a:not(.btn):hover {
  color: var(--color-black);
}

.desktop-menu a.btn.active{
  font-weight: 900;
}

.has-mega {
  position: relative;
}

.has-mega > a {
  display: inline-flex;
  align-items: center; 
  gap: 5px;      
}

.mega-menu {
  position: absolute;
  top: 100%;
  background: var(--color-white);
  border-radius: 20px;
  padding: 25px 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  z-index: 999;
  animation: fadeUp .3s ease;
  display: none;
  column-gap: 30px;
}

.mega-menu.columns-1 {
  --mansoury-columns: 1;    
  --mansoury-width: 250px;
}

.mega-menu.columns-2 {
  --mansoury-columns: 2;    
  --mansoury-width: 550px; 
}

.mega-menu[class*="columns-"] {
  width: 100%;
  column-count: var(--mansoury-columns, 3);
  min-width: var(--mansoury-width, 750px);
}

.mega-menu[class*="columns-"] > * {
  break-inside: avoid;
  margin-bottom: 24px;
  width: 100%;
}

.has-mega:hover .mega-menu {
  display: block;
}

.is-angle-icon {
  transition: transform 0.3s ease;
}

.has-mega:hover > a .is-angle-icon{
    transform: rotate(180deg);
}

img.icono-menu-principal {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--color-light-gray);
}
.card-mega{
    width: 17dvw;
    max-width: 400px;
}

.card-mega img {
  width: auto;
  height: 55px;
  margin-bottom: 5px;
}

.card-mega p {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  padding-top: 5px;
  border-top: 1px solid var(--color-medium-gray);
}

.mega-col h6 {
  margin-bottom: 16px;
  line-height: 1,2em;
}

.mega-col a {
  font-size: 14px;
}

.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 90%;
  max-width: 360px;
  height: 100vh;
  background: var(--color-white);
  transition: var(--transition);
  z-index: 1000;
  box-shadow: -5px 0 20px rgba(0,0,0,.3);
  overflow-y: auto;
}

.nav-mobile.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--color-medium-gray);
}

.mobile-menu-header img {
  height: 40px;
}

#closeMenu {
  color: var(--color-dark-gray);
  font-size: 30px;
  cursor: pointer;
}

.menu-mobile {
  padding: 20px;
  list-style: none;
}

.menu-mobile li {
  padding: 15px 0;
  border-bottom: 1px solid var(--color-medium-gray);
}

.menu-mobile a {
  font-weight: 700;
  text-align: left;
}

.submenu-btn {
  padding: 0px;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
}

.submenu-btn i {
  transition: transform 0.3s ease;
}

a:has(+ .submenu-2-btn) {
  margin-bottom: 20px; 
}

.menu-mobile .submenu-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.menu-mobile .submenu-btn a {
  -webkit-tap-highlight-color: transparent; 
  -moz-tap-highlight-color: transparent;  
  -ms-tap-highlight-color: transparent;  
}

.menu-mobile a:not(.btn).active{
  color: var(--color-black);
}
.menu-mobile a.btn.active{
  font-weight: 900;
}

.submenu-2-btn {
  width: 100%;
  display: block;
  padding: 5px 0;
  margin-left: 10px;
  font-weight: 700;
  background: none;
  border: none;
  text-align: left;
}

a.submenu {
  font-weight: 400;
  margin-left: 20px;
  border-bottom: 1px solid var(--color-medium-gray);
}

.submenu > a.btn.submenu{
    margin-left: 20px;
    margin-top: 20px;
    border-bottom: none;
    font-weight: 600;
    padding: 6px 20px;
}

.submenu {
  gap: 5px;
  width: 100%;
  min-width: 0;
}

.has-submenu .submenu {
  max-height: 0;          
  overflow: hidden;       
  opacity: 0;           
  padding: 0 0;
  transition: 
    max-height 0.25s ease-out,  /* más rápido */
    opacity 0.2s ease-out,
    padding 0.2s ease-out;
}

.has-submenu.active .submenu {
  max-height: 1500px; 
  opacity: 1;
  padding: 14px 0;
}

.submenu img {
  height: 60px;
  width: auto;
  margin-bottom: 5px;
}

.submenu img:not(:first-of-type) {
  margin-top: 20px;
}

.submenu p {
  margin-bottom: 10px;
}

.has-submenu.active .submenu-icono {
  display: flex;
  align-items: center;
  font-weight: 400;
  margin-left: 20px;
  border-bottom: 1px solid var(--color-medium-gray);
}

.has-submenu.active .submenu-btn i {
  transform: rotate(180deg);
}

/* ========= TABLET (≤ 1024px) ========= */
@media (max-width: 1024px) {
.top-bar {
  padding: 5px 5px;
  font-size: 13px;
}

.contact-info a {
  font-size: 13px;
}

.header-content {
  gap: 10px;
}

.logo img {
  max-height: 50px;
}

.search-form.desktop-search {
  display: none;
}

.search-toggle {
  display: block;
  color: var(--color-dark-gray);
}

.search-item a{
    font-size: 17px;
}

img.icono-menu-principal {
  margin: 0 5px 0 0;
}
}

/* ========= MÓVIL (≤ 767px) ========= */
@media (max-width: 767px) {
.top-bar {
  padding: 5px 5px;
  font-size: 12px;
}

.contact-info a {
  font-size: 12px;
}

.desktop-menu, .search-box {
  display: none;
}

.search-item a{
    font-size: 16px;
}

.hamburger {
  display: block;
}

.header-content {
  height: 75px;
}

.logo img {
  max-height: 40px;
}
}

/* ================================= */
/* SECCIÓN HERO */
/* ================================= */
.hero-section {
  position: relative;
  min-height: 200px;
  background: no-repeat;
  background-image: var(--bg-image);
  background-size: 55%;
  background-position-x: 100%;
  background-position-y: 50%;
  align-content: end;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-dark-blue) 0%, var(--color-medium-blue) 20%, var(--color-medium-green) 50%, rgba(255, 255, 255, 0) 100%)
}

.hero-content {
  position: relative;
  display: flex;
  max-width: 1500px;
  gap: 0px;
  padding: 3% 3% 3% 3%;
  margin-left: auto;
  margin-right: auto;
  flex-direction: column;
}

.hero-content h1 {
  color: var(--color-white);
  margin: 0;
}

.hero-content time {
  color: var(--color-white);
  margin: 0;
  font-size: 17px;
  font-weight: 300;
}

.underline {
  width: 150px;
  height: 2px;
  margin: 15px 0px;
  background: linear-gradient(90deg,var(--color-light-blue), var(--color-light-green));
  border-radius: 10px;
}

.underline.underline--green {
  background: linear-gradient(90deg,var(--color-light-green), var(--color-dark-green));
}

.underline.underline--blue {
  background: linear-gradient(90deg,var(--color-light-blue), var(--color-dark-blue));
}

.underline.underline--light {
  background: linear-gradient(90deg,var(--color-white), var(--color-light-blue), var(--color-light-green));
}

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

/* ========= TABLET (≤ 1024px) ========= */
@media (max-width: 1024px) {
.hero-content {
  padding: 5% 5% 5% 5%;
}
}

/* ========= MÓVIL (≤ 767px) ========= */
@media (max-width: 767px) {
.hero-section {
  background-size: 100%;
  background-position-x: 100%;
  background-position-y: 0%;
}

.hero-overlay {
  background: linear-gradient(0deg, var(--color-dark-blue) 0%, var(--color-medium-blue) 20%, var(--color-medium-green) 50%, rgba(255, 255, 255, 0) 100%)
}

.hero-content {
  padding: 8% 8% 8% 8%;
}
}

/*======================================*/
/* SECCIÓN DE PRESENTACIÓN GENERAL      */ 
/*======================================*/

.home-presentation {
  position: relative;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.home-presentation.is-style-media-left .presentation-column-1 {
  order: 1;
}

.home-presentation.is-style-media-left .presentation-column-2 {
  order: 2;
}

.home-presentation.is-style-media-right .presentation-column-1 {
  order: 2;
}

.home-presentation.is-style-media-right .presentation-column-2 {
  order: 1;
}

.presentation-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse farthest-corner at 30% 50%, rgb(255 255 255 / 75%), white 75%);
}

.presentation-container {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 1500px;
  margin: auto;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 3% 3% 3% 3%;
}

.presentation-column-1 {
  flex: 1;
  text-align: center;
}

.presentation-column-1 .main-image {
  width: 100%;
  max-width: 750px;
  max-height: 500px;
  height: auto;
  object-fit: contain;
}

.presentation-column-2 {
  flex: 1;
}

.presentation-column-2 h2 {
  margin-bottom: 10px;
}

.presentation-column-2 h3, 
.presentation-column-2 h4,
.presentation-column-2 h5,
.presentation-column-2 h6
 {
  margin-bottom: 20px;
}

.presentation-column-2 p {
  margin-bottom: 20px;
}

.presentation-column-2 ul {
  margin-left: 20px;
  margin-bottom: 20px;
  padding: 0;
}

/* ========= TABLET (≤ 1024px) ========= */
@media (max-width: 1024px) {
.presentation-container {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 45px;
  padding: 5% 5% 5% 5%;
}

.presentation-overlay {
  background: radial-gradient(ellipse farthest-corner at 50% 25%, rgb(255 255 255 / 100%), white 100%);
}

.presentation-column-1 {
  order: 1 !important;
}

.presentation-column-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  order: 2 !important;
}

.presentation-column-1 .main-image {
    max-width: 600px;
}
}

/* ========= MÓVIL (≤ 767px) ========= */
@media (max-width: 767px) {
.presentation-container {
  display: flex;
  text-align: center;
  gap: 30px;
  padding: 8% 8% 8% 8%;
}

.presentation-column-1 {
  order: 1 !important;
}
.presentation-column-2 {
  order: 2 !important;
}

.presentation-column-1 .main-image {
    max-width: 100%;
}
}

/* Animaciones */
.animate-in {
  animation: none;
}

.presentation-column-1.animate-in {
  animation: fadeInLeft 1.5s ease forwards;
}

.presentation-column-2.animate-in {
  animation: fadeInRight 1.5s ease forwards;
}

.home-presentation.is-style-media-left .presentation-column-1.animate-in {
  animation: fadeInLeft 1.5s ease forwards;
}

.home-presentation.is-style-media-left .presentation-column-2.animate-in {
  animation: fadeInRight 1.5s ease forwards;
}

.home-presentation.is-style-media-right .presentation-column-1.animate-in {
  animation: fadeInRight 1.5s ease forwards;
}

.home-presentation.is-style-media-right .presentation-column-2.animate-in {
  animation: fadeInLeft 1.5s ease forwards;
}

/* En tablets y móviles, ambos elementos vienen de arriba */
@media (max-width: 1024px) {
  .presentation-column-1.animate-in,
  .presentation-column-2.animate-in,
  .home-presentation.is-style-media-left .presentation-column-1.animate-in,
  .home-presentation.is-style-media-left .presentation-column-2.animate-in,
  .home-presentation.is-style-media-right .presentation-column-1.animate-in,
  .home-presentation.is-style-media-right .presentation-column-2.animate-in {
    animation: fadeInUp 1.5s ease forwards !important;
  }
}

/*======================================*/
/* SECCIÓN DE PRESENTACIÓN EMBEBIDA      */ 
/*======================================*/
.embedded-presentation-container{
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  max-width: 1500px;
}

.embedded-presentation-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.9;
}

/*Light blue to medium blue*/
.bg-blue-light.embedded-presentation-overlay{
  background: linear-gradient(90deg, var(--color-light-blue), var(--color-medium-blue));
}

.is-style-content-left .bg-blue-light.embedded-presentation-overlay{
  background: linear-gradient(90deg, var(--color-light-blue) 0%, var(--color-medium-blue) 50%, rgba(255, 255, 255, 0) 100%);
}

.is-style-content-right .bg-blue-light.embedded-presentation-overlay{
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--color-medium-blue) 50%, var(--color-light-blue) 100%);
}

/*Dark blue to medium blue*/
.bg-blue-dark.embedded-presentation-overlay{
  background: linear-gradient(90deg, var(--color-dark-blue), var(--color-medium-blue));
}

.is-style-content-left .bg-blue-dark.embedded-presentation-overlay{
  background: linear-gradient(90deg, var(--color-dark-blue) 0%, var(--color-medium-blue) 50%, rgba(255, 255, 255, 0) 100%);
}

.is-style-content-right .bg-blue-dark.embedded-presentation-overlay{
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--color-medium-blue) 50%, var(--color-dark-blue) 100%);
}

/*Light green to medium green*/
.bg-green-light.embedded-presentation-overlay{
  background: linear-gradient(90deg, var(--color-light-green), var(--color-medium-green));
}

.is-style-content-left .bg-green-light.embedded-presentation-overlay{
  background: linear-gradient(90deg, var(--color-light-green) 0%, var(--color-medium-green) 50%, rgba(255, 255, 255, 0) 100%);
}

.is-style-content-right .bg-green-light.embedded-presentation-overlay{
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--color-medium-green) 50%, var(--color-light-green) 100%);
}

/*Dark green to medium green*/
.bg-green-dark.embedded-presentation-overlay{
  background: linear-gradient(90deg, var(--color-dark-green), var(--color-medium-green));
}

.is-style-content-left .bg-green-dark.embedded-presentation-overlay{
  background: linear-gradient(90deg, var(--color-dark-green) 0%, var(--color-medium-green) 50%, rgba(255, 255, 255, 0) 100%);
}

.is-style-content-right .bg-green-dark.embedded-presentation-overlay{
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--color-medium-green) 50%, var(--color-dark-green) 100%);
}

.embedded-presentation-content{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--color-white);
}

.content-box-small .embedded-presentation-content{
    padding: 1%;
}

.content-box-medium .embedded-presentation-content{
    padding: 3%;
}

.content-box-large .embedded-presentation-content{
    padding: 6%;
}

.is-style-content-left .embedded-presentation-content{
  align-items: flex-start;
  text-align: left;
}

.is-style-content-right .embedded-presentation-content{
  align-items: flex-end;
  text-align: right;
}

.is-style-content-left .embedded-presentation-overlay,
.is-style-content-right .embedded-presentation-overlay{
    opacity: 1;
}

.is-style-content-right .embedded-presentation-content h1,
.is-style-content-right .embedded-presentation-content h2,
.is-style-content-right .embedded-presentation-content h3,
.is-style-content-right .embedded-presentation-content h4,
.is-style-content-right .embedded-presentation-content h5,
.is-style-content-right .embedded-presentation-content h6,
.is-style-content-right .embedded-presentation-content p,
.is-style-content-right .embedded-presentation-content ul{
  margin-right: 0;
}

.is-style-content-left .embedded-presentation-content h1,
.is-style-content-left .embedded-presentation-content h2,
.is-style-content-left .embedded-presentation-content h3,
.is-style-content-left .embedded-presentation-content h4,
.is-style-content-left .embedded-presentation-content h5,
.is-style-content-left .embedded-presentation-content h6,
.is-style-content-left .embedded-presentation-content p,
.is-style-content-left .embedded-presentation-content ul{
  margin-left: 0;
}

.embedded-presentation-content h1,
.embedded-presentation-content h2,
.embedded-presentation-content h3,
.embedded-presentation-content h4,
.embedded-presentation-content h5,
.embedded-presentation-content h6,
.embedded-presentation-content p,
.embedded-presentation-content ul{
  max-width: 50% !important;
  color: var(--color-white);
}

.embedded-presentation-content:not(.is-style-content-left .embedded-presentation-content):not(.is-style-content-right .embedded-presentation-content) h1,
.embedded-presentation-content:not(.is-style-content-left .embedded-presentation-content):not(.is-style-content-right .embedded-presentation-content) h2 {
  max-width: 100% !important;
}

.embedded-presentation-content h3, 
.embedded-presentation-content h4,
.embedded-presentation-content h5,
.embedded-presentation-content h6
 {
  margin-bottom: 20px;
}

.embedded-presentation-content p {
  margin-bottom: 20px;
}

.embedded-presentation-content ul {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin-bottom: 20px;
}

.embedded-presentation-content ul li{
  color: var(--color-white);
  text-align: center;
}

.is-style-content-right .embedded-presentation-content ul {
  justify-content: end;
  direction: rtl;
  margin-right: 20px;
}

.is-style-content-right .embedded-presentation-content ul li {
  margin-right: 0;
  text-align: right;
}

.is-style-content-left .embedded-presentation-content ul {
  justify-content: start;
  margin-left: 20px
}

.is-style-content-left .embedded-presentation-content ul li {
  margin-left: 0;
  text-align: left;
}

/* ========= TABLET (≤ 1024px) ========= */
@media (max-width: 1024px) {

.content-box-small .embedded-presentation-content{
    padding: 3%;
}

.content-box-medium .embedded-presentation-content{
    padding: 5%;
}

.content-box-large .embedded-presentation-content{
    padding: 8%;
}

.embedded-presentation-content h1,
.embedded-presentation-content h2,
.embedded-presentation-content h3,
.embedded-presentation-content h4,
.embedded-presentation-content h5,
.embedded-presentation-content h6,
.embedded-presentation-content p,
.embedded-presentation-content ul {
  max-width: 100% !important;
}
}

/* ========= MÓVIL (≤ 767px) ========= */
@media (max-width: 767px) {

.content-box-small .embedded-presentation-content{
    padding: 5%;
}

.content-box-medium .embedded-presentation-content{
    padding: 8%;
}

.content-box-large .embedded-presentation-content{
    padding: 11%;
}

.bg-blue-light.embedded-presentation-overlay,
.is-style-content-left .bg-blue-light.embedded-presentation-overlay,
.is-style-content-right .bg-blue-light.embedded-presentation-overlay {
  background: radial-gradient(circle at center, var(--color-light-blue), var(--color-medium-blue));
}

.bg-blue-dark.embedded-presentation-overlay,
.is-style-content-left .bg-blue-dark.embedded-presentation-overlay,
.is-style-content-right .bg-blue-dark.embedded-presentation-overlay {
  background: radial-gradient(circle at center, var(--color-dark-blue), var(--color-medium-blue)) !important;
}

.bg-green-light.embedded-presentation-overlay,
.is-style-content-left .bg-green-light.embedded-presentation-overlay,
.is-style-content-right .bg-green-light.embedded-presentation-overlay {
  background: radial-gradient(circle at center, var(--color-light-green), var(--color-medium-green));
}

.bg-green-dark.embedded-presentation-overlay,
.is-style-content-left .bg-green-dark.embedded-presentation-overlay,
.is-style-content-right .bg-green-dark.embedded-presentation-overlay {
  background: radial-gradient(circle at center, var(--color-dark-green), var(--color-medium-green)) !important;
}

.embedded-presentation-overlay,
.is-style-content-left .embedded-presentation-overlay,
.is-style-content-right .embedded-presentation-overlay{
    opacity: 0.9;
}

.is-style-content-left .embedded-presentation-content,
.is-style-content-right .embedded-presentation-content{
  align-items: center;
  text-align: center;
}

.is-style-content-right .embedded-presentation-content ul {
  direction: ltr;
}

.is-style-content-right .embedded-presentation-content ul li {
  margin-right: auto;
  text-align: center;
}

.is-style-content-left .embedded-presentation-content ul li {
    margin-left: auto;
    text-align: center;
}
}

/* Animaciones */
.embedded-presentation-container.animate-in {
  animation: fadeInUp 1.5s ease forwards;
}

/*======================================*/
/* ENCABEZADO Y OPCIONES DE LOS BLOQUES */
/*======================================*/
.block-contents-global-header{
    position: sticky;
    top: 95px;
    z-index: 998;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    transform: translateY(0);
    margin-top: 2%;
}

.block-contents-global-header.hide {
  opacity: 0;           
  transform: translateY(-10px);
  pointer-events: none;
}

.block-contents-header-section {
  background: var(--color-white);
}

.block-contents-header-section.block-contents-header-section--gray {
    background: var(--color-light-gray);
}

.block-contents-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1500px;
  padding: 3% 3% 1% 3%;
  margin: auto;
}

.block-contents-global-header .block-contents-header{
  padding-top: 1% ;
}

.block-content-options-section {
  background-color: var(--color-white);
  position: sticky;
  top: 95px;
  z-index: 998;
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 1;
  transform: translateY(0);
}

.block-content-options-section.block-content-options-section--gray {
    background-color: var(--color-light-gray);
}

.block-content-options-section.hide {
  opacity: 0;           
  transform: translateY(-10px);
  pointer-events: none;
}

.block-content-options {
  max-width: 1500px;
  padding: 1% 3%;

  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: stretch; 
  min-width: 100%;
  flex-wrap: wrap;
  overflow: hidden;
}

.block-content-option.btn {
  white-space: normal; 
  max-width: 300px;
  display: flex;
  height: auto; 
  min-height: 52px;
  justify-content: center;
  text-align: center;
}

.block-content-btn-texts{
    align-items: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.block-content-btn-subtitle{
    font-weight: 300;
    font-size: 14px;
}

/* ========= TABLET (≤ 1024px) ========= */
@media (max-width: 1024px) {
.block-contents-global-header{
    top: 0;
    margin-top: 3%;
}

.block-content-options-section {
  top: 0px;
}

.block-contents-header {
  padding: 5% 5% 1% 5%;
}

.block-contents-global-header .block-contents-header{
  padding-top: 2% ;
}

.block-content-options {
    padding: 2% 5%;
}

.block-content-option.btn {
  min-height: 46px;
}
.block-content-btn-subtitle{
    font-size: 13px;
}
}

/* ========= MÓVIL (≤ 767px) ========= */
@media (max-width: 767px) {
.block-contents-global-header{
    top: 0;
    margin-top: 5%;
}

.block-content-options-section {
  top: 0px;
}

.block-contents-header {
  padding: 8% 8% 2% 8%;
}

.block-contents-global-header .block-contents-header{
  padding-top: 3% ;
}

.block-content-options {
    padding: 3% 8%;
}

.block-content-option.btn {
  min-height: 40px;
  width: 100%;
}

.block-content-btn-subtitle{
    font-size: 12px;
}
}

/*======================================*/
/* SECCIÓN DE LOS BLOQUES     */
/*======================================*/

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

.block-content-section.block-content-section--gray {
    background: var(--color-light-gray);    
}

.block-content-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  padding: 2% 3%;
  align-items: start;
  gap: 60px;
}

.block-content-section:not(:has(~ .block-content-section))
  .block-content-container {
  padding-bottom: 5%;
}

.block-content-container > :nth-child(1) {
  order: 1;
}

.block-content-container > :nth-child(2) {
  order: 2;
}

.block-content-container.block-content-media-left > :nth-child(1) {
  order: 2;
}

.block-content-container.block-content-media-left > :nth-child(2){
  order: 1;
}

.block-content-column-1 {
  flex: 1;
}

.block-content-column-1 h3, 
.block-content-column-1 h4,
.block-content-column-1 h5,
.block-content-column-1 h6 {
  margin-bottom: 20px;
}

.block-content-column-1 p {
  text-align: justify;
  margin-bottom: 20px;
}

.block-content-column-2 {
  flex: 1;
  position: static;
  top: 120px;
}

.block-content-column-2 img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

/* ========= TABLET (≤ 1024px) ========= */
@media (max-width: 1024px) {
.block-content-container {
  display: flex;
  flex-direction: column;
  padding: 3% 5%;
  gap: 30px;
}

.block-content-section:not(:has(~ .block-content-section))
  .block-content-container {
  padding-bottom: 8%;
}

.block-content-container.block-content-media-left > :nth-child(1), 
.block-content-container.block-content-media-right > :nth-child(1) {
  order: 2;
}

.block-content-container.block-content-media-left > :nth-child(2),
.block-content-container.block-content-media-right > :nth-child(2){
  order: 1;
}

.block-content-column-2 {
  flex: 1;
  position: static;
  top: 0px;
}
}

/* ========= MÓVIL (≤ 767px) ========= */
@media (max-width: 767px) {
.block-content-container {
  padding: 5% 8%;
}
.block-content-section:not(:has(~ .block-content-section))
  .block-content-container {
  padding-bottom: 11%;
}
}

/* Animaciones */
.block-content-column-1.animate-in {
  animation: fadeInLeft 1.5s ease forwards;
}

.block-content-column-2.animate-in {
  animation: fadeInLeft 1.5s ease forwards;
}

.block-content-container.block-content-media-left .block-content-column-1.animate-in {
  animation: fadeInRight 1.5s ease forwards;
}

.block-content-container.block-content-media-left .block-content-column-2.animate-in {
  animation: fadeInLeft 1.5s ease forwards;
}

.block-content-container.block-content-media-right .block-content-column-1.animate-in {
  animation: fadeInLeft 1.5s ease forwards;
}

.block-content-container.block-content-media-right .block-content-column-2.animate-in {
  animation: fadeInRight 1.5s ease forwards;
}

@media (max-width: 1024px) {
  .block-content-column-1.animate-in,
  .block-content-column-2.animate-in,
  .block-content-container.block-content-media-left .block-content-column-1.animate-in,
  .block-content-container.block-content-media-left .block-content-column-2.animate-in,
  .block-content-container.block-content-media-right .block-content-column-1.animate-in,
  .block-content-container.block-content-media-right .block-content-column-2.animate-in {
    animation: fadeInUp 1.5s ease forwards !important;
  }
}

/* ============================= */
/* CARDS EMBEBIDAS */
/* ============================= */
.embedded-cards-section {
  background-color: var(--color-white);
  overflow: hidden;
  max-width: 1500px;
  padding: 3% 3% 3% 3%;
  margin-left: auto;
  margin-right: auto;
}

.embedded-cards-container {
  margin: 0 auto;
  background: linear-gradient(90deg, var(--color-medium-blue) 0%, var(--color-dark-blue) 100%);
  border-radius: 30px;
  padding: 3% 3% 3% 3%;
  align-items: center;
}

.embedded-cards-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.embedded-cards-header h2 {
  color: var(--color-white);
}

.embedded-cards-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 30px;
  justify-content: center;
  padding: 0;
}

.embedded-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 0 0 220px; 
  max-width: 300px; 
}

.embedded-card.embedded-card--medium {
  flex: 0 0 190px; 
  max-width: 260px; 
}

.embedded-card.embedded-card--small {
  flex: 0 0 150px; 
  max-width: 220px; 
}

.embedded-card img {
  width: 70px;
  height: 70px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.embedded-card:hover img{
  transform: translateY(-5px);
}

.embedded-card p {
  color: var(--color-white);
}

/* ========= TABLET (≤ 1024px) ========= */
@media (max-width: 1024px) {
.embedded-cards-section {
  padding: 5% 5% 5% 5%;
}

.embedded-cards-container {
  padding: 5% 5% 5% 5%;
}

.embedded-cards-grid {
  gap: 30px 25px;
}

.embedded-card img {
  width: 60px;
  height: 60px;
}

.embedded-card.embedded-card--medium {
  flex: 0 0 180px; 
  max-width: 240px; 
}

.embedded-card.embedded-card--small {
  flex: 0 0 140px; 
  max-width: 200px; 
}
}

/* ========= MÓVIL (≤ 767px) ========= */
@media (max-width: 767px) {
.embedded-cards-section {
  padding: 8% 8% 8% 8%;
}

.embedded-cards-container {
  padding: 8% 8% 8% 8%;
}

.embedded-cards-header {
  margin-bottom: 15px;
}

.embedded-cards-grid {
  gap: 25px 20px;
}

.embedded-card img {
  width: 50px;
  height: 50px;
}

.embedded-card.embedded-card--medium {
  flex: 0 0 170px; 
  max-width: 220px; 
}

.embedded-card.embedded-card--small {
  flex: 0 0 130px; 
  max-width: 180px; 
}
}

/* Animaciones */
.embedded-card {  
  --visibility-progress: 0;
  opacity: var(--visibility-progress);
  transform: translateY(calc(30px * (1 - var(--visibility-progress))));
  transition: opacity 0.1s linear, transform 0.1s linear;
}

.embedded-card.animate-in {
  --visibility-progress: 1;
}

/*======================================*/
/* LOADER                               */
/*======================================*/
.loader {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  justify-content: center;
  color: var(--color-dark-gray);
}

.loader.loader--white{
    color: var(--color-white);
}

.loader i {
  font-size: 2rem;
}

/*======================================*/
/* TYPEAHEAD                             */
/*======================================*/
.typeahead-container {
  position: relative;
  width: 100%;
}

.typeahead-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 5px 5px;
  background: white;
  z-index: 1000;
}

.typeahead-options li {
  padding: 5px 10px;
  cursor: pointer;
}

.typeahead-options li:hover,
.typeahead-options li.selected {
  background-color: #f0f0f0;
}

/*======================================*/
/* DESTACAR BUSQUEDA                    */
/*======================================*/

.block-content-section{
  transition: background-color 0.4s ease;
}

.block-content-section.highlight{
  background-color: var(--color-highlight);
}