/* ===== ESTILOS PARA MENÚ DROPDOWN PRINCIPAL ===== */

/* Dropdown básico */
.navbar-nav .dropdown {
    position: relative;
}

/* Área invisible para conectar el hover entre el menú y dropdown */
.navbar-nav .dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
    z-index: 999;
}

.navbar-nav .dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: none;
    float: none;
    min-width: 270px;
    max-width: 280px;
    padding: 8px 0;
    margin: 0;
    font-size: 13px;
    text-align: center;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    -webkit-box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Flecha apuntando hacia arriba centrada */
.navbar-nav .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #e0e0e0;
    z-index: 1001;
}

.navbar-nav .dropdown-menu::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #fff;
    z-index: 1002;
}

.navbar-nav .dropdown.open .dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mejor experiencia de hover - el dropdown permanece visible mientras el mouse esté sobre el área */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animación para el dropdown */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.navbar-nav .dropdown-menu > li > a {
    display: block;
    padding: 8px 16px;
    clear: both;
    font-weight: 500;
    line-height: 1.4;
    color: #444;
    white-space: nowrap;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    margin: 2px 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav .dropdown-menu > li > a:hover,
.navbar-nav .dropdown-menu > li > a:focus {
    color: #fff;
    background-color: #337ab7;
    background-image: linear-gradient(135deg, #337ab7 0%, #4a90e2 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(51, 122, 183, 0.3);
    text-decoration: none;
}

.navbar-nav .dropdown-menu > li > a > i {
    margin-right: 6px;
    color: #666;
    font-size: 12px;
    transition: all 0.25s ease;
}

.navbar-nav .dropdown-menu > li > a:hover > i {
    color: #fff;
    transform: scale(1.1);
}

/* Caret (flecha) */
.navbar-nav .caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transition: transform 0.3s ease;
}

.navbar-nav .dropdown.open .caret {
    transform: rotate(180deg);
}

/* Separadores */
.navbar-nav .dropdown-menu .divider {
    height: 1px;
    margin: 9px 0;
    overflow: hidden;
    background-color: #e5e5e5;
}

/* Estado activo del dropdown */
.navbar-nav .dropdown-menu > .active > a,
.navbar-nav .dropdown-menu > .active > a:hover,
.navbar-nav .dropdown-menu > .active > a:focus {
    color: #fff;
    text-decoration: none;
    background-color: #2c5aa0;
    background-image: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 767px) {
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
        transform: none;
        left: auto;
        text-align: left;
    }
    
    .navbar-nav .dropdown-menu::before,
    .navbar-nav .dropdown-menu::after {
        display: none;
    }
    
    .navbar-nav .dropdown-menu > li > a {
        padding: 8px 15px 8px 25px;
        margin: 1px 0;
        text-align: left;
        border-radius: 0;
    }
    
    .navbar-nav .dropdown.open .dropdown-menu {
        display: block;
        animation: none;
    }
}

/* ===== ESTILOS PARA SIDEBAR MEJORADOS ===== */

.sidebar-menu .list-group-item {
    border: 1px solid #ddd;
    background-color: #fff;
    padding: 12px 15px;
    margin-bottom: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
    color: #333;
    text-decoration: none;
}

.sidebar-menu .list-group-item:hover {
    background-color: #f5f5f5;
    border-color: #d0d0d0;
    transform: translateX(2px);
}

.sidebar-menu .list-group-item.active {
    background-color: #337ab7 !important;
    border-color: #337ab7 !important;
    color: #fff !important;
}

.sidebar-menu .list-group-item.active:hover {
    background-color: #2e6da4 !important;
    border-color: #2e6da4 !important;
}

.sidebar-menu .list-group-item i {
    margin-right: 8px;
    color: #666;
    transition: color 0.3s ease;
}

.sidebar-menu .list-group-item:hover i {
    color: #337ab7;
}

.sidebar-menu .list-group-item.active i {
    color: #fff !important;
}

