html {
  scroll-behavior: smooth;
}
/* DOSERRE Color Palette CSS Variables */
:root {
  /* Primary Colors */
  --primary-dark: #28293eff;        /* Main background color */
  --accent-blue: #256cdcff;         /* Primary accent for buttons, links, highlights */
  --accent-gray: #5c6f8bff;         /* Secondary accent for overlays, borders */
  --accent-purple: #6a4289ff;       /* Tertiary accent */
  
  /* Supporting Colors */
  --accent-teal: #1aab95ff;         /* Success states, positive actions */
  --accent-cyan: #5ce6d1ff;         /* Light accents, hover states */
  --accent-yellow: #ffc000ff;       /* Warning states, notifications */
  --accent-pink: #ee9595ff;         /* Soft accents */
  --accent-red: #e34f4fff;          /* Error states, alerts */
  
  /* Text Colors */
  --copy-text: #151515;             /* Dark text for light backgrounds */
  --light-text: #ffffff;            /* White text for dark backgrounds */
  --muted-text: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
}

/* Usage Examples */

/* Main backgrounds */
.main-background {
  background-color: var(--primary-dark);
}
a {
  text-decoration: none;
}
/* Primary buttons and CTAs */
.primary-button {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #1e5cc7 100%);
  color: var(--light-text);
}

