/* Global Styles - Clif Ros Brand */
:root {
    --primary: #217b9f;
    --primary-dark: #1a6280;
    --primary-light: #2a8fb5;
    --secondary: #6c757d;
    --text-dark: #333;
    --text-light: #FFFFFF;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #6c757d;
}

/* Tipografías locales */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

@font-face {
    font-family: 'Erstoria';
    src: url('font/Erstoria.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'NewBlack';
    src: url('font/NewBlackTypeface-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}



h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

h1, h2 {
    font-weight: 700;
}

h3, h4 {
    font-weight: 600;
}

h5, h6 {
    font-weight: 500;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.btn{
    border-radius: 0px;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-light {
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* Header Styles */
.top-bar {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 8px 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    width: 100%;
}

.top-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.social-icon {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-right: 10px;
}

.social-icon:hover {
    color: var(--gray-medium);
}

/* Navbar Sticky Styles */
.navbar {
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 56px; /* Altura del top-bar */
    left: 0;
    right: 0;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    margin: 0;
    border-radius: 0;
    width: 100%;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    margin: 0;
    border-radius: 0;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    top: 0;
}

.navbar.at-top {
    top: 56px; /* Altura del top-bar */
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}

.navbar.at-top.scrolled {
    top: 0;
}

.navbar-brand img {
    max-height: 70px;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    max-height: 60px;
}

.navbar-primary{
    background: #217b9f !important;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.nav-link.active, .nav-link:hover {
    color: var(--primary);
}


/* Ajuste del contenido para compensar el navbar fijo */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    
}

body.scrolled {
    padding-top: 80px; /* Altura del navbar cuando está scrolled */
}

.submenu-text{
    color: #FFFFFF;
}
.submenu-text:hover{
    color: #000000 !important;
}

/* Animaciones suaves */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%; /* Asegura que ocupe todo el ancho */
    background-image: url('../assets/img/bg_Banner.jpg');
    background-size: cover;
    background-position: center;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center; /* opcional para centrar contenido horizontalmente */
    color: var(--text-light);
    margin: 0; /* Asegúrate que no haya márgenes */
    padding: 0; /* Asegúrate que no haya padding */
}


.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background-color: rgba(33, 123, 159, 0.7);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Page Header */
.page-header {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 120px 0;
    position: relative;
    min-height: 80vh; /* Hacer que ocupe al menos 50% de la pantalla */
    display: flex;
    align-items: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/img/bg-secciones.jpg');
    background-position: left center;
    opacity: 0.1;
}

/* Gradiente blanco hacia abajo para conectar con la página */
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

.page-header h1 {
    position: relative;
    z-index: 3; /* Asegurar que el título esté por encima del gradiente */
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Article Header */
.article-header {
    color: var(--text-light);
    padding: 280px 0 250px 0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    /* Imagen por defecto si no hay foto del artículo */
    background-image: url('img/bg-secciones.jpg');
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 123, 159, 0.75); /* Opacidad ajustable */
    z-index: 1;
}

.article-header .container {
    position: relative;
    z-index: 2;
}

.article-header h1 {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.article-header .text-muted {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}



/* Articles Grid */
.articles-grid {
    padding: 50px 0;
}

.article-card {
    position: relative;
    overflow: hidden;
    height: 450px;
    margin-bottom: 0px;
}

.article-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover img {
    transform: scale(1.30);
}

.article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 80px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--text-light);
}

.article-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* pages Header */
.page-header {
    color: var(--text-light);
    padding: 320px 0 250px 0; /* Aumentado de 280px a 320px */
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    /* Imagen por defecto si no hay foto del artículo */
    background-image: url('img/bg-secciones.jpg');
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header {
        padding: 160px 0 100px 0; /* Aumentado de 120px a 160px */
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 140px 0 80px 0; /* Aumentado de 100px a 140px */
        min-height: 250px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 100px 0;
        min-height: 300px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 100px 0 80px 0;
        min-height: 250px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

/* Specialized Advice */
.specialized-advice {
    background-color: #e1e3e0;
    padding: 50px 0;
    text-align: center;
}

/* Why Choose Us */
.why-choose-us {
    padding: 50px 0;
}

.award-badge {
    width: 120px;
    height: 120px;
    margin: 10px;
}

.award-badge {
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 10px;
    margin: 0 auto;
  }
  .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }

/* Estadísticas con Contadores */
.stats-section {
    border-radius: 15px;
    padding: 60px 20px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.stat-item {
    padding: 25px 15px;
    text-align: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(33, 123, 159, 0.2);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    font-family: 'NewBlack', sans-serif;
    text-shadow: none;
    display: block;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-dark);
    text-shadow: none;
}

.stat-sublabel {
    font-size: 0.95rem;
    opacity: 0.8;
    font-style: italic;
    color: var(--primary-light);
    text-shadow: none;
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .stat-sublabel {
        font-size: 0.8rem;
    }
    
    .stats-section {
        padding: 30px 15px;
    }
}

/* Our Experts */
.our-experts {
    background-color: var(--primary-dark);
    padding: 50px 0;
}

.expert-card {
    background-color: var(--text-light);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
}

.expert-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.expert-info {
    padding: 15px;
    color: var(--text-dark);
}

.expert-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.expert-info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.expert-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 0;
    margin-bottom: 0;
}

.expert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.expert-card:hover .expert-img {
    transform: scale(1.1);
}

.expert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.expert-card:hover .expert-overlay {
    opacity: 1;
}

.expert-overlay h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.expert-overlay p {
    margin-bottom: 3px;
    font-size: 0.9rem;
}



/* Location */
.location {
    padding: 50px 0;
}

.location-card {
    background-color: var(--gray-light);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
}

.location-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.location-info {
    padding: 20px;
    min-height: 350px;
}

.location-info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.location-info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.location-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary);
    font-weight: 500;
}

/* Mission & Vision */
.mission-vision {
    background-color: var(--gray-light);
}

.mission-col, .vision-col {
    padding: 30px;
}

/* Valores personalizados */
.bg-light-custom {
    background-color: #e1e3e0;
}

.bg-dark-custom {
    background-color: #b9b8b4;
}

.value-card {
    padding: 30px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #000;
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.value-card .value-desc {
    display: none;
    margin: 0;
    transition: opacity 0.3s ease;
}

/* Hover effect */
.value-hover:hover {
    background-color: #232323 !important;
    color: #fff !important;
}

.value-hover:hover .value-desc {
    display: block;
    margin-top: 10px;
}

/* Carrusel de Misión y Visión */
.mission-vision-carousel {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    min-height: 300px;
    margin-bottom: 30px;
}

.carousel-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-content.active {
    opacity: 1;
    transform: translateX(0);
}

.content-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary);
}

