/* ========== VARIABLES CORPORATIVAS ========== */
:root {
  --cmm-deep: #131C4E;
  --cmm-primary: #00A5B5;
  --cmm-accent: #FF5000;
  --cmm-light: #eef4f7;
  --cmm-gray: #5a6e7a;
  --cmm-white: #ffffff;
  --cmm-title : #0084AD;
  --glass-bg: rgba(80, 139, 207, 0.72);
  --glass-border: rgba(26, 25, 25, 0.35);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cmm-light);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ========== NAVBAR EFECTO APPLE GLASS ========== */
.navbar-apple-glass {
  background: var(--cmm-light);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  padding: 0.9rem 0;
}

.navbar-apple-glass.scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(25px) saturate(200%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, var(--cmm-deep) 0%, var(--cmm-primary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.logo-icon {
  background: linear-gradient(145deg, var(--cmm-primary), var(--cmm-deep));
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(26, 95, 122, 0.2);
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0 0.2rem;
  padding: 0.5rem 1rem;
  border-radius: 40px;
  color: var(--cmm-deep);
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  background-color: rgba(26, 95, 122, 0.08);
  color: var(--cmm-primary);
}

.nav-link.active {
  background-color: rgba(26, 95, 122, 0.12);
  color: var(--cmm-primary);
  font-weight: 600;
}

.navbar-toggler {
  border: none;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 0.5rem 0.7rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px var(--cmm-accent);
  outline: none;
}


.color-theory-bar {
  height: 5px;
  background: linear-gradient(90deg, var(--cmm-deep) 0%, var(--cmm-primary) 35%, var(--cmm-accent) 70%, var(--cmm-light) 100%);
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1031;
}


.carousel-item {
  height: 100vh;
  min-height: 550px;
  background-size: cover;
  background-position: center 50%;
  position: relative;
}

.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
}

.carousel-caption-custom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 85%;
  z-index: 2;
  backdrop-filter: blur(4px);
  background: rgba(0,0,0,0.2);
  border-radius: 48px;
  padding: 2rem 2rem;
}

.carousel-caption-custom h2 {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff, #FFE6B0);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: none;
}

.carousel-caption-custom p {
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(255,255,240,0.95);
}



.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; 
}


.card-glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 28px;
  transition: all 0.25s ease;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.card-glass:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 40px -14px rgba(10, 44, 59, 0.2);
  border-color: var(--cmm-accent);
}

.card-img-top {
  height: 210px;
  object-fit: cover;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
}

.badge-accent {
  background-color: var(--cmm-title);
  color: var(--cmm-deep);
  padding: 0.35rem 1.2rem;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.75rem;
  text-decoration: none;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-accent:hover {
  background-color: #87DaDF;
  color: #0a2c3b;
  transform: scale(1.02);
}

.btn-primary-corporate {
  background: linear-gradient(105deg, var(--cmm-primary), #87DADF);
  border: none;
  border-radius: 40px;
  padding: 0.6rem 1.8rem;
  font-weight: 600;
  transition: all 0.2s;
  color: white;
}

.btn-primary-corporate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 95, 122, 0.35);
  background: linear-gradient(105deg, #87DADF,var(--cmm-primary));
}

.btn-outline-corporate {
  border: 1.5px solid var(--cmm-primary);
  border-radius: 40px;
  color: var(--cmm-primary);
  padding: 0.5rem 1.4rem;
  font-weight: 600;
  background: transparent;
  transition: 0.2s;
}

.btn-outline-corporate:hover {
  background-color: var(--cmm-primary);
  color: white;
  border-color: var(--cmm-primary);
}

/* ========== JUMBOTRON ========== */
.jumbotron-corporate {
  background: linear-gradient(125deg, var(--cmm-deep) 0%, var(--cmm-primary) 70%, #2d7f9c 100%);
  padding: 4rem 1rem;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.jumbotron-corporate::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(244,185,66,0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
}

.bg-networks {
  background-color: var(--cmm-primary);
  border-top: 1px solid rgba(26,95,122,0.1);
  border-bottom: 1px solid rgba(26,95,122,0.1);
}
.partner-img {
  filter: grayscale(20%) brightness(0.95);
  transition: all 0.2s;
  max-height: 200px;
  object-fit: contain;
  opacity: 0.8;
}
.partner-img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.02);
}


.footer-corporate {
  background: var(--cmm-deep);
  color: #d4e3ec;
  padding-top: 3rem;
  padding-bottom: 2rem;
  border-top: 3px solid var(--cmm-accent);
}
.footer-corporate a {
  color: #bdd7e2;
  text-decoration: none;
  transition: 0.2s;
}
.footer-corporate a:hover {
  color: var(--cmm-accent);
  padding-left: 3px;
}
.heading7 {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.3px;
  margin-bottom: 1.2rem;
  border-left: 3px solid var(--cmm-accent);
  padding-left: 12px;
  color: white;
}
.footer-logo-symbol {
  background: transparent;
  width: 150px;
  height: 100px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.text-accent {
  color: var(--cmm-accent);
}
.bg-soft-primary {
  background-color: rgba(26, 95, 122, 0.05);
}
/* Efecto de elevación al pasar el mouse */
.card-colaborador {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card-colaborador:hover {
    transform: translateY(-10px);
}


.card-glass-profile {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.img-profile {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    background-color: #f0f2f5;
}


.badge-cargo {
    display: inline-block;
    background-color: rgba(13, 110, 253, 0.1);
    color: #00ADBB;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 50px;
}


.text-dark { color: #212529 !important; }
.text-muted { color: #6c757d !important; }
/* Ajustes para móvil en el carrusel */
@media (max-width: 768px) {
  .carousel-item {
    height: 70vh;
    min-height: 480px;
    background-position: center center !important; 
  }

  .carousel-caption-custom {
    width: 90%;               
    padding: 1.2rem 1rem;    
    border-radius: 28px;     
    backdrop-filter: blur(2px); 
    
    left: 50%;
    transform: translate(-50%, -50%);
  
    box-sizing: border-box;
    overflow: hidden;
  }

  .carousel-caption-custom h2 {
    font-size: 1.8rem;       
    line-height: 1.2;
  }

  .carousel-caption-custom p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
  }

  
  .carousel,
  .carousel-inner,
  .carousel-item {
    overflow-x: hidden;
  }

    #noticiasCarousel .carousel-item {
        height: auto;
        min-height: auto;
    }
    #noticiasCarousel .card-glass {
        margin: 0 0.5rem;
    }
    #noticiasCarousel .carousel-control-prev,
    #noticiasCarousel .carousel-control-next {
        width: 5%;
        background: rgba(0,0,0,0.2);
        border-radius: 2rem;
        opacity: 0.7;
    }
    #noticiasCarousel .carousel-indicators {
        margin-bottom: -1.5rem;
    }
    #noticiasCarousel .carousel-indicators button {
        background-color: var(--cmm-primary);
        height: 5px;
        width: 30px;
        border-radius: 5px;
    }
}