.primary-button:hover {
  background: linear-gradient(135deg, #1e5cc7 0%, #1650b3 100%);
}

/* Secondary buttons */
.secondary-button {
  background: var(--accent-teal);
  color: var(--light-text);
}

.secondary-button:hover {
  background: #148a7a;
}

/* Navigation elements */
.navbar {
  background: var(--primary-dark);
}


.nav-link:hover {
  color: var(--accent-blue);
}

/* Text styles */
.main-text {
  color: var(--muted-text);
}

.heading-text {
  color: var(--light-text);
}

.accent-text {
  color: var(--accent-cyan);
}

/* Cards and containers */
.card-background {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Borders and dividers */
.accent-border {
  border-color: var(--accent-blue);
}

/* Status indicators */
.success {
  color: var(--accent-teal);
}

.warning {
  color: var(--accent-yellow);
}

.error {
  color: var(--accent-red);
}

/* Logo styling */
.logo-accent {
  background: var(--light-text);
  color: var(--primary-dark);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--copy-text);
}

h2, p {
color: white;
font-family: 'Inter', sans-serif;
}

.main-container {
  background: var(--primary-dark);
}

/* Navigation Styles */
.navbar {
  background: rgba(47, 44, 63, 0.95);
  position: fixed;
  top: 0;
  left: 0;
  right: -1rem;
  z-index: 1000;
  height: 100px;
  display: flex;
  align-items: center;
}

.navbar-brand {
  color: white !important;
  font-weight: 700;
  font-size: 2.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-2r {
  background: var(--accent-red);
  color: var(--subtle-blue);
  padding: 5px 10px;
  font-weight: 800;
  font-size: 1.8rem;
  border-radius: 3px;
}

.logo-img {
  max-width: 9rem;
  margin-top: 3px;
}
.navbar-toggler {
  border: 2px solid white;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.navbar-nav .nav-link {
  color: var(--bs-dark-bg-subtle) !important;
  font-weight: 400;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-red) !important;
}

.navbar-collapse {
  backdrop-filter: blur(10px);
  border-radius: 10px 0 0 10px;
  margin-top: 10px;
  padding: 15px;
}

/* Content Sections */
.content-wrapper {
  
  padding-top: 6rem;
}

.slider-section {
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: var(--primary-dark);
  margin-top: -2px;
}

.carousel-container {
  width: 100%;
  max-width: 100%;
  height: 85vh;
  position: relative;
}

.carousel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
  transition: all 0.3s ease;
}

.carousel-item:hover::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.carousel-item.active {
  transform: translateX(0);
  opacity: 1;
  position: relative;
}

.carousel-item.carousel-item-next,
.carousel-item.carousel-item-prev {
  position: absolute;
  top: 0;
}

.carousel-item.carousel-item-next:not(.carousel-item-start) {
  transform: translateX(100%);
}

.carousel-item.carousel-item-prev:not(.carousel-item-end) {
  transform: translateX(-100%);
}

.carousel-item.carousel-item-next.carousel-item-start,
.carousel-item.carousel-item-prev.carousel-item-end {
  transform: translateX(0);
}

.carousel-item.carousel-item-start,
.carousel-item.carousel-item-end {
  transition-duration: 0.8s;
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Background images for each slide */
.carousel-item:nth-child(1) {
  background-image: url(./images/1rafoto.jpg);
  background-size: cover;
}

.carousel-item:nth-child(2) {
  background-image: url(./images/slider-que-hacemos.jpeg);
  background-size: cover;
}

.carousel-item:nth-child(3) {
  background-image: url(./images/slider-3.jpeg);
  background-size: contain;
}

.slide-content {
  position: relative;
  z-index: 2;
  transform: translateY(20px);
  opacity: 0;
  animation: slideInUp 1s ease-out 0.3s forwards;
}

@keyframes slideInUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.carousel-item.active .slide-content {
  animation: slideInUp 1s ease-out 0.3s forwards;
}

.carousel-item:not(.active) .slide-content {
  transform: translateY(20px);
  opacity: 0;
  animation: none;
}

.slide-content h2 {
  color: var(--bs-dark-bg-subtle)!important;
  font-weight: 400;
  text-transform: uppercase;
  /*text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);*/
  letter-spacing: 2px;
  background: var(--light-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  }
  to {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
  }
}

.slide-content p {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 35px;
  line-height: 1.7;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 200;
}

.cta-button {
  background: linear-gradient(135deg, var(--accent-red) 0%, #c73e41 100%);
  color: white;
  padding: 7px 23px;
  border: none;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.7rem;
  box-shadow: 0 8px 25px rgba(229, 78, 81, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  background: linear-gradient(135deg, #d43e41 0%, #b73538 100%);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(229, 78, 81, 0.6);
}

.cta-button:active {
  transform: translateY(-1px) scale(1.02);
}

.cta-button.more {
  padding: 12px 27px;
}

.carousel-indicators {
  bottom: -50px;
}

.carousel-indicators [data-bs-target] {
  background-color: white;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  margin: 0 5px;
}

.carousel-indicators .active {
  background-color: var(--accent-red);
}

.sidebar {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  height: 100%;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
/*
.sidebar-title {
  color: var(--accent-red);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.2rem;
  margin-top: -1.2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}*/

.media-link {
  display: block;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
  text-decoration: none;
  flex: 1;
}

.media-link:last-child {
  margin-bottom: 0;
}

.media-link:last-child .media-item {
  margin-bottom: 0;
}

.media-link:hover {
  transform: scale(1.05);
}

.media-item {
  background: white;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  height: auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin-bottom: 15px;
}

.media-item h4 {
  color: var(--copy-text);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--accent-red);
  border-radius: 50%;
  padding: 10px;
  width: 1.7rem;
  height: 1.7rem;
  background-size: 1rem 1rem;
}

.about-page {
  background: var(--primary-dark);
  min-height: 100vh;
  padding-top: 140px;
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
  /*padding: 40px 20px;*/
  padding: 40px 0;
  color: white;
}

.about-title {
  font-size: 3rem;
  font-weight: 200;
  padding-bottom: 60px;
  text-align: center;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 3px;
  border-bottom: 2px solid var(--accent-red);
}

.about-subtitle {
  font-size: 2.3rem;
  margin: 2.3rem 0 2rem;
}

.contact-subtitle {
  font-size: 2.3rem;
  text-align: center;
  font-weight: 300;
  margin-bottom: 2rem;
}

.about-text {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: justify;
  color: rgba(255, 255, 255, 0.9);
}

.about-fold {
  margin-top: 40px;
}

.clientes-text {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
}

.team-section {
  margin-top: 60px;
}

.team-member {
  text-align: center;
  margin-bottom: 30px;
}

.team-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  box-shadow: 0 10px 30px var(--primary-dark);
  transition: all 0.3s ease;
}

.team-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px var(--accent-gray);
}

.team-name {
  font-size: 1.3rem;
  font-weight: 500;
  color: white;
  margin-bottom: 5px;
}

.detailed-member .team-name {
  font-weight: 600;
  color: var(--copy-text);
  font-size: 2rem;
  border-bottom: 3px solid;
  border-bottom-color: var(--accent-blue);
  padding-bottom: 1rem;
}

.detailed-member .team-bio {
  margin-top: 1rem;
  color: var(--copy-text);
}

.team-role {
  font-size: 1rem;
  font-weight: 300;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.back-button {
  position: fixed;
  top: 140px;
  left: 30px;
  background: var(--accent-gray);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 25px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-button:hover {
  background: var(--accent-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-red);
}
/* Detailed team section styling */
.detailed-team-section {
  margin-top: 4rem;
}

.que_hacemos .detailed-member {
  background: rgba(255, 255, 255, 0.05);
}

.que_hacemos .detailed-member .team-bio {
  color: #fff;
}

.detailed-member {
  background: #fafafa;
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detailed-team-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1%;
  margin-top: 1.5rem;
}

.team-bio {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
}

/* Scroll offset for anchor links */
.detailed-member {
  scroll-margin-top: 100px; /* Adjust this value based on your navbar height */
}


/* Publications Sidebar Styles */
.publications-sidebar {
  padding: 3rem 2rem;
  height: auto;
  overflow-x: auto;
  overflow-y: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: none;
  margin-top: 2rem;
}

.sidebar-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: #2c3e50;
  margin: 0 0 2rem;
  padding-bottom: 0.5rem;
 /* border-bottom: 2px solid #3498db;*/
 font-size: 1.5rem;
  line-height: 1.5;
  border-bottom: 3px solid; /* Blue underline */
  border-bottom-color: var(--accent-blue);
  display: inline-block; /* Makes the border only as wide as the text */
}

#publications-container {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
}

.publication-item {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  min-width: 320px;
  max-width: 320px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(52, 152, 219, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.publication-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #3498db, #2980b9);
}

.publication-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  border-color: #3498db;
}

.publication-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  text-decoration: none;
  display: block;
}

.publication-title:hover {
  color: #3498db;
  text-decoration: none;
}

.publication-excerpt {
  color: #6c757d;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.publication-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #9ea3a8;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.publication-date {
  font-weight: 500;
}

.publication-author {
  color: #3498db;
  font-weight: 600;
}

.publications-loading {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
  width: 100%;
}

.publications-error {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  color: #856404;
  font-size: 0.9rem;
}

/* Scrollbar styling for publications sidebar */
.publications-sidebar::-webkit-scrollbar {
  width: 6px;
}

.publications-sidebar::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
}

.publications-sidebar::-webkit-scrollbar-thumb {
  background: rgba(52, 152, 219, 0.3);
  border-radius: 3px;
}

.publications-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(52, 152, 219, 0.5);
}