/* ===== ESTILOS PARA SECCIÓN DE CLIENTES ===== */

.clientes-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 40px 0 20px 0 !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}

.clientes-section .title {
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
    text-align: left !important;
    width: 100% !important;
    position: relative !important;
    left: 0 !important;
}

.clientes-section .title h3 {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    position: relative !important;
    left: 0 !important;
    transform: none !important;
}

/* ===== ESTILOS PARA SECCIÓN DE SOCIOS ===== */

.socios-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.socios-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.socio-card {
    position: relative;
    width: 280px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    background-clip: padding-box;
}

.socio-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #337ab7, #4a90e2, #5bc0de, #337ab7);
    border-radius: 18px;
    z-index: -1;
    background-size: 300% 300%;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.socio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.socio-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center top;
    transition: all 0.4s ease;
}

.socio-card:hover .socio-photo {
    transform: scale(1.05);
}

.socio-info {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.socio-nombre {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.socio-titulo {
    font-size: 14px;
    color: #337ab7;
    font-weight: 500;
    margin: 0 0 10px 0;
}

.socio-descripcion {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ===== ESTILOS ESPECÍFICOS PARA MYC.PHP ===== */

/* Contenedor del equipo */
.team-member-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.team-member-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Frame de las fotos del equipo */
.team-photo-frame {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    width: 200px;
    height: 200px;
    background: #fff;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 
                0 4px 10px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 15px;
}

.team-photo-frame:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18), 
                0 8px 15px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-color: #f8f9fa;
}

/* Fotos del equipo */
.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px;
    transition: all 0.4s ease;
    background: #fff;
}

.team-photo-frame:hover .team-photo {
    transform: scale(1.05);
}

/* Nombres del equipo */
.team-member-link h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 10px 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.team-member-link:hover h4 {
    color: #337ab7;
}

/* Títulos del equipo */
.team-member-link p {
    font-size: 14px;
    color: #666 !important;
    font-weight: 500;
    margin: 0;
    transition: color 0.3s ease;
}

.team-member-link:hover p {
    color: #337ab7 !important;
}

/* Responsive para sección de socios */
@media (max-width: 768px) {
    .socios-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .socio-card {
        width: 100%;
        max-width: 300px;
    }
    
    .socio-photo {
        height: 250px;
    }
    
    .team-photo-frame {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .socios-section {
        padding: 20px 0;
    }
    
    .socios-container {
        padding: 0 15px;
    }
    
    .socio-card {
        max-width: 280px;
    }
    
    .socio-photo {
        height: 220px;
    }
    
    .socio-info {
        padding: 15px;
    }
    
    .team-photo-frame {
        width: 120px;
        height: 120px;
    }
}

/* ===== ESTILOS PARA BOTÓN VOLVER AL EQUIPO ===== */
.back-to-firm {
    display: inline-block;
    padding: 8px 0;
    margin-bottom: 25px;
    background: transparent;
    color: #337ab7 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
}

.back-to-firm:before {
    content: "←";
    margin-right: 8px;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #337ab7;
}

.back-to-firm:hover {
    color: #2e6da4 !important;
    text-decoration: none !important;
    transform: translateX(-2px);
}

.back-to-firm:hover:before {
    transform: translateX(-3px);
    color: #2e6da4;
}

.back-to-firm:focus {
    outline: none;
    color: #337ab7 !important;
    text-decoration: none !important;
}

.back-to-firm:active {
    color: #2e6da4 !important;
    transform: translateX(0);
}

/* ===== SWIPER STYLES ===== */
.swiper {
  width: 100%;
  height: 100%;
  position: relative;
}

.swiper-wrapper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Navigation buttons */
.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 20px;
  width: 35px;
  height: 35px;
  background-color: rgba(0, 0, 0, 0.65);
  border: none;
  border-radius: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s ease-in-out;
  z-index: 10;
  text-indent: -9999px;
  font-size: 0;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: #29a9df;
  opacity: 1;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 0;
}

