/* Slider de Especialidades Médicas - Estilos CSS */

.especialidades-slider-container {
    width: 1200px;
    max-width: 98vw;
    height: 530px;
    margin: 48px auto;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.especialidades-slider {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
}

.slide-content {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.09);
    overflow: hidden;
}

.slide-image {
    flex: 0 0 43%;
    max-width: 43%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 24px 0 0 24px;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px 0 0 24px;
}

.slide:hover .slide-image img {
    transform: scale(1.05);
}

.slide-text {
    flex: 1 1 0;
    padding: 48px 38px;
    background: #fff !important;
    color: #333;
    border-radius: 0 24px 24px 0;
    min-width: 0;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.text-content {
    flex: 1;
}

.text-content h3 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: #2a7dbd;
    line-height: 1.2;
}

.text-content p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 22px;
}

.text-content ul {
    list-style: none;
    padding: 0;
    margin: 22px 0;
}

.text-content li {
    padding: 10px 0;
    position: relative;
    padding-left: 32px;
    font-size: 1.1rem;
    color: #555;
}

.text-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2a7dbd;
    font-weight: bold;
    font-size: 1.3rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #2a7dbd 0%, #1e5f8a 100%);
    color: white;
    padding: 20px 44px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(42, 125, 189, 0.18);
    border: none;
    cursor: pointer;
    margin-top: 28px;
}

.cta-button:hover {
    background: linear-gradient(135deg, #1e5f8a 0%, #2a7dbd 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(42, 125, 189, 0.22);
    color: white;
    text-decoration: none;
}

/* Controles del slider */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 21px;
    gap: 14px;
}

.slider-btn {
    background: #2a7dbd;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(42, 125, 189, 0.18);
}

.slider-btn:hover {
    background: #1e5f8a;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(42, 125, 189, 0.22);
}

.slider-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.slider-dots {
    display: flex;
    gap: 7px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: #2a7dbd;
    transform: scale(1.15);
}

.dot.active {
    background: #2a7dbd;
    transform: scale(1.2);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide.active .slide-text {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 1300px) {
    .especialidades-slider-container {
        width: 98vw;
        height: auto;
        min-height: 400px;
    }
    .slide-content {
        flex-direction: column;
        height: auto;
        min-height: 400px;
        border-radius: 24px;
    }
    .slide-image {
        max-width: 100%;
        width: 100%;
        height: 260px;
        border-radius: 24px 24px 0 0;
    }
    .slide-image img {
        border-radius: 24px 24px 0 0;
    }
    .slide-text {
        border-radius: 0 0 24px 24px;
        padding: 28px 14px;
        height: auto;
    }
}

@media (max-width: 600px) {
    .especialidades-slider-container {
        padding: 2px;
    }
    .slide-text {
        padding: 8px 2px;
        background: #fff !important;
    }
    .text-content h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    .text-content p {
        font-size: 0.65rem;
        margin-bottom: 8px;
    }
    .cta-button {
        padding: 7px 12px;
        font-size: 0.65rem;
    }
    .slider-controls {
        margin-top: 8px;
        gap: 6px;
    }
    .slider-btn {
        width: 25px;
        height: 25px;
    }
    .dot {
        width: 6px;
        height: 6px;
    }
}

/* Efectos adicionales */
.slide-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(42, 125, 189, 0.1) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Mejoras de accesibilidad */
.slider-btn:focus,
.dot:focus {
    outline: 2px solid #2a7dbd;
    outline-offset: 2px;
}

/* Soporte para modo oscuro */
@media (prefers-color-scheme: dark) {
    .especialidades-slider {
        background: #1a1a1a;
        color: #fff;
    }
    
    .slide-text {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }
    
    .text-content p {
        color: #e0e0e0;
    }
    
    .text-content li {
        color: #ccc;
    }
} 

.especialidades-slider2-outer {
    width: 1200px;
    max-width: 98vw;
    margin: 48px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.especialidades-slider2-outer.especialidades-slider2-static {
    width: 1100px;
    max-width: 98vw;
    margin: 48px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.especialidades-slider2-container {
    width: 100%;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.09);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    min-height: 420px;
}

.especialidades-slider2-slide {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.slider2-img-col {
    flex: 0 0 48%;
    max-width: 48%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px 0 0 24px;
    overflow: hidden;
}

.slider2-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px 0 0 24px;
}

.slider2-text-col {
    flex: 1 1 0;
    padding: 48px 38px;
    background: #fff;
    color: #333;
    border-radius: 0 24px 24px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.slider2-html h3 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: #2a7dbd;
    line-height: 1.2;
}
.slider2-html p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 22px;
}
.slider2-html ul {
    list-style: disc inside;
    margin: 22px 0 22px 0;
    padding-left: 0;
}
.slider2-html li {
    padding: 10px 0;
    font-size: 1.1rem;
    color: #555;
}
.cta-button.slider2-cta {
    margin-top: 28px;
    align-self: flex-start;
    background: linear-gradient(135deg, #2a7dbd 0%, #1e5f8a 100%);
    color: white;
    padding: 20px 44px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(42, 125, 189, 0.18);
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.cta-button.slider2-cta:hover {
    background: linear-gradient(135deg, #1e5f8a 0%, #2a7dbd 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(42, 125, 189, 0.22);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .especialidades-slider2-outer.especialidades-slider2-static {
        width: 98vw;
    }
}
@media (max-width: 900px) {
    .especialidades-slider2-container {
        flex-direction: column;
        min-height: 320px;
    }
    .especialidades-slider2-slide {
        flex-direction: column;
    }
    .slider2-img-col {
        max-width: 100%;
        width: 100%;
        height: 220px;
        border-radius: 24px 24px 0 0;
    }
    .slider2-img-col img {
        border-radius: 24px 24px 0 0;
    }
    .slider2-text-col {
        border-radius: 0 0 24px 24px;
        padding: 24px 10px;
    }
}
@media (max-width: 600px) {
    .especialidades-slider2-outer.especialidades-slider2-static {
        width: 100vw;
        margin: 0;
    }
    .especialidades-slider2-container {
        min-height: 200px;
    }
    .slider2-img-col {
        height: 120px;
    }
    .slider2-text-col {
        padding: 10px 4px;
    }
    .slider2-html h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    .slider2-html p, .slider2-html li {
        font-size: 0.9rem;
    }
    .cta-button.slider2-cta {
        font-size: 1rem;
        padding: 10px 18px;
        margin-top: 12px;
    }
} 