footer {
  background-color: rgba(47, 44, 63, 0.95);
  margin-bottom: -8px;
  color: var(--light-text);
  padding: 1.5rem;
}

footer a {
  margin-right: 1rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 8px;
  padding: 12px 16px;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-red);
  color: white;
  box-shadow: 0 0 0 0.2rem rgba(227, 79, 79, 0.25);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 8px;
}

.submit-btn {
  background: linear-gradient(135deg, var(--accent-red) 0%, #c73e41 100%);
  color: white;
  padding: 12px 40px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(227, 79, 79, 0.3);
  width: 100%;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #d43e41 0%, #b73538 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(227, 79, 79, 0.4);
}

.contact-info-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 24px;
  height: 24px;
  fill: var(--accent-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-content h4 {
  color: var(--accent-red);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-info-content p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.contact-info-content a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-content a:hover {
  color: var(--accent-cyan);
}

.success-message {
  background: rgba(26, 171, 149, 0.15);
  border: 1px solid var(--accent-teal);
  color: var(--accent-cyan);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
}

.error-message {
  background: rgba(227, 79, 79, 0.15);
  border: 1px solid var(--accent-red);
  color: rgba(255, 255, 255, 0.9);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
}

.clients-sidebar {
  padding: 3rem 2rem;
  height: auto;
  overflow-x: auto;
  overflow-y: hidden;
  background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
  border-top: 1px solid #dee2e6;
}

#clients-container {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
  align-items: center;
}

.client-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  min-width: 200px;
  max-width: 200px;
  height: 140px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.client-item:hover {
  transform: translateY(-4px) scale(1.05);
  
}

.client-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.client-item:hover .client-logo {
  transform: scale(1.1);
}

.clients-loading {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
  width: 100%;
}

/* Scrollbar styling for clients sidebar */
.clients-sidebar::-webkit-scrollbar {
  height: 6px;
}

.clients-sidebar::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
}

.clients-sidebar::-webkit-scrollbar-thumb {
  background: rgba(227, 79, 79, 0.3);
  border-radius: 3px;
}

.clients-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(227, 79, 79, 0.5);
}

.icono-img {
  width: 60%;
}

.icon-text {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 991.98px) {
  .publications-sidebar {
    padding: 2rem 1.5rem;
    margin-top: 11.2rem;
  }
  .publication-item {
    min-width: 280px;
    max-width: 280px;
  }
  .carousel-item {
    height: 89vh;
  }
  .slide-content h2 {
    font-size: 1.8rem;
        margin-top: 11rem;
        line-height: 1.5;
        font-weight: bold;
  }
  
  .carousel-container {
    height: 63vh;
    min-height: 400px;
  }
  .navbar {
    height: 94px;
  }
  .carousel-indicators{
    display: none;
  }
  .clients-sidebar {
    padding: 2rem 1.5rem;
  }

  .client-item {
      min-width: 160px;
      max-width: 160px;
      height: 120px;
      padding: 1.25rem;
  }

}