.content-card h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.content-card p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.carousel-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 123, 159, 0.3);
}

.carousel-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(33, 123, 159, 0.3);
}

/* Sección de valores mejorada */
.values {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.values h2 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.values .lead {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.value-tag {
    background: white;
    border-radius: 25px;
    padding: 40px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: none;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.value-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: all 0.4s ease;
}

.value-tag:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.value-tag:hover::before {
    height: 100%;
    opacity: 0.05;
}

/* Íconos de valores */
.value-icon {
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.value-icon i {
    font-size: 3.5rem;
    transition: all 0.4s ease;
}

.value-tag:hover .value-icon {
    transform: scale(1.1) rotateY(360deg);
}

/* Colores específicos para cada valor */
.value-tag-1::before {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.value-tag-1 .value-icon i {
    color: #6c757d;
}

.value-tag-1:hover .value-icon i {
    color: #495057;
}

.value-tag-2::before {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.value-tag-2 .value-icon i {
    color: #17a2b8;
}

.value-tag-2:hover .value-icon i {
    color: #138496;
}

.value-tag-3::before {
    background: linear-gradient(135deg, #4a4a4a, #3a3a3a);
}

.value-tag-3 .value-icon i {
    color: #4a4a4a;
}

.value-tag-3:hover .value-icon i {
    color: #3a3a3a;
}

.value-tag-4::before {
    background: linear-gradient(135deg, #4a4a4a, #3a3a3a);
}

.value-tag-4 .value-icon i {
    color: #4a4a4a;
}

.value-tag-4:hover .value-icon i {
    color: #3a3a3a;
}

.value-tag h4 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.value-tag p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    transition: all 0.3s ease;
}

.value-tag:hover h4 {
    color: var(--primary);
    transform: translateY(-2px);
}

.value-tag:hover p {
    color: var(--text-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .value-tag {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .value-icon i {
        font-size: 3rem;
    }
    
    .value-tag h4 {
        font-size: 1.2rem;
    }
    
    .value-tag p {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .values {
        padding: 3rem 0;
    }
    
    .value-tag {
        padding: 25px 15px;
    }
    
    .value-icon i {
        font-size: 2.5rem;
    }
}

/* Contenido de About */
.about-content h2 {
    color: var(--primary);
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.about-content .lead {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1.1rem;
}



/* Profile Tabs */
.profile-tabs {
    margin-bottom: 30px;
}

.profile-tabs .nav-link {
    border-radius: 0;
    padding: 15px 30px;
    font-weight: 600;
    color: var(--text-dark);
}

.profile-tabs .nav-link.active {
    background-color: var(--primary);
    color: var(--text-light);
}

.profile-content {
    padding: 30px;
    background-color: var(--gray-light);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* Video de fondo */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}



.footer-main {
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.footer-main .container {
    position: relative;
    z-index: 2;
}

.footer-main .row {
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.footer-main .col-md-4 {
    padding: 30px 25px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.footer-main .col-md-4:last-child {
    border-right: none;
}

.footer-main .col-md-4:nth-child(3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-main .col-md-4:nth-child(4) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-main .col-md-4:nth-child(5) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-logo {
    max-height: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.footer-main h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    padding-left: 0;
}

.footer-links a {
    color: var(--text-light);
    opacity: 0.9;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block;
    padding: 5px 0;
    position: relative;
}

.footer-links a::before {
    content: '▸';
    margin-right: 8px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #ffffff;
    transform: translateX(5px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-links a:hover::before {
    opacity: 1;
    color: #ffffff;
}

.social-icons {
    margin-bottom: 20px;
}

.social-icons .social-icon {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 43px;
    margin-right: 15px;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.social-icons .social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-contact-info {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-contact-info br {
    margin-bottom: 5px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

/* Responsive */
@media (max-width: 992px) {
    .navbar {
        margin: 0;
        border-radius: 0;
        width: 100%;
    }
    
    .top-bar {
        padding: 6px 0;
    }
    
    body {
        padding-top: 120px;
    }
    
    body.scrolled {
        padding-top: 70px;
    }
    
    .navbar-collapse {
        margin-top: 15px;
    }
    
    .nav-link {
        padding: 0.5rem 0;
    }
    
    .hero-section {
        height: 400px;
    }
    
    .footer-main .col-md-4 {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding: 25px 20px;
    }
    
    .footer-main .col-md-4:last-child {
        border-bottom: none;
    }
    
    .footer-main .col-md-4:nth-child(3),
    .footer-main .col-md-4:nth-child(4),
    .footer-main .col-md-4:nth-child(5) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        border-right: none;
    }
    
    .footer-logo {
        max-height: 100px;
        margin-bottom: 15px;
    }
    
    .footer-main h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .mission-vision-carousel {
        padding: 20px;
        margin-top: 30px;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .content-card h3 {
        font-size: 1.5rem;
    }
    
    .carousel-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .carousel-btn {
        width: 100%;
    }
    
    .value-tag {
        margin-bottom: 20px;
    }
    
    .about-content {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 4px 0;
        font-size: 0.9rem;
    }
    
    .social-icon {
        font-size: 1rem;
        margin-right: 8px;
    }
    
    body {
        padding-top: 110px;
    }
    
    body.scrolled {
        padding-top: 65px;
    }
    
    .hero-section {
        height: 350px;
    }
    
    .article-card {
        height: 200px;
    }
    
    .expert-card img {
        height: 200px;
    }
    
    .footer-main {
        padding: 40px 0;
    }
    
    .footer-main .col-md-4 {
        padding: 20px 15px;
    }
    
    .footer-logo {
        max-height: 80px;
    }
    
    .social-icons .social-icon {
        width: 40px;
        height: 40px;
        line-height: 38px;
        font-size: 1.1rem;
        margin-right: 10px;
    }
    
    .page-header {
        min-height: 40vh;
        padding: 80px 0;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header::after {
        height: 60px;
    }
    
    .mission-vision-carousel {
        padding: 20px;
        margin-top: 30px;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .content-card h3 {
        font-size: 1.5rem;
    }
    
    .carousel-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .carousel-btn {
        width: 100%;
    }
    
    .value-tag {
        margin-bottom: 20px;
    }
    
    .about-content {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 300px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .article-card {
        height: 180px;
    }
    
    .article-overlay h3 {
        font-size: 1rem;
    }
    
    .page-header {
        min-height: 35vh;
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header::after {
        height: 40px;
    }
    
    .mission-vision-carousel {
        padding: 20px;
        margin-top: 30px;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .content-card h3 {
        font-size: 1.5rem;
    }
    
    .carousel-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .carousel-btn {
        width: 100%;
    }
    
    .value-tag {
        margin-bottom: 20px;
    }
    
    .about-content {
        margin-bottom: 30px;
    }
}

/* Social Profile Header */
.social-profile-header {
    background: linear-gradient(135deg, #1a5f7a 0%, #134e68 50%, #0d3d56 100%);
    color: var(--text-light);
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.social-profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(33, 123, 159, 0.3) 0%, transparent 50%);
    z-index: 0;
}

.social-profile-header .container {
    position: relative;
    z-index: 1;
}

.profile-photo-small {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.profile-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icon {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Animaciones sutiles - MEJORADAS */
@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0px);
        filter: brightness(1);
    }
    50% {
        transform: translateY(-5px);
        filter: brightness(1.1);
    }
}

@keyframes gentlePulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
        box-shadow: 
            0 10px 30px rgba(138, 74, 156, 0.4),
            inset 0 5px 15px rgba(180, 120, 190, 0.3),
            0 0 20px rgba(157, 89, 168, 0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
        box-shadow: 
            0 15px 40px rgba(138, 74, 156, 0.6),
            inset 0 8px 20px rgba(180, 120, 190, 0.5),
            0 0 30px rgba(157, 89, 168, 0.8);
    }
}

@keyframes subtleShift {
    0%, 100% {
        transform: translateX(0px);
        filter: brightness(1);
    }
    50% {
        transform: translateX(3px);
        filter: brightness(1.05);
    }
}

@keyframes softGlow {
    0%, 100% {
        opacity: 0.9;
        filter: brightness(1) saturate(1);
        box-shadow: 
            0 8px 25px rgba(157, 89, 168, 0.5),
            inset 0 3px 10px rgba(180, 120, 190, 0.4),
            0 0 15px rgba(138, 74, 156, 0.6);
    }
    50% {
        opacity: 1;
        filter: brightness(1.2) saturate(1.1);
        box-shadow: 
            0 12px 35px rgba(157, 89, 168, 0.7),
            inset 0 5px 15px rgba(180, 120, 190, 0.6),
            0 0 25px rgba(138, 74, 156, 0.9);
    }
}

@keyframes centerPulse {
    0%, 100% {
        opacity: 0.9;
        transform: translateX(-50%) scale(1);
        box-shadow: 
            0 12px 35px rgba(180, 120, 190, 0.6),
            inset 0 4px 12px rgba(200, 140, 200, 0.4),
            0 0 25px rgba(157, 89, 168, 0.7);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.08);
        box-shadow: 
            0 18px 45px rgba(180, 120, 190, 0.8),
            inset 0 6px 18px rgba(200, 140, 200, 0.6),
            0 0 35px rgba(157, 89, 168, 1);
    }
}

@keyframes textureFlow {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 0% 100%, 100% 0%;
        filter: drop-shadow(0 5px 15px rgba(138, 74, 156, 0.3));
    }
    50% {
        background-position: 15% 15%, 85% 85%, 65% 35%, 20% 80%, 80% 20%;
        filter: drop-shadow(0 8px 20px rgba(138, 74, 156, 0.5));
    }
    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 0% 100%, 100% 0%;
        filter: drop-shadow(0 5px 15px rgba(138, 74, 156, 0.3));
    }
}

@keyframes patternSlide {
    0% {
        background-position: 0px 0px, 0px 0px, 0px 0px;
        filter: drop-shadow(0 2px 8px rgba(138, 74, 156, 0.2));
    }
    50% {
        filter: drop-shadow(0 4px 12px rgba(138, 74, 156, 0.4));
    }
    100% {
        background-position: 40px 40px, -40px 40px, 80px 80px;
        filter: drop-shadow(0 2px 8px rgba(138, 74, 156, 0.2));
    }
}

/* Remove old lawyer photo styles - replaced by profile-photo-small */

/* Social Profile Tabs */
.social-profile-tabs {
    display: flex;
    border: none;
    margin-bottom: 30px;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    position: relative;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.social-profile-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(33, 123, 159, 0.2);
    z-index: 1;
}

.profile-section {
    padding-top: 50px;
    background: white;
    margin-top: 0;
    border-radius: 0;
    position: relative;
}

.social-profile-tabs .nav-link {
    background-color: transparent;
    color: #6c757d;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 2px;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    text-transform: capitalize;
}

.social-profile-tabs .nav-link:hover {
    background-color: rgba(33, 123, 159, 0.08);
    color: #1a5f7a;
    transform: translateY(-1px);
    border-bottom: 2px solid rgba(33, 123, 159, 0.3);
}

.social-profile-tabs .nav-link.active {
    background-color: #1a5f7a;
    color: white;
    box-shadow: 0 2px 8px rgba(26, 95, 122, 0.3);
    border-bottom: 2px solid #1a5f7a;
    z-index: 2;
    font-weight: 600;
}

.profile-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--primary); /* Flecha hacia abajo para conexión */
}

.profile-content {
    background-color: white; /* Fondo blanco */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
    position: relative;
    margin-top: 0;
}

.profile-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
    border-radius: 0;
}

/* Responsive adjustments for Social Profile */
@media (max-width: 768px) {
    .social-profile-header {
        padding: 30px 0;
    }
    
    .profile-photo-small {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }
    
    .profile-name {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .profile-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .profile-section {
        padding-top: 30px;
    }
    
    .social-profile-tabs {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .social-profile-tabs .nav-link {
        margin: 5px 0;
        width: 200px;
        text-align: center;
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .profile-content {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .social-profile-header {
        padding: 20px 0;
    }
    
    .profile-photo-small {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 1.75rem;
    }
    
    .profile-section {
        padding-top: 20px;
    }
    
    .social-profile-tabs .nav-link {
        padding: 8px 16px;
        font-size: 0.85rem;
        width: 180px;
    }
}

/* Lawyer Info List */
.lawyer-info-list {
    list-style: none;
    padding: 0;
}

.lawyer-info-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.lawyer-info-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Practice Areas */
.practice-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-practice {
    display: inline-block;
    background-color: var(--primary);
    color: var(--text-light);
    border-radius: 5px; 
    padding: 6px 6px;
    font-size: 0.85rem;
    margin: 4px 2px; 
    white-space: nowrap;
    line-height: 1.4;
    text-align: center;
}
.btn-practice:hover {
    background-color: var(--primary-dark);
    color: var(--text-light);
}


/* Service Header */
.service-header {
    background-image: url('images/corporate-law-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.service-header .container {
    position: relative;
    z-index: 1;
}

.service-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Service Description */
.service-description {
    padding: 60px 0;
}

.service-description .lead {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Service Sidebar */
.service-sidebar {
    background-color: var(--gray-light);
    padding: 30px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Estilos sticky removidos - sidebar ahora es estático */

.service-sidebar {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Placeholder removido - ya no es necesario para sidebar estático */

.service-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-menu li {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--gray-medium);
    padding-bottom: 15px;
}

.service-menu li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.service-menu a {
    color: var(--text-dark);
    font-weight: 500;
    display: block;
    transition: color 0.3s ease;
}

.service-menu a:hover, .service-menu a.active {
    color: var(--primary);
}

/* Responsive adjustments - sticky removido */
@media (max-width: 991.98px) {
    .service-sidebar {
        padding: 15px;
    }
}

/* Team Members */
.team-members {
    padding: 60px 0;
}

.team-card {
    background-color: var(--gray-light);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-photo {
    height: 300px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 20px;
}

.team-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-info p {
    margin-bottom: 5px;
    color: var(--gray-dark);
}

#hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

#hero .carousel-item {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: opacity 1s ease-in-out;
}

#hero .carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 50, 0.6);
    z-index: 1;
}

#hero .carousel-caption {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 2;
    color: #fff;
    max-width: 60%;
    text-align: left;
}


#hero .carousel-caption h2 {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-weight: 700;
    animation: fadeInDown 1s ease;
}

#hero .carousel-caption p {
    font-size: 20px;
    animation: fadeIn 1.5s ease;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.text-justify {
    text-align: justify !important;
}

.bg-grey{
    background: var(--gray-dark);
}

/* Iconos minimalistas personalizados */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: none;
    background: none;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.icon-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* Icono Plus (Ver Más Artículos) */
.icon-plus {
    width: 24px;
    height: 24px;
    position: relative;
}

.icon-plus::before,
.icon-plus::after {
    content: '';
    position: absolute;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.icon-plus::before {
    width: 24px;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.icon-plus::after {
    width: 2px;
    height: 24px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.icon-btn:hover .icon-plus::before,
.icon-btn:hover .icon-plus::after {
    background-color: var(--primary-dark);
}

/* Icono Arrow Right (Ver Equipo Completo) */
.icon-arrow {
    width: 24px;
    height: 24px;
    position: relative;
}

.icon-arrow::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background-color: var(--text-light);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.icon-arrow::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--text-light);
    border-right: 2px solid var(--text-light);
    top: 50%;
    right: 0;
    transform: translateY(-50%) rotate(45deg);
    transition: all 0.3s ease;
}

.icon-btn:hover .icon-arrow::before {
    width: 20px;
}

.icon-btn:hover .icon-arrow::after {
    right: -2px;
}

/* Variante gris para contextos específicos */
.icon-plus.gray::before,
.icon-plus.gray::after {
    background-color: var(--gray-dark);
}

.icon-btn:hover .icon-plus.gray::before,
.icon-btn:hover .icon-plus.gray::after {
    background-color: var(--text-dark);
}

.icon-arrow.gray::before,
.icon-arrow.gray::after {
    border-color: var(--gray-dark);
    background-color: var(--gray-dark);
}

.icon-btn:hover .icon-arrow.gray::before,
.icon-btn:hover .icon-arrow.gray::after {
    border-color: var(--text-dark);
    background-color: var(--text-dark);
}

/* Estilos para elementos colapsables */
.collapse-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.custom-details {
    border: none;
    margin: 0;
}

.custom-summary {
    background: #f8f9fa;
    padding: 15px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.custom-summary:hover {
    background: #e9ecef;
}

.custom-summary::-webkit-details-marker {
    display: none;
}

.collapse-icon {
    margin-right: 10px;
    transition: transform 0.3s ease;
    color: #007bff;
}

.custom-details[open] .collapse-icon {
    transform: rotate(90deg);
}

.collapse-content {
    background: white;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Estilos para listas collapsibles */
.list-item-toggle {
    list-style: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.list-item-toggle .btn-link {
    color: #007bff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.list-item-toggle .btn-link:hover {
    color: #0056b3;
    text-decoration: underline !important;
}

.list-item-toggle .fas {
    transition: transform 0.3s ease;
    font-size: 0.9em;
}

/* Animación suave para el contenido collapsible */
.collapse {
    transition: height 0.35s ease;
}

.collapse ul {
    margin-top: 10px;
}

/* Burbujas flotantes */
.floating-bubbles {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Burbuja de Chat WhatsApp */
.chat-bubble {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.chat-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.chat-bubble:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none;
}

.chat-bubble:hover::before {
    left: 100%;
}

/* Burbuja de Scroll to Top */
.scroll-top-bubble {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(33, 123, 159, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top-bubble.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-bubble:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(33, 123, 159, 0.6);
}

.scroll-top-bubble:hover .fas {
    animation: bounce 0.6s ease-in-out;
}

/* Anillo de progreso */
.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dasharray 0.3s ease;
}

.progress-ring-progress {
    stroke-dasharray: 0 163.36; /* 2 * PI * 26 = 163.36 */
    transition: stroke-dasharray 0.3s ease;
    stroke-linecap: round;
}

/* Animaciones */
@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    80% {
        transform: translateY(-4px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.chat-bubble:hover {
    animation: pulse 1.5s infinite;
}

/* Botón con animación hacia la izquierda - The Hub */
.icon-btn-hub {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 0px;
    color: white;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 58px;
    height: 58px;
}

.icon-btn-hub .btn-text {
    position: absolute;
    left: 50px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.icon-btn-hub:hover {
    padding-right: 44px;
    min-width: 150px;
    transform: translateY(-2px);
}

.icon-btn-hub:hover .icon-plus {
    transform: translateX(-35px);
}

.icon-btn-hub:hover .btn-text {
    opacity: 1;
    transform: translateX(0);
}

/* Botón The Hub - Diseño minimalista de ancho completo */
.icon-btn-hub {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80px;
    background-color: #4a4a4a;
    color: white;
    text-decoration: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: none;
}

.icon-btn-hub .icon-plus {
    width: 20px;
    height: 20px;
    position: relative;
    margin-right: 12px;
    transition: all 0.4s ease;
}

.icon-btn-hub .icon-plus::before,
.icon-btn-hub .icon-plus::after {
    content: '';
    position: absolute;
    background-color: white;
    transition: all 0.4s ease;
}

.icon-btn-hub .icon-plus::before {
    width: 20px;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.icon-btn-hub .icon-plus::after {
    width: 2px;
    height: 20px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.icon-btn-hub .btn-text {
    position: relative;
    opacity: 1;
    transform: none;
    font-weight: 500;
    font-size: 16px;
    color: white;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
}

.icon-btn-hub:hover {
    background-color: #4a4a4a;
    transform: none;
    padding: 0;
    min-width: auto;
    text-decoration: none;
}

.icon-btn-hub:hover .icon-plus {
    transform: rotate(90deg);
}

.icon-btn-hub:hover .icon-plus::before,
.icon-btn-hub:hover .icon-plus::after {
    background-color: white;
}

.icon-btn-hub:hover .btn-text {
    color: white;
    opacity: 1;
    transform: none;
}

/* Asegurar que no haya espacios en blanco */
.icon-btn-hub {
    margin-top: 0;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .icon-btn-hub {
        height: 70px;
    }
    
    .icon-btn-hub .btn-text {
        font-size: 14px;
    }
    
    .icon-btn-hub .icon-plus {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }
    
    .icon-btn-hub .icon-plus::before {
        width: 18px;
    }
    
    .icon-btn-hub .icon-plus::after {
        height: 18px;
    }
}

/* Botón con animación hacia la derecha - Ver Equipo */
.icon-btn-team {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 58px;
    height: 58px;
}

.icon-btn-team .btn-text {
    position: absolute;
    right: 70px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.icon-btn-team:hover {
    padding-left: 24px;
    min-width: 150px;
    transform: translateY(-2px);
}

.icon-btn-team:hover .icon-arrow-elegant {
    transform: translateX(15px);
}

.icon-btn-team:hover .btn-text {
    opacity: 1;
    transform: translateX(0);
}

/* Icono de flecha elegante */
.icon-arrow-elegant {
    width: 24px;
    height: 24px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-arrow-elegant::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background-color: white;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.icon-arrow-elegant::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    top: 50%;
    right: 2px;
    transform: translateY(-50%) rotate(45deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.icon-btn-team:hover .icon-arrow-elegant::before {
    width: 22px;
    background-color: rgba(255, 255, 255, 0.9);
}

.icon-btn-team:hover .icon-arrow-elegant::after {
    right: 0;
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) rotate(45deg) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .floating-bubbles {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    
    .chat-bubble,
    .scroll-top-bubble {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .chat-bubble i {
        font-size: 24px;
    }
    
    .progress-ring {
        width: 50px;
        height: 50px;
    }
    
    .progress-ring-circle,
    .progress-ring-progress {
        r: 21;
        cx: 25;
        cy: 25;
    }
    
    .progress-ring-progress {
        stroke-dasharray: 0 131.95; /* 2 * PI * 21 = 131.95 */
    }
    
    /* Ajustes responsivos para botones animados */
    .icon-btn-hub:hover,
    .icon-btn-team:hover {
        min-width: auto;
        padding: 12px 16px;
    }
    
    .icon-btn-hub .btn-text,
    .icon-btn-team .btn-text {
        display: none;
    }
    
    .icon-btn-hub:hover .icon-plus,
    .icon-btn-team:hover .icon-arrow-elegant {
        transform: none;
    }
}

/* Contact Page Styles */
#contacto-hero {
    position: relative;
    height: 200px;
    min-height: 200px;
    background: var(--primary);
}

#contacto-hero .carousel-item {
    height: 200px;
    min-height: 200px;
    background: var(--primary);
    position: relative;
}

#contacto-hero .carousel-overlay {
    display: none;
}

#contacto-hero .carousel-caption {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    color: #fff;
    max-width: 80%;
    text-align: center;
}

#contacto-hero .carousel-caption h2 {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 0;
}

.contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.contact-details {
    line-height: 1.8;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-message {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-cta {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #contacto-hero .carousel-caption {
        left: 20px;
        max-width: 80%;
    }
    
    #contacto-hero .carousel-caption h2 {
        font-size: 2.5rem;
    }
    
    .contact-cta {
        padding: 1.5rem;
    }
}

/* Ajustes mejorados para las fichas del equipo */
.team-card-new {
    background-color: var(--gray-light);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    padding: 0;
    position: relative;
    text-align: center;
    margin: 20px 0;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.team-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.team-photo-round {
    width: 100%;
    height: 200px;
    border-radius: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
    background-color: white;
    position: relative;
}

.team-photo-round img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.team-info-new {
    padding-top: 10px;
}

.lawyer-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
    /* Texto con puntos suspensivos si se desborda */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.lawyer-position {
    margin-bottom: 5px;
    color: var(--gray-dark);
    font-size: 0.9rem;
    /* Texto con puntos suspensivos si se desborda */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.lawyer-email {
    margin-bottom: 15px;
    color: var(--primary); /* Cambiado a verde de la marca para mejor visibilidad */
    font-size: 0.85rem;
    font-weight: 500; /* Agregado peso para mejor legibilidad */
    word-break: break-word;
    /* Texto con puntos suspensivos si se desborda */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.divider-line {
    border: none;
    height: 1px;
    background-color: var(--gray-medium);
    margin: 15px 0;
    opacity: 0.3;
}

.practice-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.practice-badge {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.2;
    /* Texto con puntos suspensivos para badges largos */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px; /* Límite de ancho para los badges */
}

.practice-badge:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-card-new {
        margin-top: 90px; /* Aumentado para móviles */
        margin-bottom: 30px;
        padding: 90px 20px 25px 20px;
        min-height: 320px;
    }
    
    .team-photo-round {
        width: 110px;
        height: 110px;
        top: -55px;
    }
    
    .practice-badge {
        font-size: 0.7rem;
        padding: 3px 10px;
        max-width: 100px; /* Reducido para móviles */
    }
    
    .lawyer-name {
        font-size: 1rem;
    }
    
    .lawyer-position {
        font-size: 0.85rem;
    }
    
    .lawyer-email {
        font-size: 0.8rem;
    }
}

/* Ajuste adicional para la sección del equipo */
.team-members {
    padding-top: 3rem !important;
    padding-bottom: 4rem !important;
}

.team-members .row {
    margin-top: 20px; /* Espacio adicional entre filas */
}

/* Estilos para el selector de idiomas */
.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-selector .lang-btn {
    padding: 4px 8px;
    border: none;
    background: transparent;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.language-selector .lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.language-selector .lang-btn.active {
    background-color: var(--primary);
    color: white;
}

.language-selector .lang-btn i {
    font-size: 12px;
}

/* Estilos para los botones de idioma */
.lang-btn.active {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px;
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px;
}

/* Ocultar elementos de Google Translate - MEJORADO */
.goog-te-banner-frame,
.goog-te-menu-frame,
.goog-te-combo,
#google_translate_element,
.goog-te-gadget,
.goog-te-gadget-simple {
    display: none !important;
    visibility: hidden !important;
}

/* Ajustar el body cuando Google Translate está activo */
body {
    top: 0px !important;
    position: relative !important;
}

/* Estilos para texto traducido */
.translated-ltr {
    direction: ltr !important;
}

/* Evitar que Google Translate modifique el layout */
body.translated-ltr {
    margin-top: 0 !important;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .language-selector {
        gap: 3px;
    }
    
    .language-selector .lang-btn {
        padding: 3px 6px;
        font-size: 12px;
    }
    
    .language-selector .lang-btn i {
        display: none;
    }
}

/* Team Swiper Styles */
.teamSwiper {
    padding: 20px 0 60px 0;
}

.teamSwiper .expert-card {
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
}

.teamSwiper .expert-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.teamSwiper .swiper-button-next,
.teamSwiper .swiper-button-prev {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
}

.teamSwiper .swiper-button-next:after,
.teamSwiper .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

.teamSwiper .swiper-pagination {
    bottom: 10px;
}

.teamSwiper .swiper-pagination-bullet {
    background: var(--primary);
    opacity: 0.5;
}

.teamSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .teamSwiper {
        padding: 15px 0 50px 0;
    }
    
    .teamSwiper .expert-card {
        height: 450px;
    }
    
    .teamSwiper .swiper-button-next,
    .teamSwiper .swiper-button-prev {
        width: 35px;
        height: 35px;
        margin-top: -17px;
    }
    
    .teamSwiper .swiper-button-next:after,
    .teamSwiper .swiper-button-prev:after {
        font-size: 14px;
    }
}

/* Estilos para paginación */
.pagination {
    margin: 2rem 0;
}

.pagination .page-link {
    color: var(--primary);
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    margin: 0 0.125rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: white;
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

/* Responsive para paginación */
@media (max-width: 576px) {
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Page Header específico para The Hub - Altura reducida */
.revista-page .page-header {
    padding: 60px 0 10px 0;
    min-height: 50vh; /* Reducido de 80vh a 30vh */
    background-color: var(--primary);
    color: var(--text-light);
    position: relative;
    display: flex;
    align-items: center;
}

.revista-page .page-header h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.revista-page .page-header .text-muted {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Media queries para responsive en The Hub */
@media (max-width: 768px) {
    .revista-page .page-header {
        min-height: 25vh;
        padding: 40px 0 30px 0;
    }
    
    .revista-page .page-header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .revista-page .page-header {
        min-height: 20vh;
        padding: 30px 0 25px 0;
    }
    
    .revista-page .page-header h1 {
        font-size: 1.8rem;
    }
}