.swiper-button-prev {
  right: 20px;
  margin-right: 36px;
  background-image: url('/assets/images/branding/slider-control-left.png');
  background-repeat: no-repeat;
  background-position: 48% 50%;
}

.swiper-button-next {
  right: 20px;
  background-image: url('/assets/images/branding/slider-control-right.png');
  background-repeat: no-repeat;
  background-position: 52% 50%;
}

.swiper-button-prev::before,
.swiper-button-next::before {
  content: '';
}

/* Pagination dots */
.swiper-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.swiper-pagination-bullet:hover,
.swiper-pagination-bullet-active {
  background-color: #2c5aa0;
  border-color: #fff;
  transform: scale(1.2);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-carousel {
  position: relative;
}

.mr-rotato-disabled,
.mr-rotato-next,
.mr-rotato-prev {
  border: 1px solid #f6f6f6;
  display: block;
  height: 21px;
  width: 21px;
  -webkit-box-shadow: 0px 1px 1px 0px rgba(180, 180, 180, 0.1);
  -moz-box-shadow: 0px 1px 1px 0px rgba(180, 180, 180, 0.1);
  box-shadow: 0px 1px 1px 0px rgba(180, 180, 180, 0.1);
  -webkit-transition: all 0.1s ease-in-out;
  -moz-transition: all 0.1s ease-in-out;
  -ms-transition: all 0.1s ease-in-out;
  -o-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
  position: absolute;
  top: 45px;
  cursor: pointer;
  background-color: white;
}

.testimonial-container .title {
  position: relative;
  margin-top: 0;
  margin-bottom: 10px;
}

.mr-rotato-next {
  background: url(/assets/images/branding/testimonials-right-01.png) no-repeat 50%;
  background-color: white;
  right: -1px;
  z-index: 6;
}

.mr-rotato-prev {
  background: url(/assets/images/branding/testimonials-left-01.png) no-repeat 50%;
  background-color: white;
  right: 25px;
  -webkit-box-shadow: 3px 0px 0px 0px #ffffff, 0px 1px 1px 0px rgba(180, 180, 180, 0.1);
  -moz-box-shadow: 3px 0px 0px 0px #ffffff, 0px 1px 1px 0px rgba(180, 180, 180, 0.1);
  box-shadow: 3px 0px 0px 0px #ffffff, 0px 1px 1px 0px rgba(180, 180, 180, 0.1);
  z-index: 5;
}

.mr-rotato-next:hover {
  background: url(/assets/images/branding/testimonials-right-02.png) no-repeat 50%;
  background-color: #29a9df;
  border-color: #29a9df;
}

.mr-rotato-prev:hover {
  background: url(/assets/images/branding/testimonials-left-02.png) no-repeat 50%;
  background-color: #29a9df;
  border-color: #29a9df;
}

/* ===== FLEXSLIDER HERO OPTIMIZATION ===== */
/* Mostrar la primera imagen inmediatamente sin delay */
.flexslider .slides > li:first-child {
  display: block !important;
}

/* Asegurar altura del contenedor para evitar saltos */
.slider {
  display: block;
  height: 500px;
  max-height: 100%;
  overflow: hidden;
  background: #f5f5f5;
}

#flex1 {
  height: 100%;
  width: 100%;
}

.flexslider .flex-viewport {
  height: 100%;
  width: 100%;
  max-height: none;
  overflow: hidden;
}

.flexslider .slides {
  height: 100%;
  width: 100%;
}

/* ===== CAROUSEL VISIBILITY CONTROL ===== */
.testimonials-carousel .carousel li {
  display: none !important;
}

.testimonials-carousel .carousel li:first-child {
  display: block !important;
}

/* ===== CUSTOM SLIDE TYPOGRAPHY ===== */
.custom-slide {
  font-family: sans-serif !important;
  font-weight: normal !important;
  font-style: normal !important;
}
}