/* Mobile Responsive Styles */
@media (max-width: 991.98px) {
  .navbar-brand {
      font-size: 2rem;
  }
  
  .logo-2r {
      font-size: 1.5rem;
  }
  
  .navbar {
      height: 100px;
      margin: -14px 18px 0px 0px;
  }
  
  .content-wrapper {
    height: auto;
  
  }
  
  .slider-section {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 0;
    margin-top: -0.6rem;
  }
  .slide-content h2 {
    margin-top: 5.3rem;
  }
  
  .carousel-container {
    width: 100%;
    max-width: 100%;
    height: 57vh;
    position: relative;
  }

  .carousel-item {
    height: 54vh;
  }

  .cta-button {
    padding: 9px 30px;
  }
  
  .sidebar {
      height: auto;
      min-height: 50vh;
      padding: 30px 15px;
  }

  .main-container {
      height: auto;
      min-height: 100vh;
      overflow: visible;
  }
  .publications-sidebar {
    height: auto;
    border-left: none;
    border-top: 1px solid #dee2e6;
  }
  .logo-img {
    margin-top: 4px;
  }
  .icono-img {
    width: 40%;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
      font-size: 1.8rem;
  }
  
  .logo-2r {
      font-size: 1.4rem;
      padding: 3px 8px;
  }

  .navbar {
      height: 90px;
      padding: 12px 15px;
  }

  .clients-sidebar {
    padding: 2rem 1rem;
}

.client-item {
    min-width: 140px;
    max-width: 140px;
    height: 100px;
    padding: 1rem;
}


  
  .carousel-item {
      padding: 30px 15px;
  }
  
  .carousel-container {
      height: 45vh;
      min-height: 330px;
  }
  .carousel-item {
    height: 46vh;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
      display: none;
  }

  
  .sidebar-title {
      font-size: 1.3rem;
      margin-bottom: 20px;
  }
  
  .media-item {
      min-height: 70px;
      padding: 12px;
      margin-bottom: 12px;
  }
  
  .media-item h4 {
      font-size: 0.9rem;
  }

  .cta-button {
    padding: 6px 25px;
    font-size: .8rem;
  }
  .sidebar {
      padding: 25px 15px;
  }
  .about-page {
    padding-top: 120px;
}

  .back-button {
      top: 120px;
      left: 20px;
      padding: 10px 20px;
      font-size: 0.9rem;
  }

  .about-content {
      padding: 20px 15px;
  }

  .about-text {
      font-size: 1.1rem;
      text-align: left;
  }

  .team-photo {
      width: 150px;
      height: 150px;
  }
  .detailed-member {
    text-align: center;
    scroll-margin-top: 80px; /* Smaller offset for mobile */
}

  .detailed-team-photo {
      margin-bottom: 1.5rem;
  }
  .logo-img {
    max-width: 7rem;
  }
}

@media (max-width: 576px) {
  .navbar {
      padding: 10px 15px;
      height: 80px;
  }
  
  .navbar-brand {
      font-size: 1.6rem;
  }
  
  .logo-2r {
      font-size: 1.2rem;
  }
  
  .carousel-item {
      padding: 25px 15px;
  }
  
  .carousel-container {
      height: 40vh;
      min-height: 320px;
  }
  
  .cta-button {
      padding: 5px 20px;
      font-size: 0.8rem;
      letter-spacing: 1px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
      opacity: 1;
      width: 50px;
      height: 50px;
  }

  .carousel-control-prev {
      left: 10px;
  }

  .carousel-control-next {
      right: 10px;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
      width: 35px;
      height: 35px;
      padding: 10px;
  }
  
  .sidebar-title {
      font-size: 1.2rem;
      margin-bottom: 15px;
  }
  
  .media-item {
      min-height: 60px;
      padding: 10px;
      margin-bottom: 10px;
  }
  
  .media-item h4 {
      font-size: 0.8rem;
  }

  .carousel-indicators {
      bottom: -40px;
  }

  .carousel-indicators [data-bs-target] {
      width: 12px;
      height: 12px;
      margin: 0 5px;
  }

  .sidebar {
      padding: 20px 15px;
  }

  .media-link {
      margin-bottom: 10px;
  }
  .about-page {
    padding-top: 100px;
}

.back-button {
    top: 100px;
    left: 15px;
    padding: 8px 18px;
    font-size: 0.8rem;
}

.team-photo {
    width: 120px;
    height: 120px;
}

.team-name {
    font-size: 1.1rem;
}

.team-role {
    font-size: 0.9rem;
}
.logo-img {
  max-width: 4.5rem;
}
.client-item {
  min-width: 120px;
  max-width: 120px;
  height: 90px;
  padding: 0.75rem;
}
}