/* ========================================================================== */
/* Variables                                                                  */
/* ========================================================================== */
:root{
  --bg: #1d1d1b;
  --accent: #1F4177;
  --text: #F9F8F8;
  --muted: #bfbfbf;
  --navbar-height: 93px;
  --logo-max-height: 56px;
  --global-margin-left: 1rem;
  --global-margin-right: 1rem;
  --page-padding-x: clamp(1rem, 2vw + 0.5rem, 2.5rem);
  --layout-max-width: 1400px;
  --section-gap: clamp(1.25rem, 3vw, 2.5rem);
}

/* ========================================================================== */
/* Base Styles                                                                */
/* ========================================================================== */
*, *::before, *::after{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html{
  scroll-behavior: smooth;
}

html, body{
  height: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

main#app-root{
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ========================================================================== */
/* Typography                                                                 */
/* ========================================================================== */
@font-face {
  font-family: 'Barlow';
  src: local('Barlow Bold'),
       local('Barlow-Bold'),
       url('/Content/fuentes/Barlow-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: 'Poppins';
  src: local('Poppins Regular'),
       local('Poppins-Regular'),
       url('/Content/fuentes/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}





/* ========================================================================== */
/* Layout Utilities                                                           */
/* ========================================================================== */
.layout-container{
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding-left: var(--page-padding-x);
  padding-right: var(--page-padding-x);
}

/* ========================================================================== */
/* Navbar                                                                     */
/* ========================================================================== */
.container-fluid{
  position: relative;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  height: var(--navbar-height);
  padding: 0 var(--page-padding-x);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  will-change: transform;
  transition: transform 200ms ease-in-out, box-shadow 200ms ease-in-out;
  overflow: visible;
}

.navbar.nav--hidden{
  transform: translateY(-100%);
}

.navbar.nav--shadow{
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.navbar-brand{
  position: static;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
}

.navbar-brand img{
  display: block;
  max-height: calc(var(--navbar-height) - 20px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-left: -2rem;
  filter: invert(100%);
}

.navbar-collapse{
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.navbar-nav{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: var(--global-margin-left) var(--global-margin-right);
  margin-left: auto;
}

.nav-item{ display: block; }

.nav-link{
  color: var(--text) !important;
  font-family: 'Poppins';
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  padding: 0.5rem 0.75rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover,
.nav-link:focus{
  color: #dbeeff !important;
  text-decoration: underline;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
}

.nav-link.button{
  transition: transform 0.3s ease, color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.nav-link.button:hover,
.nav-link.button:focus{
  transform: scale(1.05);
}

.nav-link.button:hover .button-link,
.nav-link.button:focus .button-link{
  color: #ffffff !important;
}

.dropdown-menu{
  background: #1e3d69;
  border: 0;
  min-width: 12rem;
}

.dropdown-item{
  color: var(--text);
}

.dropdown-item:hover{
  background: rgba(255,255,255,0.03);
}

.bg-body-tertiary{
  background-color: var(--accent) !important;
}

/* ========================================================================== */
/* Buttons                                                                    */
/* ========================================================================== */
.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 50px;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background-color: #ffffff;
  color: #1F4177 !important;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.button-icon{
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.button:hover,
.button:focus{
  background-color: #7e7e7e;
  color: var(--text) !important;
  text-decoration: none;
}

.button.button--outline{
  background-color: transparent;
  border: 1px solid #4fce5d;
  color: #4fce5d !important;
}

.button.button--outline:hover,
.button.button--outline:focus{
  background-color: rgba(79,206,93,0.12);
  color: #4fce5d !important;
}

.button-link{
  text-decoration: none;
  color: #1f4177 !important;
}

.button-link:hover,
.button-link:focus{
  color: #ffffff !important;
  text-decoration: none;
}

/* ========================================================================== */
/* Carousel                                                                   */
/* ========================================================================== */
.carousel-wrapper{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(2rem, 5vw, 6rem);
  width: 100%;
  padding: var(--section-gap) 0;
  flex-wrap: wrap;
}

.carousel-container{
  position: relative;
  width: 100%;
  margin-top: 2rem;
  overflow: hidden;
}

.carousel-texto{
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  font-weight: bold;
  text-align: center;
  color: #fff;
  z-index: 901;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  font-family: 'Barlow', sans-serif;
  pointer-events: none;
  animation: aparecer 1s ease-out;
}

.slider{
  width: 100%;
  max-width: 100%;
  height: clamp(260px, 45vw, 500px);
  overflow: hidden;
  border-radius: 10px;
}

.slider ul{
  display: flex;
  padding: 0;
  width: 400%;
  /* animation: slide 8s linear infinite alternate; */
}

.slider li{
  flex-shrink: 0;
  width: 25%;
  list-style: none;
}

.slider img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.slider li:first-child img{
  filter: brightness(0.3);
}

/* Horario cartel */
.horario-cartel{
  position: absolute;
  top:  60%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 18px 36px;
  border-radius: 15px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: bold;
  text-align: center;
  color: #fff;
  z-index: 900;
  pointer-events: none;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  transition: background-color 0.5s;
  animation: caer 1s ease-out;
}

.horario-cartel.abierto{ background-color: rgba(0, 200, 83, 0.6); }
.horario-cartel.cerrado{ background-color: rgba(213, 0, 0, 0.6); }

/* ========================================================================== */
/* Home Sections                                                              */
/* ========================================================================== */
.about-us-wrapper,
.intro-wrapper,
.map-wrapper{
  display: flex;
  justify-content: center;
  padding: var(--section-gap) var(--page-padding-x);
}

.about-us-wrapper{ margin-top: 2rem; }
.map-wrapper{ margin-top: 2rem; }

.about-us-box,
.intro-box,
.map-box{
  width: 100%;
  max-width: var(--layout-max-width);
  border-radius: 12px;
  padding: clamp(1.25rem, 2vw + 0.5rem, 2rem);
}

.about-us-box{
  background: #fff;
  color: var(--bg);
}

.intro-box,
.map-box{
  background: rgba(255,255,255,0.04);
}

.map-box{
  border: 1px solid var(--muted);
}

.about-us-title,
.intro-title,
.map-title{
  font-family: 'Barlow', sans-serif;
}

.about-us-title,
.intro-title{ margin-bottom: 0.5rem; }

.map-title{ margin-bottom: 0.25rem; }

.about-us-text,
.intro-text,
.map-subtitle{ color: var(--muted); }

.map-subtitle{ margin-bottom: 2rem; }

.row.row-cols-1.row-cols-md-3.g-4{
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding: var(--section-gap) var(--page-padding-x);
  max-width: var(--layout-max-width);
}

.card-body{ text-align: center; }

.card-img-top{
  display: block;
  margin: 0 auto;
  width: 60%;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
}

.map-content{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}

.map-right{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
  border-radius: 10px;
}

.map-info p{ margin-bottom: 0.25rem; }

.map-iframe-wrap{
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  border-radius: 10px;
}

.map-iframe-wrap iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-cta{
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.phone-link{
  text-decoration: none;
  color: var(--text) !important;
}

/* ========================================================================== */
/* Work Section                                                               */
/* ========================================================================== */
.work-wrapper{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(2rem, 5vw, 6rem);
  width: 100%;
  padding: var(--section-gap) 0;
  flex-wrap: wrap;
}

.work-box{
  flex: 1 1 420px;
  width: min(100%, 600px);
  height: clamp(380px, 50vw, 650px);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  transition: filter 0.3s ease;
}

@media (hover: hover) {
  .work-wrapper:hover .work-box:not(:hover){
    filter: grayscale(100%) blur(4px);
  }
}

.work-box img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.work-box:hover img{ transform: scale(1.05); }

.work-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.work-text{
  margin: 0;
  color: var(--text);
  text-align: center;
  font-family: 'Barlow', sans-serif;
  line-height: 1;
  transition: transform 0.3s ease;
}

.text-top{
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: -0.5rem;
  transition: transform 0.5s ease, font-size 0.3s ease;
}

.text-bottom{
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  transition: transform 0.5s ease, font-size 0.3s ease;
}

.work-box:hover .text-top{ transform: scale(1.7); }
.work-box:hover .text-bottom{
  transform: scale(2.5);
  margin-top: 1rem;
}

/* ========================================================================== */
/* Service Pages                                                              */
/* ========================================================================== */
.service-hero{
  padding: calc(var(--section-gap) * 1.6) var(--page-padding-x);
  background-image:
    linear-gradient(135deg, rgba(31,65,119,0.75), rgba(0,0,0,0.82)),
    url("/Content/Patrones/Patron-N2-Editable.png");
  background-size: cover, 2500px;
  background-repeat: no-repeat, repeat;
  background-position: center, center;
}

.service-hero--blog{
  padding: calc(var(--section-gap) * 2) var(--page-padding-x);
  background-image:
    linear-gradient(135deg, rgba(31,65,119,0.75), rgba(0,0,0,0.82)),
    url("/Content/Patrones/Patron-N1.png");
  background-size: cover, 2000px;
  background-repeat: repeat;
  background-position: center, center;
}

.service-hero--about{
  padding: calc(var(--section-gap) * 2) var(--page-padding-x);
  background-image:
    linear-gradient(135deg, rgba(31,65,119,0.75), rgba(0,0,0,0.82)),
    url("/Content/Patrones/Patron-N2-Editable.png");
  background-size: cover, 2500px;
  background-repeat: no-repeat, repeat;
  background-position: center, center;
}

.service-hero__wrapper{
  max-width: var(--layout-max-width);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.service-hero__content{ max-width: 720px; }

.service-hero__eyebrow{
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.service-hero__title{
  font-family: 'Barlow', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 1rem;
}

.service-hero__text{
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(249,248,248,0.85);
}

.service-hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.service-section{
  padding: var(--section-gap) var(--page-padding-x);
}

.service-wrapper{
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
}

.service-section__title{
  font-family: 'Barlow', sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.service-section__subtitle{
  max-width: 760px;
  margin-bottom: 2rem;
  color: var(--muted);
}

.service-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.service-card__img{
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.22);
}

.service-card:hover{
  transform: translateY(-6px);
  border-color: var(--accent);
  background: rgba(31,65,119,0.15);
}

.service-card__title{
  font-family: 'Barlow', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card__text{
  line-height: 1.5;
  color: var(--muted);
}

/* ========================================================================== */
/* About Section                                                              */
/* ========================================================================== */
.about-content{
  margin-top: 2.5rem;
}

.about-text{
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-subtitle{
  font-family: 'Barlow', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.75rem;
  color: var(--text);
}

.about-text p{
  line-height: 1.7;
  color: var(--muted);
  font-size: 1.05rem;
}

.service-cta{
  padding: var(--section-gap) var(--page-padding-x);
}

.service-cta__box{
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw + 1rem, 3rem);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.service-cta__title{
  font-family: 'Barlow', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.service-cta__text{
  max-width: 640px;
  line-height: 1.6;
  color: var(--muted);
}

.service-cta__actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ========================================================================== */
/* Blog Page                                                                  */
/* ========================================================================== */
.blog-wrapper{
  display: flex;
  justify-content: center;
  padding: var(--section-gap) var(--page-padding-x);
}

.blog-post{
  width: 100%;
  max-width: clamp(92rem, 70vw, 62rem);
  padding: clamp(1.25rem, 2vw + 0.5rem, 2rem);
  text-align: left;
}

.blog-post__header{
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.blog-post__tag{
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  background: rgba(18, 142, 250, 0.14);
  color: #49a6ff;
}

.blog-post__title{
  font-family: 'Barlow', sans-serif;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.15;
}

.blog-post__meta{
  font-size: 0.95rem;
  color: var(--muted);
}

.blog-post p{
  color: rgba(255,255,255,0.86);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.blog-post ul{
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.6rem;
}

.blog-post li{
  color: rgba(255,255,255,0.8);
}

.blog-post__quote{
  margin: 1.5rem 0;
  padding: 1.5rem;
  border-left: 4px solid #49a6ff;
  background: rgba(73,166,255,0.08);
  border-radius: 12px;
  font-style: italic;
}

.blog-post__summary{
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.blog-post__summary h3{
  margin-bottom: 1rem;
}

.blog-post__image{
  margin: 0.5rem 0 1.25rem;
  display: flex;
  justify-content: flex-start;
}

.blog-post__image-img{
  width: 100%;
  max-width: 760px;
  aspect-ratio: 19 / 9;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.blog-related{
  display: flex;
  justify-content: center;
  padding: var(--section-gap) var(--page-padding-x);
}

.blog-related__wrapper{
  width: 100%;
  max-width: var(--layout-max-width);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-related__heading{
  font-family: 'Barlow', sans-serif;
}

.blog-related__grid{
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.blog-related__card{
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-related__card-image{
  flex-shrink: 0;
  width: 280px;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
}

.blog-related__card-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-related__card-content{
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-related__card:hover,
.blog-related__card:focus-within{
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13,18,33,0.2);
}

.blog-related__tag{
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-related__title{
  font-family: 'Barlow', sans-serif;
  margin-bottom: 0.85rem;
  font-size: 1.3rem;
}

.blog-related__excerpt{
  color: rgba(255,255,255,0.72);
  margin-bottom: 1.25rem;
}

.blog-related__link{
  font-weight: 600;
  color: #49a6ff;
  text-decoration: none;
}

.blog-related__link:hover,
.blog-related__link:focus{
  text-decoration: underline;
}

.blog-cta{
  display: flex;
  justify-content: center;
  padding: calc(var(--section-gap) * 1.5) var(--page-padding-x);
}

.blog-cta__box{
  width: 100%;
  max-width: clamp(44rem, 68vw, 58rem);
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(135deg, rgba(73,166,255,0.25), rgba(48,97,234,0.2));
  border: 1px solid rgba(94,140,255,0.4);
  text-align: center;
  box-shadow: 0 28px 60px rgba(32,70,138,0.22);
}

.blog-cta__title{
  font-family: 'Barlow', sans-serif;
  font-size: clamp(1.9rem, 2.5vw, 2.4rem);
  margin-bottom: 1rem;
}

.blog-cta__text{
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.blog-cta__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ========================================================================== */
/* Footer                                                                    */
/* ========================================================================== */
footer{
  text-align: center;
  padding: 1rem var(--page-padding-x);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ========================================================================== */
/* Animations                                                                 */
/* ========================================================================== */
@keyframes aparecer{
  from{
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to{
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes caer{
  from{
    transform: translate(-50%, -150px);
    opacity: 0;
  }
  to{
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

@keyframes slide{
  0%{ margin-left: 0; }
  20%{ margin-left: 0; }
  25%{ margin-left: -100%; }
  45%{ margin-left: -100%; }
  50%{ margin-left: -200%; }
  70%{ margin-left: -200%; }
  75%{ margin-left: -300%; }
  100%{ margin-left: -300%; }
}

/* ========================================================================== */
/* Responsive                                                                */
/* ========================================================================== */
@media (min-width: 1201px){
  /* Aumentar solo textos de contenido, NO títulos ni navbar */
  html, body{
    font-size: 18px;
  }
  
  .service-hero__text{
    font-size: 1.25rem;
  }
  
  .service-section__subtitle{
    font-size: 1.15rem;
  }
  
  .about-text p{
    font-size: 1.2rem;
  }
  
  .service-card__text{
    font-size: 1.1rem;
  }
  
  .service-cta__text{
    font-size: 1.15rem;
  }
  
  .blog-post__meta{
    font-size: 1.05rem;
  }
  
  .blog-post p{
    font-size: 1.1rem;
  }
  
  .blog-post li{
    font-size: 1.05rem;
  }
  
  .blog-cta__text{
    font-size: 1.1rem;
  }
  
  .blog-related__excerpt{
    font-size: 1.05rem;
  }
  
  .blog-related__date{
    font-size: 0.95rem;
  }
  
  .map-info p{
    font-size: 1.1rem;
  }
  
  .map-subtitle{
    font-size: 1.1rem;
  }
  
  .phone-link{
    font-size: 1.15rem;
  }
  
  .intro-text,
  .about-us-text{
    font-size: 1.15rem;
  }
  
  .card-text{
    font-size: 1.05rem;
  }
  
  footer{
    font-size: 0.95rem;
  }
  
  p{
    font-size: 1.1rem;
  }
}

@media (max-width: 1200px){
  .slider{ height: clamp(240px, 40vw, 420px); }
  .carousel-texto{ top: 32%; }
  .work-box{ height: clamp(360px, 45vw, 560px); }
}

@media (max-width: 992px){
  .map-content{ grid-template-columns: 1fr; }
  .map-iframe-wrap{
    min-height: 360px;
    padding-top: 65%;
  }
  .map-cta{ gap: 1.25rem; }
  .row.row-cols-1.row-cols-md-3.g-4{
    padding: calc(var(--section-gap) * 0.8) var(--page-padding-x);
  }
  .carousel-texto{ font-size: clamp(1.8rem, 5vw, 2.4rem); }
  .service-hero__wrapper{ text-align: center; }
  .service-hero__actions{ justify-content: center; }
  .service-section__subtitle{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .service-cta__box{
    padding: clamp(1.25rem, 4vw + 1rem, 2.5rem);
  }
  .blog-related__grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px){
  .container-fluid{
    height: auto;
    min-height: var(--navbar-height);
    padding: 0.5rem 1rem;
    overflow: visible;
  }

  .navbar-brand{
    position: static;
    left: auto;
    transform: none;
    padding-left: 0.5rem;
  }

  .navbar-brand img{ 
    max-height: 40px;
    margin-left: 0;
  }

  .navbar-toggler{
    margin-left: auto;
    z-index: 3;
  }

  .navbar-collapse{
    width: 100%;
    margin-top: 0.5rem;
    position: relative;
    transition: opacity 180ms ease-out, transform 180ms ease-out;
    overflow: visible;
  }

  .navbar-collapse.collapse{
    opacity: 0;
    transform: translateY(-6px);
    height: 0;
    overflow: hidden;
    display: none;
  }

  .navbar-collapse.show,
  .navbar-collapse.collapsing{
    display: flex !important;
    justify-content: center;
    align-items: center;
    opacity: 1 !important;
    transform: translateY(0) !important;
    height: auto !important;
    overflow: visible !important;
  }

  .collapsing{
    height: auto !important;
    transition: none !important;
  }

  .navbar-nav{
    margin: 0;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-link{
    font-size: 15px;
    padding: 0.9rem 0.6rem;
    text-align: center;
  }

  .nav-link.button{
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .carousel-container{
    margin-top: 0.5rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
  }

  .slider{ height: 200px; }
  .slider ul{ width: 400%; }
  .slider li{ width: 25%; }

  .carousel-texto{
    top: 30%;
    font-size: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
  }

  .horario-cartel{
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    margin: 1rem auto;
    padding: 12px 20px;
    font-size: 1rem;
    z-index: auto;
    width: calc(100% - 2rem);
    max-width: 500px;
    display: block;
    pointer-events: auto;
  }

  .button-link{
    min-width: none;
    max-width: fit-content;
  }

  .carousel-wrapper{ display: flex; flex-direction: column; }
  .carousel-container{ margin-bottom: 0; }
  
.carousel-container .hero-actions--carousel {
  position: absolute;
  top: 90px;               /* ajustable */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 20;
}

.carousel-container .slider {
  position: relative;
  z-index: 1;
}

.carousel-container .hero-actions--carousel {
  z-index: 20;
}



  .map-content{ grid-template-columns: 1fr; }
  .map-cta{
    flex-wrap: nowrap;
    justify-content: center;
    gap: clamp(1rem, 3vw, 1.5rem);
  }

  .work-wrapper{
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: var(--section-gap) 0;
  }

  .work-box{
    width: 100%;
    max-width: 500px;
    height: auto;
    min-height: 320px;
  }

  .work-text{
    width: 100%;
    max-width: 100%;
  }

  .service-section__title{ text-align: center; }
  .service-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .service-cta__text{ text-align: center; }
}

@media (max-width: 600px){
  .navbar-brand img{ max-height: 34px; }
  .button{ width: 100%; }
  .carousel-texto{
    top: 28%;
    font-size: clamp(1.35rem, 6vw, 1.8rem);
  }
  .horario-cartel{
    width: 100%;
    max-width: none;
  }
  .about-us-box,
  .intro-box,
  .map-box{ padding: 1rem; }
  .row.row-cols-1.row-cols-md-3.g-4{
    padding: 1rem var(--page-padding-x);
  }
  .card-img-top{ width: 70%; }
  .map-iframe-wrap{
    min-height: 260px;
    padding-top: 70%;
  }
  .map-right{ padding: 0.75rem 0.5rem; }
  .map-cta{
    gap: 0.75rem;
    flex-wrap: nowrap;
  }
  .map-cta .button{
    width: auto;
    min-width: 140px;
    flex: 1 1 auto;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    white-space: nowrap;
  }
  footer{ font-size: 0.8rem; }
  .service-grid{ grid-template-columns: 1fr; }
  .service-hero{
    padding: calc(var(--section-gap) * 1.2) var(--page-padding-x);
  }
  .service-hero__actions .button,
  .service-cta__actions .button{
    width: auto;
    min-width: 140px;
    flex: 1 1 auto;
  }
}

@media (max-width: 538px){ /* maintain original behavior if needed */ }

@media (max-width: 480px){ /* placeholder for future tweaks */ }

@media (max-width: 400px){ /* placeholder for future tweaks */ }

@media (min-width: 576px){
  .map-iframe-wrap{ min-height: 420px; }
}

@media (min-width: 992px){
  .map-iframe-wrap{
    min-height: 560px;
    padding-top: 60%;
  }
}

@media (max-width: 768px){
  .blog-post{
    padding: 1.5rem;
  }

  .blog-related__grid{
    grid-template-columns: 1fr;
  }

  .blog-related__card{
    flex-direction: column;
  }

  .blog-related__card-image{
    width: 100%;
    height: 220px;
  }

  .blog-cta__actions .button{
    width: 100%;
    justify-content: center;
  }
}